Class DatabaseViewProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.databases.DatabaseTableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.databases.DatabaseViewProperties
DatabaseViewProperties is a class for representing a relational database view.
-
Constructor Summary
ConstructorDescriptionDefault constructorDatabaseViewProperties
(DatabaseViewProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the formula used to combine the values of the queries.Return the list of individual query targets for a derived column.int
hashCode()
Return hash code based on properties.void
setFormula
(String formula) Set up the formula used to combine the values of the queries.void
setQueries
(List<DatabaseQueryProperties> queries) Set up the list of individual query targets for a derived column.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties
getAliases, getAllowsDuplicateValues, getDataType, getDefaultValue, getDefaultValueOverride, getElementPosition, getExternalTypeGUID, getFixedValue, getIsNullable, getLength, getMaxCardinality, getMinCardinality, getMinimumLength, getNativeJavaClass, getOrderedValues, getPrecision, getSchemaType, getSignificantDigits, getSortOrder, getValidValuesSetGUID, setAliases, setAllowsDuplicateValues, setDataType, setDefaultValue, setDefaultValueOverride, setElementPosition, setExternalTypeGUID, setFixedValue, setIsNullable, setLength, setMaxCardinality, setMinCardinality, setMinimumLength, setNativeJavaClass, setOrderedValues, setPrecision, setSchemaType, setSignificantDigits, setSortOrder, setValidValuesSetGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
DatabaseViewProperties
public DatabaseViewProperties()Default constructor -
DatabaseViewProperties
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Details
-
getFormula
Return the formula used to combine the values of the queries. Each query is has a identifier and the formula has placeholders for these identifiers in it to show how the query results are combined.- Returns:
- String formula
-
setFormula
Set up the formula used to combine the values of the queries. Each query is has a identifier and the formula has placeholders for these identifiers in it to show how the query results are combined.- Parameters:
formula
- String formula
-
getQueries
Return the list of individual query targets for a derived column.- Returns:
- list of queries and their target element
-
setQueries
Set up the list of individual query targets for a derived column.- Parameters:
queries
- list of queries and their target element
-
toString
Standard toString method.- Overrides:
toString
in classDatabaseTableProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classSchemaAttributeProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classSchemaAttributeProperties
- Returns:
- int
-