-
- All Implemented Interfaces:
public final class Column
Wrapper 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 String
catalog
private final String
schema
private final String
tableName
private final String
name
private final JDBCType
dataType
private final String
typeName
private final Integer
columnSize
private final Integer
decimalDigits
private final Integer
radix
private final ColumnNullable
nullable
private final String
remarks
private final String
columnDefault
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
private final IsAutoIncrement
isAutoincrement
private final IsGeneratedColumn
isGeneratedColumn
-
Constructor Summary
Constructors Constructor Description Column(DatabaseMetaData metadata, ResultSet rs)
-
Method Summary
Modifier and Type Method Description final String
getCatalog()
Containing Table's catalogSource column: TABLE_CAT final String
getSchema()
Containing Table's schemaSource column: TABLE_SCHEM final String
getTableName()
Containing Table's nameSource column: TABLE_NAME final String
getName()
Column nameSource column: COLUMN_NAME final JDBCType
getDataType()
SQL type from java.sql.Types, converted from intSource column: DATA_TYPE final String
getTypeName()
Data source dependent type name, for UserDefinedType the type name is fully qualifiedSource column: TYPE_NAME final Integer
getColumnSize()
Column sizeSource column: COLUMN_SIZE final Integer
getDecimalDigits()
The number of fractional digitsSource column: DECIMAL_DIGITS final Integer
getRadix()
Numeric precision radix, renamedSource column: NUM_PREC_RADIX final ColumnNullable
getNullable()
Nullable, converted to ColumnNullableSource column: NULLABLE final String
getRemarks()
RemarksSource column: REMARKS final String
getColumnDefault()
Column defaultSource column: COLUMN_DEF final Integer
getCharacterOctetLength()
Character octet lengthSource column: CHAR_OCTET_LENGTH final Integer
getOrdinalPosition()
Ordinal positionSource column: ORDINAL_POSITION final IsNullable
isNullable()
Is nullable, converted to IsNullableSource column: IS_NULLABLE final String
getScopeCatalog()
Scope catalogSource column: SCOPE_CATALOG final String
getScopeSchema()
Scope schemaSource column: SCOPE_SCHEMA final String
getScopeTable()
Scope tableSource 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. final IsAutoIncrement
isAutoincrement()
Is autoincrement, converted to IsAutoIncrementSource column: IS_AUTOINCREMENT final IsGeneratedColumn
isGeneratedColumn()
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 Boolean
equals(Object other)
Integer
hashCode()
-
-
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
-
-
-
-