Class DatabaseProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.SupplementaryProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.assets.AssetProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataAssetProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataStoreProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.assets.databases.DatabaseProperties
DatabaseProperties is a class for representing a generic database.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.SupplementaryProperties
displayDescription, displayName
-
Constructor Summary
ConstructorDescriptionDefault 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 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
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.frameworks.openmetadata.properties.assets.DataStoreProperties
getCreateTime, getDeployedImplementationType, getEncodingDescription, getEncodingLanguage, getEncodingProperties, getEncodingType, getModifiedTime, getPathName, setCreateTime, setDeployedImplementationType, setEncodingDescription, setEncodingLanguage, setEncodingProperties, setEncodingType, setModifiedTime, setPathName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataAssetProperties
cloneToAsset
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.assets.AssetProperties
cloneToAsset, getDisplayDescription, getDisplayName, getName, getResourceDescription, getResourceName, getVersionIdentifier, setName, setResourceDescription, setResourceName, setVersionIdentifier
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.SupplementaryProperties
getAbbreviation, getDisplaySummary, getUsage, setAbbreviation, setDisplayDescription, setDisplayName, setDisplaySummary, setUsage
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
DatabaseProperties
public DatabaseProperties()Default constructor -
DatabaseProperties
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Details
-
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
-