org.jooq.util
Interface UniqueKeyDefinition

All Superinterfaces:
Definition
All Known Implementing Classes:
DefaultUniqueKeyDefinition

public interface UniqueKeyDefinition
extends Definition

An object holding information about an inverse foreign key relationship.

This object may either represent a primary key or a unique key. It holds a list of foreign keys referencing this key.

Author:
Lukas Eder

Method Summary
 List<ForeignKeyDefinition> getForeignKeys()
          The foreign keys referencing this primary key
 List<ColumnDefinition> getKeyColumns()
          The list of columns making up the primary key.
 TableDefinition getTable()
          The table holding this key
 
Methods inherited from interface org.jooq.util.Definition
getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema
 

Method Detail

getKeyColumns

List<ColumnDefinition> getKeyColumns()
The list of columns making up the primary key.


getForeignKeys

List<ForeignKeyDefinition> getForeignKeys()
The foreign keys referencing this primary key


getTable

TableDefinition getTable()
The table holding this key



Copyright © 2012. All Rights Reserved.