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
public class DatabaseProperties extends DataStoreProperties
DatabaseProperties is a class for representing a generic database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseProperties()
Default constructorDatabaseProperties(DatabaseProperties template)
Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.String
getDatabaseImportedFrom()
Return the source (typically connection name) of the database information.String
getDatabaseInstance()
Return the name of this database instance - useful if the same schemas are deployed to multiple database instances.String
getDatabaseType()
Return a description of the database type.String
getDatabaseVersion()
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.String
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 Detail
-
DatabaseProperties
public DatabaseProperties()
Default constructor
-
DatabaseProperties
public DatabaseProperties(DatabaseProperties template)
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Detail
-
getDatabaseType
public String getDatabaseType()
Return a description of the database type.- Returns:
- string type name
-
setDatabaseType
public void setDatabaseType(String databaseType)
Set up a description of the database type.- Parameters:
databaseType
- string type name
-
getDatabaseVersion
public String getDatabaseVersion()
Return the version of the database - often this is related to the version of its schemas.- Returns:
- version name
-
setDatabaseVersion
public void setDatabaseVersion(String databaseVersion)
Set up the version of the database - often this is related to the version of its schemas.- Parameters:
databaseVersion
- version name
-
getDatabaseInstance
public String getDatabaseInstance()
Return the name of this database instance - useful if the same schemas are deployed to multiple database instances.- Returns:
- instance name
-
setDatabaseInstance
public void setDatabaseInstance(String databaseInstance)
Set up the name of this database instance - useful if the same schemas are deployed to multiple database instances.- Parameters:
databaseInstance
- instance name
-
getDatabaseImportedFrom
public String getDatabaseImportedFrom()
Return the source (typically connection name) of the database information.- Returns:
- source name
-
setDatabaseImportedFrom
public void setDatabaseImportedFrom(String databaseImportedFrom)
Set up the source (typically connection name) of the database information.- Parameters:
databaseImportedFrom
- source name
-
toString
public String toString()
Standard toString method.- Overrides:
toString
in classDataStoreProperties
- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
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
-
-