PrimaryKey

class PrimaryKey(val name: String?, val primaryKeyColumns: List<PrimaryKeyColumn>)

Wrapper for results of getPrimaryKeys. It has been refactored to provide of Column object rather than the flattened view provided by the getPrimaryKeys method.

Constructors

Link copied to clipboard
fun PrimaryKey(name: String?, primaryKeyColumns: List<PrimaryKeyColumn>)

Create empty Primary key

Properties

Link copied to clipboard
val name: String?

Key name

Link copied to clipboard
val primaryKeyColumns: List<PrimaryKeyColumn>

List of PrimaryKeyColumn objects. Each contains a Column and an sequenceNumber value. The Column is selected by filtering for the appropriate TABLE_CAT, TABLE_SCHEM, TABLE_NAME, and COLUMN_NAME as returned by java.sql.DatabaseMetaData.getPrimaryKeys, and the sequenceNumber value is from KEY_SEQ