Class DatabaseColumnProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.datamanager.properties.SchemaElementProperties
-
- org.odpi.openmetadata.accessservices.datamanager.properties.SchemaAttributeProperties
-
- org.odpi.openmetadata.accessservices.datamanager.properties.TabularColumnProperties
-
- org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseColumnProperties
-
- All Implemented Interfaces:
Serializable
public class DatabaseColumnProperties extends TabularColumnProperties
DatabaseColumnProperties describes the properties of a database column. The database column may have a fixed value (inherited from tabular column or be derived by a formula.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseColumnProperties()Default constructorDatabaseColumnProperties(DatabaseColumnProperties 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.StringgetFormula()Return the formula used to combine the values of the queries.List<DatabaseQueryProperties>getQueries()Return the list of individual query targets for a derived column.inthashCode()Return has code based on properties.voidsetFormula(String formula)Set up the formula used to combine the values of the queries.voidsetQueries(List<DatabaseQueryProperties> queries)Set up the list of individual query targets for a derived column.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.SchemaAttributeProperties
getAliases, getAllowsDuplicateValues, getDataType, getDefaultValue, getDefaultValueOverride, getElementPosition, getExternalTypeGUID, getFixedValue, getIsNullable, getLength, getMaxCardinality, getMinCardinality, getMinimumLength, getNativeJavaClass, getOrderedValues, getPrecision, getSortOrder, getValidValuesSetGUID, setAliases, setAllowsDuplicateValues, setDataType, setDefaultValue, setDefaultValueOverride, setElementPosition, setExternalTypeGUID, setFixedValue, setIsNullable, setLength, setMaxCardinality, setMinCardinality, setMinimumLength, setNativeJavaClass, setOrderedValues, setPrecision, setSortOrder, setValidValuesSetGUID
-
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
-
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
getAdditionalProperties, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
DatabaseColumnProperties
public DatabaseColumnProperties()
Default constructor
-
DatabaseColumnProperties
public DatabaseColumnProperties(DatabaseColumnProperties template)
Copy/clone constructor.- Parameters:
template- object to copy
-
-
Method Detail
-
getFormula
public String 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
public void setFormula(String formula)
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
public List<DatabaseQueryProperties> getQueries()
Return the list of individual query targets for a derived column.- Returns:
- list of queries and their target element
-
setQueries
public void setQueries(List<DatabaseQueryProperties> queries)
Set up the list of individual query targets for a derived column.- Parameters:
queries- list of queries and their target element
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classTabularColumnProperties- 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:
equalsin classSchemaAttributeProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return has code based on properties.- Overrides:
hashCodein classSchemaAttributeProperties- Returns:
- int
-
-