Class Database

    • Constructor Detail

      • Database

        public Database()
    • Method Detail

      • getDatabaseType

        public java.lang.String getDatabaseType()
        Return a description of the database type.
        Returns:
        string type name
      • getDatabaseVersion

        public java.lang.String getDatabaseVersion()
        Return the version of the database - often this is related to the version of its schemas.
        Returns:
        version name
      • getDatabaseInstance

        public java.lang.String getDatabaseInstance()
        Return the name of this database instance - useful if the same schemas are deployed to multiple database instances.
        Returns:
        instance name
      • getDatabaseImportedFrom

        public java.lang.String getDatabaseImportedFrom()
        Return the source (typically connection name) of the database information.
        Returns:
        source name
      • getDatabaseSchema

        public DatabaseSchema getDatabaseSchema()
        Get database schema
        Returns:
        the database schema for the database
      • getTables

        public java.util.List<RelationalTable> getTables()
        Gets the relational tables inside the database.
        Returns:
        the relational tables inside the database
      • getProtocol

        public java.lang.String getProtocol()
        Get an Endpoint protocol
        Returns:
        network address
      • getNetworkAddress

        public java.lang.String getNetworkAddress()
        Get an Endpoint network address
        Returns:
        network address
      • getIncomplete

        public boolean getIncomplete()
        Return if the database is incomplete
        Returns:
        if the database is incomplete
      • setDatabaseType

        public void setDatabaseType​(java.lang.String databaseType)
        Set up a description of the database type.
        Parameters:
        databaseType - string type name
      • setDatabaseVersion

        public void setDatabaseVersion​(java.lang.String databaseVersion)
        Set up the version of the database - often this is related to the version of its schemas.
        Parameters:
        databaseVersion - version name
      • setDatabaseInstance

        public void setDatabaseInstance​(java.lang.String databaseInstance)
        Set up the name of this database instance - useful if the same schemas are deployed to multiple database instances.
        Parameters:
        databaseInstance - instance name
      • setDatabaseImportedFrom

        public void setDatabaseImportedFrom​(java.lang.String databaseImportedFrom)
        Set up the source (typically connection name) of the database information.
        Parameters:
        databaseImportedFrom - source name
      • setDatabaseSchema

        public void setDatabaseSchema​(DatabaseSchema databaseSchema)
        Set up the database schema for the database
        Parameters:
        databaseSchema - DatabaseSchema object
      • setTables

        public void setTables​(java.util.List<RelationalTable> tables)
        Sets up relational tables inside the database.
        Parameters:
        tables - relational tables inside the database
      • setProtocol

        public void setProtocol​(java.lang.String protocol)
        Sets the protocol. Needed to create Endpoint, which in turn is internally generated along with Connection, not provided by user
        Parameters:
        protocol - protocol
      • setNetworkAddress

        public void setNetworkAddress​(java.lang.String networkAddress)
        Sets the network address. Needed to create Endpoint, which in turn is internally generated along with Connection, not provided by user
        Parameters:
        networkAddress - network address
      • setIncomplete

        public void setIncomplete​(boolean incomplete)
        Sets up if the database is incomplete
        Parameters:
        incomplete - if the database is incomplete
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class DataStore
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
        Overrides:
        canEqual in class DataStore
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class DataStore