-
- All Implemented Interfaces:
public final class Attribute
Wrapper 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 String
catalog
private final String
schema
private final String
typeName
private final String
name
private final JDBCType
dataType
private final String
attributeTypeName
private final Integer
attributeSize
private final Integer
decimalDigits
private final Integer
radix
private final AttributeNullable
nullable
private final String
remarks
private final String
attributeDefault
private final Integer
characterOctetLength
private final Integer
ordinalPosition
private final IsNullable
isNullable
private final String
scopeCatalog
private final String
scopeSchema
private final String
scopeTable
private final JDBCType
sourceDataType
-
Method Summary
Modifier and Type Method Description final String
getCatalog()
Catalog nameSource column: TYPE_CAT final String
getSchema()
Schema nameSource column: TYPE_SCHEM final String
getTypeName()
Type nameSource column: TYPE_NAME final String
getName()
Attribute nameSource column: ATTR_NAME final JDBCType
getDataType()
SQL type, converted to JDBCTypeSource column: DATA_TYPE final String
getAttributeTypeName()
Attribute type nameSource column: ATTR_TYPE_NAME final Integer
getAttributeSize()
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 Integer
getDecimalDigits()
The number of fractional digitsSource column: DECIMAL_DIGITS final Integer
getRadix()
Numeric precision radix (typically either 10 or 2)Source column: NUM_PREC_RADIX final AttributeNullable
getNullable()
Indicates whether attribute is nullable, converted to AttributeNullableSource column: NULLABLE final String
getRemarks()
Comment describing columnSource column: REMARKS final String
getAttributeDefault()
Attribute default valueSource column: ATTR_DEF final Integer
getCharacterOctetLength()
For character types this represents the maximum number of bytes in the columnSource column: CHAR_OCTET_LENGTH final Integer
getOrdinalPosition()
Index of the attribute in the UserDefinedType (starts at 1)Source column: ORDINAL_POSITION final IsNullable
isNullable()
Is nullable, converted to IsNullableSource column: IS_NULLABLE final String
getScopeCatalog()
Catalog of table that is the scope of a reference attribute (null if dataType isn't REF)Source column: SCOPE_CATALOG final String
getScopeSchema()
Scope of table that is the scope of a reference attribute (null if dataType isn't REF)Source column: SCOPE_SCHEMA final String
getScopeTable()
Table name that is the scope of a reference attribute (null if dataType isn't REF)Source column: SCOPE_TABLE 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. Boolean
equals(Object other)
Integer
hashCode()
-
-
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
-
-
-
-