Column

class Column(metadata: DatabaseMetaData, rs: ResultSet)

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

Parameters

rs

Constructors

Link copied to clipboard
fun Column(metadata: DatabaseMetaData, rs: ResultSet)

Functions

Link copied to clipboard
fun getColumnPrivileges(): List<ColumnPrivilege>

Wrapper around getColumnPrivileges method and represents a list of ColumnPrivileges for this column only

Properties

Link copied to clipboard
val catalog: String?

Containing Table's catalog

Link copied to clipboard
val characterOctetLength: MetadataInt

Character octet length

Link copied to clipboard
val columnDefault: String?

Column default

Link copied to clipboard
val columnSize: MetadataInt

Column size

Link copied to clipboard
val dataType: JDBCType

SQL type from java.sql.Types, converted from int

Link copied to clipboard
val decimalDigits: MetadataInt

The number of fractional digits

Link copied to clipboard
val isAutoincrement: IsAutoIncrement

Is autoincrement, converted to IsAutoIncrement

Link copied to clipboard
val isGeneratedColumn: IsGeneratedColumn

Is generated column, converted to IsGeneratedColumn

Link copied to clipboard
val isNullable: IsNullable

Is nullable, converted to IsNullable

Link copied to clipboard
val name: String

Column name

Link copied to clipboard
val nullable: ColumnNullable

Nullable, converted to ColumnNullable

Link copied to clipboard
val ordinalPosition: Int

Ordinal position

Link copied to clipboard
val radix: MetadataInt

Numeric precision radix, renamed

Link copied to clipboard
val remarks: String?

Remarks

Link copied to clipboard
val schema: String?

Containing Table's schema

Link copied to clipboard
val scopeCatalog: String?

Scope catalog

Link copied to clipboard
val scopeSchema: String?

Scope schema

Link copied to clipboard
val scopeTable: String?

Scope table

Link copied to clipboard
val sourceDataType: JDBCType

Source data type

Link copied to clipboard
val tableName: String?

Containing Table's name

Link copied to clipboard
val typeName: String?

Data source dependent type name, for UserDefinedType the type name is fully qualified