Class DatabaseProperties
java.lang.Object
org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
org.odpi.openmetadata.accessservices.datamanager.properties.AssetProperties
org.odpi.openmetadata.accessservices.datamanager.properties.DataStoreProperties
org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseProperties
- All Implemented Interfaces:
Serializable
DatabaseProperties is a class for representing a generic database.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorDatabaseProperties
(DatabaseProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.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.Return a description of the database type.Return the version of the database - often this is related to the version of its schemas.int
hashCode()
Return hash code based on properties.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
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.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.DataStoreProperties
getCreateTime, getEncodingDescription, getEncodingLanguage, getEncodingProperties, getEncodingType, getModifiedTime, getPathName, setCreateTime, setEncodingDescription, setEncodingLanguage, setEncodingProperties, setEncodingType, setModifiedTime, setPathName
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.AssetProperties
getDescription, getDisplayName, getName, getVersionIdentifier, setDescription, setDisplayName, setName, setVersionIdentifier
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
Constructor Details
-
DatabaseProperties
public DatabaseProperties()Default constructor -
DatabaseProperties
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Details
-
getDatabaseType
Return a description of the database type.- Returns:
- string type name
-
setDatabaseType
Set up a description of the database type.- Parameters:
databaseType
- string type name
-
getDatabaseVersion
Return the version of the database - often this is related to the version of its schemas.- Returns:
- version name
-
setDatabaseVersion
Set up the version of the database - often this is related to the version of its schemas.- Parameters:
databaseVersion
- version name
-
getDatabaseInstance
Return the name of this database instance - useful if the same schemas are deployed to multiple database instances.- Returns:
- instance 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
-
getDatabaseImportedFrom
Return the source (typically connection name) of the database information.- Returns:
- source name
-
setDatabaseImportedFrom
Set up the source (typically connection name) of the database information.- Parameters:
databaseImportedFrom
- source name
-
toString
Standard toString method.- Overrides:
toString
in classDataStoreProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classDataStoreProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classDataStoreProperties
- Returns:
- int
-