java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.properties.QueryTargetProperties

public class QueryTargetProperties extends Object
QueryTargetProperties defines a query on a schema element that returns all or part of the value for a derived schema type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Copy/clone constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the query string for this element.
    Return the query id - this is used to identify where the results of this query should be plugged into the other queries or the formula for the parent derived schema element.
    Return the unique identifier that describes the data source that will be queried to get part of the derived value.
    int
    Create a hash code for this element type.
    void
    Set up the query string for this element.
    void
    setQueryId(String queryId)
    Set up the query id - this is used to identify where the results of this query should be plugged into the other queries or the formula for the parent derived schema element.
    void
    setQueryTargetGUID(String queryTargetGUID)
    Set up the unique identifier that describes the data source that will be queried to get part of the derived value.
    Standard toString method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • QueryTargetProperties

      public QueryTargetProperties()
      Default constructor
    • QueryTargetProperties

      public QueryTargetProperties(QueryTargetProperties template)
      Copy/clone constructor.
      Parameters:
      template - template schema query to copy.
  • Method Details

    • getQueryId

      public String getQueryId()
      Return the query id - this is used to identify where the results of this query should be plugged into the other queries or the formula for the parent derived schema element.
      Returns:
      String query identifier
    • setQueryId

      public void setQueryId(String queryId)
      Set up the query id - this is used to identify where the results of this query should be plugged into the other queries or the formula for the parent derived schema element.
      Parameters:
      queryId - String query identifier
    • getQuery

      public String getQuery()
      Return the query string for this element. The query string may have placeholders for values returned by queries that have a lower queryId than this element.
      Returns:
      String query
    • setQuery

      public void setQuery(String query)
      Set up the query string for this element. The query string may have placeholders for values returned by queries that have a lower queryId than this element.
      Parameters:
      query - String query
    • getQueryTargetGUID

      public String getQueryTargetGUID()
      Return the unique identifier that describes the data source that will be queried to get part of the derived value.
      Returns:
      string guid
    • setQueryTargetGUID

      public void setQueryTargetGUID(String queryTargetGUID)
      Set up the unique identifier that describes the data source that will be queried to get part of the derived value.
      Parameters:
      queryTargetGUID - string 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()
      Create a hash code for this element type.
      Overrides:
      hashCode in class Object
      Returns:
      int hash code