-
- All Implemented Interfaces:
public final class ColumnWrapper for results of getColumns method and represents a Table column
Note that per the documentation BUFFER_LENGTH, 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 StringtableNameprivate final Stringnameprivate final JDBCTypedataTypeprivate final StringtypeNameprivate final IntegercolumnSizeprivate final IntegerdecimalDigitsprivate final Integerradixprivate final ColumnNullablenullableprivate final Stringremarksprivate final StringcolumnDefaultprivate final IntegercharacterOctetLengthprivate final IntegerordinalPositionprivate final IsNullableisNullableprivate final StringscopeCatalogprivate final StringscopeSchemaprivate final StringscopeTableprivate final JDBCTypesourceDataTypeprivate final IsAutoIncrementisAutoincrementprivate final IsGeneratedColumnisGeneratedColumn
-
Constructor Summary
Constructors Constructor Description Column(DatabaseMetaData metadata, ResultSet rs)
-
Method Summary
Modifier and Type Method Description final StringgetCatalog()Containing Table's catalogSource column: TABLE_CAT final StringgetSchema()Containing Table's schemaSource column: TABLE_SCHEM final StringgetTableName()Containing Table's nameSource column: TABLE_NAME final StringgetName()Column nameSource column: COLUMN_NAME final JDBCTypegetDataType()SQL type from java.sql.Types, converted from intSource column: DATA_TYPE final StringgetTypeName()Data source dependent type name, for UserDefinedType the type name is fully qualifiedSource column: TYPE_NAME final IntegergetColumnSize()Column sizeSource column: COLUMN_SIZE final IntegergetDecimalDigits()The number of fractional digitsSource column: DECIMAL_DIGITS final IntegergetRadix()Numeric precision radix, renamedSource column: NUM_PREC_RADIX final ColumnNullablegetNullable()Nullable, converted to ColumnNullableSource column: NULLABLE final StringgetRemarks()RemarksSource column: REMARKS final StringgetColumnDefault()Column defaultSource column: COLUMN_DEF final IntegergetCharacterOctetLength()Character octet lengthSource column: CHAR_OCTET_LENGTH final IntegergetOrdinalPosition()Ordinal positionSource column: ORDINAL_POSITION final IsNullableisNullable()Is nullable, converted to IsNullableSource column: IS_NULLABLE final StringgetScopeCatalog()Scope catalogSource column: SCOPE_CATALOG final StringgetScopeSchema()Scope schemaSource column: SCOPE_SCHEMA final StringgetScopeTable()Scope tableSource 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. final IsAutoIncrementisAutoincrement()Is autoincrement, converted to IsAutoIncrementSource column: IS_AUTOINCREMENT final IsGeneratedColumnisGeneratedColumn()Is generated column, converted to IsGeneratedColumnSource column :IS_GENERATEDCOLUMN final List<ColumnPrivilege>getColumnPrivileges()Wrapper around getColumnPrivileges method and represents a list of ColumnPrivileges for this column only Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
Column
Column(DatabaseMetaData metadata, ResultSet rs)
-
-
Method Detail
-
getCatalog
final String getCatalog()
Containing Table's catalog
Source column: TABLE_CAT
-
getTableName
final String getTableName()
Containing Table's name
Source column: TABLE_NAME
-
getDataType
final JDBCType getDataType()
SQL type from java.sql.Types, converted from int
Source column: DATA_TYPE
-
getTypeName
final String getTypeName()
Data source dependent type name, for UserDefinedType the type name is fully qualified
Source column: TYPE_NAME
-
getColumnSize
final Integer getColumnSize()
Column size
Source column: COLUMN_SIZE
-
getDecimalDigits
final Integer getDecimalDigits()
The number of fractional digits
Source column: DECIMAL_DIGITS
-
getNullable
final ColumnNullable getNullable()
Nullable, converted to ColumnNullable
Source column: NULLABLE
-
getRemarks
final String getRemarks()
Remarks
Source column: REMARKS
-
getColumnDefault
final String getColumnDefault()
Column default
Source column: COLUMN_DEF
-
getCharacterOctetLength
final Integer getCharacterOctetLength()
Character octet length
Source column: CHAR_OCTET_LENGTH
-
getOrdinalPosition
final Integer getOrdinalPosition()
Ordinal position
Source column: ORDINAL_POSITION
-
isNullable
final IsNullable isNullable()
Is nullable, converted to IsNullable
Source column: IS_NULLABLE
-
getScopeCatalog
final String getScopeCatalog()
Scope catalog
Source column: SCOPE_CATALOG
-
getScopeSchema
final String getScopeSchema()
Scope schema
Source column: SCOPE_SCHEMA
-
getScopeTable
final String getScopeTable()
Scope table
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
-
isAutoincrement
final IsAutoIncrement isAutoincrement()
Is autoincrement, converted to IsAutoIncrement
Source column: IS_AUTOINCREMENT
-
isGeneratedColumn
final IsGeneratedColumn isGeneratedColumn()
Is generated column, converted to IsGeneratedColumn
Source column :IS_GENERATEDCOLUMN
-
getColumnPrivileges
final List<ColumnPrivilege> getColumnPrivileges()
Wrapper around getColumnPrivileges method and represents a list of ColumnPrivileges for this column only
-
-
-
-