-
- All Implemented Interfaces:
public final class AttributeWrapper for results of getAttributes method and represents an attribute of a UserDefinedType.
Note that per the documentation SQL_DATA_TYPE and SQL_DATETIME_SUB are unused and have been left out of this class
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringcatalogprivate final Stringschemaprivate final StringtypeNameprivate final Stringnameprivate final JDBCTypedataTypeprivate final StringattributeTypeNameprivate final IntegerattributeSizeprivate final IntegerdecimalDigitsprivate final Integerradixprivate final AttributeNullablenullableprivate final Stringremarksprivate final StringattributeDefaultprivate final IntegercharacterOctetLengthprivate final IntegerordinalPositionprivate final IsNullableisNullableprivate final StringscopeCatalogprivate final StringscopeSchemaprivate final StringscopeTableprivate final JDBCTypesourceDataType
-
Method Summary
Modifier and Type Method Description final StringgetCatalog()Catalog nameSource column: TYPE_CAT final StringgetSchema()Schema nameSource column: TYPE_SCHEM final StringgetTypeName()Type nameSource column: TYPE_NAME final StringgetName()Attribute nameSource column: ATTR_NAME final JDBCTypegetDataType()SQL type, converted to JDBCTypeSource column: DATA_TYPE final StringgetAttributeTypeName()Attribute type nameSource column: ATTR_TYPE_NAME final IntegergetAttributeSize()Column size, for char or date types this is the maximum number of characters, for numeric or decimal types this is precisionSource column: ATTR_SIZE final IntegergetDecimalDigits()The number of fractional digitsSource column: DECIMAL_DIGITS final IntegergetRadix()Numeric precision radix (typically either 10 or 2)Source column: NUM_PREC_RADIX final AttributeNullablegetNullable()Indicates whether attribute is nullable, converted to AttributeNullableSource column: NULLABLE final StringgetRemarks()Comment describing columnSource column: REMARKS final StringgetAttributeDefault()Attribute default valueSource column: ATTR_DEF final IntegergetCharacterOctetLength()For character types this represents the maximum number of bytes in the columnSource column: CHAR_OCTET_LENGTH final IntegergetOrdinalPosition()Index of the attribute in the UserDefinedType (starts at 1)Source column: ORDINAL_POSITION final IsNullableisNullable()Is nullable, converted to IsNullableSource column: IS_NULLABLE final StringgetScopeCatalog()Catalog of table that is the scope of a reference attribute (null if dataType isn't REF)Source column: SCOPE_CATALOG final StringgetScopeSchema()Scope of table that is the scope of a reference attribute (null if dataType isn't REF)Source column: SCOPE_SCHEMA final StringgetScopeTable()Table name that is the scope of a reference attribute (null if dataType isn't REF)Source column: SCOPE_TABLE final JDBCTypegetSourceDataType()Source data type of a distinct type or user-generated REF type, JDBCType.NULL if dataType isn't JDBCType.DISTINCT or JDBCType.REF. Booleanequals(Object other)IntegerhashCode()-
-
Method Detail
-
getCatalog
final String getCatalog()
Catalog name
Source column: TYPE_CAT
-
getTypeName
final String getTypeName()
Type name
Source column: TYPE_NAME
-
getDataType
final JDBCType getDataType()
SQL type, converted to JDBCType
Source column: DATA_TYPE
-
getAttributeTypeName
final String getAttributeTypeName()
Attribute type name
Source column: ATTR_TYPE_NAME
-
getAttributeSize
final Integer getAttributeSize()
Column size, for char or date types this is the maximum number of characters, for numeric or decimal types this is precision
Source column: ATTR_SIZE
-
getDecimalDigits
final Integer getDecimalDigits()
The number of fractional digits
Source column: DECIMAL_DIGITS
-
getRadix
final Integer getRadix()
Numeric precision radix (typically either 10 or 2)
Source column: NUM_PREC_RADIX
-
getNullable
final AttributeNullable getNullable()
Indicates whether attribute is nullable, converted to AttributeNullable
Source column: NULLABLE
-
getRemarks
final String getRemarks()
Comment describing column
Source column: REMARKS
-
getAttributeDefault
final String getAttributeDefault()
Attribute default value
Source column: ATTR_DEF
-
getCharacterOctetLength
final Integer getCharacterOctetLength()
For character types this represents the maximum number of bytes in the column
Source column: CHAR_OCTET_LENGTH
-
getOrdinalPosition
final Integer getOrdinalPosition()
Index of the attribute in the UserDefinedType (starts at 1)
Source column: ORDINAL_POSITION
-
isNullable
final IsNullable isNullable()
Is nullable, converted to IsNullable
Source column: IS_NULLABLE
-
getScopeCatalog
final String getScopeCatalog()
Catalog of table that is the scope of a reference attribute (null if dataType isn't REF)
Source column: SCOPE_CATALOG
-
getScopeSchema
final String getScopeSchema()
Scope of table that is the scope of a reference attribute (null if dataType isn't REF)
Source column: SCOPE_SCHEMA
-
getScopeTable
final String getScopeTable()
Table name that is the scope of a reference attribute (null if dataType isn't REF)
Source column: SCOPE_TABLE
-
getSourceDataType
final JDBCType getSourceDataType()
Source data type of a distinct type or user-generated REF type, JDBCType.NULL if dataType isn't JDBCType.DISTINCT or JDBCType.REF. Converted to JDBCType from short.
Source column: SOURCE_DATA_TYPE
-
-
-
-