org.jooq.util
Interface ForeignKeyDefinition

All Superinterfaces:
Definition
All Known Implementing Classes:
DefaultForeignKeyDefinition

public interface ForeignKeyDefinition
extends Definition

An object holding information about a foreign key relationship.

Author:
Lukas Eder

Method Summary
 int countSimilarReferences()
          Count the number of references between referencing and referenced tables.
 List<ColumnDefinition> getKeyColumns()
          The list of columns making up the foreign key.
 TableDefinition getKeyTable()
          The definition of the referencing table
 List<ColumnDefinition> getReferencedColumns()
          The list of columns referenced by this foreign key
 UniqueKeyDefinition getReferencedKey()
          The referenced key.
 TableDefinition getReferencedTable()
          The definition of the referenced table.
 
Methods inherited from interface org.jooq.util.Definition
getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema
 

Method Detail

getKeyTable

TableDefinition getKeyTable()
The definition of the referencing table


getKeyColumns

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


getReferencedKey

UniqueKeyDefinition getReferencedKey()
The referenced key.


getReferencedTable

TableDefinition getReferencedTable()
The definition of the referenced table.


getReferencedColumns

List<ColumnDefinition> getReferencedColumns()
The list of columns referenced by this foreign key


countSimilarReferences

int countSimilarReferences()
Count the number of references between referencing and referenced tables.



Copyright © 2012. All Rights Reserved.