Class Database
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.model.Referenceable
org.odpi.openmetadata.accessservices.dataengine.model.Asset
org.odpi.openmetadata.accessservices.dataengine.model.DataStore
org.odpi.openmetadata.accessservices.dataengine.model.Database
- All Implemented Interfaces:
Serializable
Database is a java bean used to create Databases associated with the external data engine.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Return the source (typically connection name) of the database information.Return the name of this database instance - useful if the same schemas are deployed to multiple database instances.Get database schemaReturn a description of the database type.Return the version of the database - often this is related to the version of its schemas.boolean
Return if the database is incompleteGet an Endpoint network addressGet an Endpoint protocolGets the relational tables inside the database.int
hashCode()
void
setDatabaseImportedFrom
(String databaseImportedFrom) Set up the source (typically connection name) of the database information.void
setDatabaseInstance
(String databaseInstance) Set up the name of this database instance - useful if the same schemas are deployed to multiple database instances.void
setDatabaseSchema
(DatabaseSchema databaseSchema) Set up the database schema for the databasevoid
setDatabaseType
(String databaseType) Set up a description of the database type.void
setDatabaseVersion
(String databaseVersion) Set up the version of the database - often this is related to the version of its schemas.void
setIncomplete
(boolean incomplete) Sets up if the database is incompletevoid
setNetworkAddress
(String networkAddress) Sets the network address.void
setProtocol
(String protocol) Sets the protocol.void
setTables
(List<RelationalTable> tables) Sets up relational tables inside the database.toString()
Methods inherited from class org.odpi.openmetadata.accessservices.dataengine.model.DataStore
getCreateTime, getEncodingDescription, getEncodingLanguage, getEncodingProperties, getEncodingType, getModifiedTime, getPathName, setCreateTime, setEncodingDescription, setEncodingLanguage, setEncodingProperties, setEncodingType, setModifiedTime, setPathName
Methods inherited from class org.odpi.openmetadata.accessservices.dataengine.model.Asset
getDescription, getDisplayName, getOriginBusinessCapabilityGUID, getOriginOrganizationGUID, getOtherOriginValues, getOwner, getOwnerType, getZoneMembership, setDescription, setDisplayName, setOriginBusinessCapabilityGUID, setOriginOrganizationGUID, setOtherOriginValues, setOwner, setOwnerType, setZoneMembership
Methods inherited from class org.odpi.openmetadata.accessservices.dataengine.model.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName
-
Constructor Details
-
Database
public Database()
-
-
Method Details
-
getDatabaseType
Return a description of the database type.- Returns:
- string type name
-
getDatabaseVersion
Return the version of the database - often this is related to the version of its schemas.- Returns:
- version name
-
getDatabaseInstance
Return the name of this database instance - useful if the same schemas are deployed to multiple database instances.- Returns:
- instance name
-
getDatabaseImportedFrom
Return the source (typically connection name) of the database information.- Returns:
- source name
-
getDatabaseSchema
Get database schema- Returns:
- the database schema for the database
-
getTables
Gets the relational tables inside the database.- Returns:
- the relational tables inside the database
-
getProtocol
Get an Endpoint protocol- Returns:
- network address
-
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
Set up a description of the database type.- Parameters:
databaseType
- string type name
-
setDatabaseVersion
Set up the version of the database - often this is related to the version of its schemas.- Parameters:
databaseVersion
- version name
-
setDatabaseInstance
Set up the name of this database instance - useful if the same schemas are deployed to multiple database instances.- Parameters:
databaseInstance
- instance name
-
setDatabaseImportedFrom
Set up the source (typically connection name) of the database information.- Parameters:
databaseImportedFrom
- source name
-
setDatabaseSchema
Set up the database schema for the database- Parameters:
databaseSchema
- DatabaseSchema object
-
setTables
Sets up relational tables inside the database.- Parameters:
tables
- relational tables inside the database
-
setProtocol
Sets the protocol. Needed to create Endpoint, which in turn is internally generated along with Connection, not provided by user- Parameters:
protocol
- protocol
-
setNetworkAddress
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-