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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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.intReturn 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.intReturn the digits of precision; required for DecimalTypes.intReturn the digits to right of decimal; Required for DecimalTypes.Return the full data type specification as SQL/catalogString text.inthashCode()Return hash code based on properties.voidsetComment(String comment) Set up a comment describing the element within its name space.voidSet up the unique name of the element within its name space.voidsetPosition(int position) Set up the ordinal position of column (starting at position 0).voidsetType_interval_type(String type_interval_type) Set up the format of interval type.voidsetType_json(String type_json) Set up the Full data type specification, JSON-serialized.voidsetType_name(String type_name) Set up the column type name enum.voidsetType_precision(int type_precision) Set up the digits of precision; required for DecimalTypes.voidsetType_scale(int type_scale) Set up the digits to right of decimal; Required for DecimalTypes.voidsetType_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.
-