public interface Relations
Database's schema.| Modifier and Type | Method and Description |
|---|---|
List<CheckConstraintDefinition> |
getCheckConstraints(TableDefinition table)
Get a list of
CHECK constraints for a given table. |
List<ForeignKeyDefinition> |
getForeignKeys(ColumnDefinition column)
Get a list of foreign keys for a given table, that the column
participates in.
|
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()
Get a list of all referenced keys (primary or unique).
|
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(SchemaDefinition schema)
Get a list of all referenced keys (primary or unique) for a given schema.
|
List<UniqueKeyDefinition> |
getUniqueKeys(TableDefinition table)
Get a list of referenced keys (primary or unique) for a given table.
|
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)
List<UniqueKeyDefinition> getUniqueKeys(SchemaDefinition schema)
List<UniqueKeyDefinition> getUniqueKeys()
List<ForeignKeyDefinition> getForeignKeys(ColumnDefinition column)
List<ForeignKeyDefinition> getForeignKeys(TableDefinition table)
List<CheckConstraintDefinition> getCheckConstraints(TableDefinition table)
CHECK constraints for a given table. Returns
an empty list if the given table has no CHECK constraints.Copyright © 2021. All rights reserved.