Class DerivedSchemaTypeQueryTarget
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.DerivedSchemaTypeQueryTarget
-
- All Implemented Interfaces:
Serializable
public class DerivedSchemaTypeQueryTarget extends PropertyBase
DerivedSchemaTypeQueryTarget defines a query on a schema element that returns all or part of the value for a derived schema type.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description DerivedSchemaTypeQueryTarget()Default constructorDerivedSchemaTypeQueryTarget(DerivedSchemaTypeQueryTarget template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetQuery()Return the query string for this element.StringgetQueryId()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.StringgetQueryTargetGUID()Return the unique identifier that describes the data source that will be queried to get part of the derived value.StringgetQueryType()Return the name of the query language used in the query.inthashCode()Create a hash code for this element type.voidsetQuery(String query)Set up the query string for this element.voidsetQueryId(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.voidsetQueryTargetGUID(String queryTargetGUID)Set up the unique identifier that describes the data source that will be queried to get part of the derived value.voidsetQueryType(String queryType)Set up the name of the query language used in the query.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
DerivedSchemaTypeQueryTarget
public DerivedSchemaTypeQueryTarget()
Default constructor
-
DerivedSchemaTypeQueryTarget
public DerivedSchemaTypeQueryTarget(DerivedSchemaTypeQueryTarget template)
Copy/clone constructor.- Parameters:
template- template schema query to copy.
-
-
Method Detail
-
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
-
getQueryType
public String getQueryType()
Return the name of the query language used in the query.- Returns:
- queryType String
-
setQueryType
public void setQueryType(String queryType)
Set up the name of the query language used in the query.- Parameters:
queryType- String name
-
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.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classPropertyBase- Returns:
- int hash code
-
-