Class TabularColumnProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.securitymanager.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.securitymanager.properties.SchemaElementProperties
-
- org.odpi.openmetadata.accessservices.securitymanager.properties.SchemaAttributeProperties
-
- org.odpi.openmetadata.accessservices.securitymanager.properties.TabularColumnProperties
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DatabaseColumnProperties
public class TabularColumnProperties extends SchemaAttributeProperties
TabularColumnProperties is a class for representing a column within a table type structure. Tabular columns are schema attributes with a simple type attached- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TabularColumnProperties()Default constructor used by subclassesTabularColumnProperties(TabularColumnProperties 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.StringgetDataType()Return the data type for this element.StringgetDefaultValue()Return the default value for the element.StringgetExternalTypeGUID()Return the unique identifier of this column's type.StringgetFixedValue()Return a fixed literal value - an alternative to default value.StringgetValidValuesSetGUID()Return the set of valid values for this column.inthashCode()Return has code based on properties.voidsetDataType(String dataType)Set up the data type for this element.voidsetDefaultValue(String defaultValue)Set up the default value for the element.voidsetExternalTypeGUID(String externalTypeGUID)If the type of this column is represented by an external (standard type) put its value here.voidsetFixedValue(String fixedValue)If the column contains a fixed literal value, set this value here - an alternative to default value.voidsetValidValuesSetGUID(String validValuesSetGUID)If the type is controlled by a fixed set of values, set up the unique identifier of the valid values set that lists the valid values.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.securitymanager.properties.SchemaAttributeProperties
getAliases, getAllowsDuplicateValues, getDefaultValueOverride, getElementPosition, getIsNullable, getLength, getMaxCardinality, getMinCardinality, getMinimumLength, getNativeJavaClass, getOrderedValues, getPrecision, getSchemaType, getSortOrder, setAliases, setAllowsDuplicateValues, setDefaultValueOverride, setElementPosition, setIsNullable, setLength, setMaxCardinality, setMinCardinality, setMinimumLength, setNativeJavaClass, setOrderedValues, setPrecision, setSchemaType, setSortOrder
-
Methods inherited from class org.odpi.openmetadata.accessservices.securitymanager.properties.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
-
Methods inherited from class org.odpi.openmetadata.accessservices.securitymanager.properties.ReferenceableProperties
getAdditionalProperties, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
TabularColumnProperties
public TabularColumnProperties()
Default constructor used by subclasses
-
TabularColumnProperties
public TabularColumnProperties(TabularColumnProperties template)
Copy/clone Constructor.- Parameters:
template- template object to copy.
-
-
Method Detail
-
getDataType
public String getDataType()
Return the data type for this element. Null means unknown data type.- Returns:
- string data type name
-
setDataType
public void setDataType(String dataType)
Set up the data type for this element. Null means unknown data type.- Parameters:
dataType- data type name
-
getDefaultValue
public String getDefaultValue()
Return the default value for the element. Null means no default value set up.- Returns:
- string containing default value
-
setDefaultValue
public void setDefaultValue(String defaultValue)
Set up the default value for the element. Null means no default value set up.- Parameters:
defaultValue- String containing default value
-
getFixedValue
public String getFixedValue()
Return a fixed literal value - an alternative to default value.- Returns:
- string value
-
setFixedValue
public void setFixedValue(String fixedValue)
If the column contains a fixed literal value, set this value here - an alternative to default value.- Parameters:
fixedValue- string
-
getExternalTypeGUID
public String getExternalTypeGUID()
Return the unique identifier of this column's type.- Returns:
- unique identifier (guid) of the external schema type
-
setExternalTypeGUID
public void setExternalTypeGUID(String externalTypeGUID)
If the type of this column is represented by an external (standard type) put its value here. No need to set dataType, FixedType or defaultType- Parameters:
externalTypeGUID- unique identifier (guid) of the external schema type
-
getValidValuesSetGUID
public String getValidValuesSetGUID()
Return the set of valid values for this column.- Returns:
- unique identifier (guid) of the valid values set
-
setValidValuesSetGUID
public void setValidValuesSetGUID(String validValuesSetGUID)
If the type is controlled by a fixed set of values, set up the unique identifier of the valid values set that lists the valid values.- Parameters:
validValuesSetGUID- unique identifier (guid) of the valid values set
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classSchemaAttributeProperties- 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
-
-