|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Relations
A model for all known Referenced Key / Referencing Key relations in the
Database's schema.
| Method Summary | |
|---|---|
ForeignKeyDefinition |
getForeignKey(ColumnDefinition column)
Get the foreign key for a given column, or null if that
column is not part of a foreign key. |
List<ForeignKeyDefinition> |
getForeignKeys(TableDefinition table)
Get a list of foreign keys for a given table. |
UniqueKeyDefinition |
getPrimaryKey(ColumnDefinition column)
Get the the primary for a given column, or null if that
column is not part of the primary key. |
List<UniqueKeyDefinition> |
getUniqueKeys(ColumnDefinition column)
Get a list of referenced keys (primary or unique) for a given table, that the column participates in. |
List<UniqueKeyDefinition> |
getUniqueKeys(TableDefinition table)
Get a list of referenced keys (primary or unique) for a given table. |
| Method Detail |
|---|
UniqueKeyDefinition getPrimaryKey(ColumnDefinition column)
null if that
column is not part of the primary key.
List<UniqueKeyDefinition> getUniqueKeys(ColumnDefinition column)
List<UniqueKeyDefinition> getUniqueKeys(TableDefinition table)
ForeignKeyDefinition getForeignKey(ColumnDefinition column)
null if that
column is not part of a foreign key.
List<ForeignKeyDefinition> getForeignKeys(TableDefinition table)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||