Class DatabaseProperties

  • All Implemented Interfaces:
    java.io.Serializable

    public class DatabaseProperties
    extends DataStoreProperties
    DatabaseProperties is a class for representing a generic database.
    See Also:
    Serialized Form
    • Constructor Detail

      • DatabaseProperties

        public DatabaseProperties()
        Default constructor
      • DatabaseProperties

        public DatabaseProperties​(DatabaseProperties template)
        Copy/clone constructor.
        Parameters:
        template - object to copy
    • Method Detail

      • getDatabaseType

        public java.lang.String getDatabaseType()
        Return a description of the database type.
        Returns:
        string type name
      • setDatabaseType

        public void setDatabaseType​(java.lang.String databaseType)
        Set up a description of the database type.
        Parameters:
        databaseType - string type name
      • getDatabaseVersion

        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.String getDatabaseImportedFrom()
        Return the source (typically connection name) of the database information.
        Returns:
        source name
      • setDatabaseImportedFrom

        public void setDatabaseImportedFrom​(java.lang.String databaseImportedFrom)
        Set up the source (typically connection name) of the database information.
        Parameters:
        databaseImportedFrom - source name
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class DataStoreProperties
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class DataStoreProperties
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return hash code based on properties.
        Overrides:
        hashCode in class DataStoreProperties
        Returns:
        int