Class DatabaseQueryProperties

java.lang.Object
org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseQueryProperties

public class DatabaseQueryProperties extends Object
DatabaseQueryProperties describes the properties of query that is used to derive a column in a database.
  • Constructor Details

    • DatabaseQueryProperties

      public DatabaseQueryProperties()
      Default constructor
    • DatabaseQueryProperties

      public DatabaseQueryProperties(DatabaseQueryProperties template)
      Copy/clone constructor for the database query.
      Parameters:
      template - template object to copy.
  • Method Details

    • getQueryId

      public String getQueryId()
      Return the identifier that is used in the column formula.
      Returns:
      string identifier
    • setQueryId

      public void setQueryId(String queryId)
      Set the identifier that is used in the column formula.
      Parameters:
      queryId - string identifier
    • setQuery

      public void setQuery(String query)
      Set up code for query.
      Parameters:
      query - String logic
    • getQuery

      public String getQuery()
      Return the code for the query.
      Returns:
      String logic
    • setQueryTargetGUID

      public void setQueryTargetGUID(String queryTargetGUID)
      Set up the identity of the query target.
      Parameters:
      queryTargetGUID - schema attribute GUID
    • getQueryTargetGUID

      public String getQueryTargetGUID()
      Returns the identity of the query target.
      Returns:
      schema attribute GUID
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      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 class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

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