All Implemented Interfaces:
Serializable

public class Database extends DataStore
Database is a java bean used to create Databases associated with the external data engine.
See Also:
  • Constructor Details

    • Database

      public Database()
  • Method Details

    • 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
    • getIncomplete

      public boolean getIncomplete()
      Return if the database is incomplete
      Returns:
      if the database is incomplete
    • 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 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
    • setIncomplete

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

      public boolean equals(Object o)
      Overrides:
      equals in class DataStore
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class DataStore
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DataStore
    • toString

      public String toString()
      Overrides:
      toString in class DataStore