Attribute

class Attribute(rs: ResultSet)

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

Parameters

Constructors

Link copied to clipboard
fun Attribute(rs: ResultSet)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
val attributeDefault: String?

Attribute default value

Link copied to clipboard
val attributeSize: Int

Column size, for char or date types this is the maximum number of characters, for numeric or decimal types this is precision

Link copied to clipboard
val attributeTypeName: String?

Attribute type name

Link copied to clipboard
val catalog: String?

Catalog name

Link copied to clipboard
val characterOctetLength: MetadataInt

For character types this represents the maximum number of bytes in the column

Link copied to clipboard
val dataType: JDBCType

SQL type, converted to JDBCType

Link copied to clipboard
val decimalDigits: MetadataInt

The number of fractional digits. TODO: explain MetadataInt

Link copied to clipboard
val isNullable: IsNullable

Is nullable, converted to IsNullable

Link copied to clipboard
val name: String?

Attribute name

Link copied to clipboard
val nullable: AttributeNullable

Indicates whether attribute is nullable, converted to AttributeNullable

Link copied to clipboard
val ordinalPosition: Int

Index of the attribute in the UserDefinedType (starts at 1)

Link copied to clipboard
val radix: MetadataInt

Numeric precision radix (typically either 10 or 2)

Link copied to clipboard
val remarks: String?

Comment describing column

Link copied to clipboard
val schema: String?

Schema name

Link copied to clipboard
val scopeCatalog: String?

Catalog of table that is the scope of a reference attribute (null if dataType isn't REF)

Link copied to clipboard
val scopeSchema: String?

Scope of table that is the scope of a reference attribute (null if dataType isn't REF)

Link copied to clipboard
val scopeTable: String?

Table name that is the scope of a reference attribute (null if dataType isn't REF)

Link copied to clipboard
val sourceDataType: JDBCType

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.

Link copied to clipboard
val typeName: String?

Type name