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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn 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.booleanReturn if the database is incompleteGet an Endpoint network addressGet an Endpoint protocolGets the relational tables inside the database.inthashCode()voidsetDatabaseImportedFrom(String databaseImportedFrom) Set up the source (typically connection name) of the database information.voidsetDatabaseInstance(String databaseInstance) Set up the name of this database instance - useful if the same schemas are deployed to multiple database instances.voidsetDatabaseSchema(DatabaseSchema databaseSchema) Set up the database schema for the databasevoidsetDatabaseType(String databaseType) Set up a description of the database type.voidsetDatabaseVersion(String databaseVersion) Set up the version of the database - often this is related to the version of its schemas.voidsetIncomplete(boolean incomplete) Sets up if the database is incompletevoidsetNetworkAddress(String networkAddress) Sets the network address.voidsetProtocol(String protocol) Sets the protocol.voidsetTables(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, setPathNameMethods 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, setZoneMembershipMethods 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
-
hashCode
public int hashCode() -
toString
-