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.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorDatabaseProperties(DatabaseProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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.inthashCode()Return hash code based on properties.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.voidsetDatabaseVersion(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, setPathNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataAssetProperties
cloneToAssetMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.assets.AssetProperties
cloneToAsset, getDisplayDescription, getDisplayName, getName, getResourceDescription, getResourceName, getVersionIdentifier, setName, setResourceDescription, setResourceName, setVersionIdentifierMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.SupplementaryProperties
getAbbreviation, getDisplaySummary, getUsage, setAbbreviation, setDisplayDescription, setDisplayName, setDisplaySummary, setUsageMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorPropertiesMethods 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:
toStringin 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:
equalsin classDataStoreProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classDataStoreProperties- Returns:
- int
-