Class DataFieldInfo
java.lang.Object
org.odpi.openmetadata.adapters.connectors.unitycatalog.properties.DataFieldInfo
- Direct Known Subclasses:
ColumnInfo
,FunctionParameterInfo
Common properties of a data field.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return a comment describing the element within its name space.getName()
Return the unique name of the element within its name space.int
Return the ordinal position of data field (starting at position 0).Return the format of interval type.Return the full data type specification, JSON-serialized.Return the column type name enum.int
Return the digits of precision; required for DecimalTypes.int
Return the digits to right of decimal; Required for DecimalTypes.Return the full data type specification as SQL/catalogString text.int
hashCode()
Return hash code based on properties.void
setComment
(String comment) Set up a comment describing the element within its name space.void
Set up the unique name of the element within its name space.void
setPosition
(int position) Set up the ordinal position of column (starting at position 0).void
setType_interval_type
(String type_interval_type) Set up the format of interval type.void
setType_json
(String type_json) Set up the Full data type specification, JSON-serialized.void
setType_name
(String type_name) Set up the column type name enum.void
setType_precision
(int type_precision) Set up the digits of precision; required for DecimalTypes.void
setType_scale
(int type_scale) Set up the digits to right of decimal; Required for DecimalTypes.void
setType_text
(String type_text) Set up the full data type specification as SQL/catalogString text.toString()
Standard toString method.
-
Constructor Details
-
DataFieldInfo
public DataFieldInfo()Constructor
-
-
Method Details
-
getName
Return the unique name of the element within its name space.- Returns:
- string
-
setName
Set up the unique name of the element within its name space.- Parameters:
name
- string name
-
getComment
Return a comment describing the element within its name space.- Returns:
- text
-
setComment
Set up a comment describing the element within its name space.- Parameters:
comment
- text
-
getType_text
Return the full data type specification as SQL/catalogString text.- Returns:
- string
-
setType_text
Set up the full data type specification as SQL/catalogString text.- Parameters:
type_text
- string
-
getType_json
Return the full data type specification, JSON-serialized.- Returns:
- string
-
setType_json
Set up the Full data type specification, JSON-serialized.- Parameters:
type_json
- string
-
getType_name
Return the column type name enum.- Returns:
- enum
-
setType_name
Set up the column type name enum.- Parameters:
type_name
- enum
-
getType_precision
public int getType_precision()Return the digits of precision; required for DecimalTypes.- Returns:
- int
-
setType_precision
public void setType_precision(int type_precision) Set up the digits of precision; required for DecimalTypes.- Parameters:
type_precision
- int
-
getType_scale
public int getType_scale()Return the digits to right of decimal; Required for DecimalTypes.- Returns:
- int
-
setType_scale
public void setType_scale(int type_scale) Set up the digits to right of decimal; Required for DecimalTypes.- Parameters:
type_scale
- int
-
getType_interval_type
Return the format of interval type.- Returns:
- string
-
setType_interval_type
Set up the format of interval type.- Parameters:
type_interval_type
- string
-
getPosition
public int getPosition()Return the ordinal position of data field (starting at position 0).- Returns:
- int
-
setPosition
public void setPosition(int position) Set up the ordinal position of column (starting at position 0).- Parameters:
position
- int
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-