Class Database

    • Constructor Detail

      • Database

        public Database()
    • Method Detail

      • getDatabaseType

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

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

        public 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 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 List<RelationalTable> getTables()
        Gets the relational tables inside the database.
        Returns:
        the relational tables inside the database
      • getProtocol

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

        public String getNetworkAddress()
        Get an Endpoint network address
        Returns:
        network address
      • setDatabaseType

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

        public void setDatabaseVersion​(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​(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​(String databaseImportedFrom)
        Set up the 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​(List<RelationalTable> tables)
        Sets up relational tables inside the database.
        Parameters:
        tables - relational tables inside the database
      • setProtocol

        public void setProtocol​(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​(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