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
DerivedSchemaTypeQueryTarget defines a query on a schema element that returns all or part of the value for a
derived schema type.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.getQuery()
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.Return the name of the query language used in the query.int
hashCode()
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.void
setQueryType
(String queryType) Set up the name of the query language used in the query.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
DerivedSchemaTypeQueryTarget
public DerivedSchemaTypeQueryTarget()Default constructor -
DerivedSchemaTypeQueryTarget
Copy/clone constructor.- Parameters:
template
- template schema query to copy.
-
-
Method Details
-
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
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
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
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
Return the name of the query language used in the query.- Returns:
- queryType String
-
setQueryType
Set up the name of the query language used in the query.- Parameters:
queryType
- String name
-
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
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
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classPropertyBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classPropertyBase
- Returns:
- int hash code
-