- Alle bekannten Implementierungsklassen:
DefaultRelations
public interface Relations
A model for all known Referenced Key / Referencing Key relations in the
Database's schema.- Autor:
- Lukas Eder
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGet a list ofCHECKconstraints for a given table.getForeignKeys(ColumnDefinition column) Get a list of foreign keys for a given table, that the column participates in.getForeignKeys(TableDefinition table) Get a list of foreign keys for a given table.getKeys()Get a list of all unique keys (including primary keys).getKeys(ColumnDefinition column) Get a list of unique keys (including the primary key) for a given table, that the column participates in.getKeys(SchemaDefinition schema) Get a list of all unique keys (including primary keys) for a given schema.getKeys(TableDefinition table) Get a list of unique keys (including the primary key) for a given table.getPrimaryKey(ColumnDefinition column) Get the the primary for a given column, ornullif that column is not part of the primary key.Get a list of all unique keys (not including primary keys).getUniqueKeys(ColumnDefinition column) Get a list of unique keys (not including the primary key) for a given table, that the column participates in.getUniqueKeys(SchemaDefinition schema) Get a list of all unique keys (not including primary keys) for a given schema.getUniqueKeys(TableDefinition table) Get a list of unique keys (not including the primary key) for a given table.
-
Methodendetails
-
getPrimaryKey
Get the the primary for a given column, ornullif that column is not part of the primary key. -
getUniqueKeys
Get a list of unique keys (not including the primary key) for a given table, that the column participates in. -
getUniqueKeys
Get a list of unique keys (not including the primary key) for a given table. -
getUniqueKeys
Get a list of all unique keys (not including primary keys) for a given schema. -
getUniqueKeys
List<UniqueKeyDefinition> getUniqueKeys()Get a list of all unique keys (not including primary keys). -
getKeys
Get a list of unique keys (including the primary key) for a given table, that the column participates in. -
getKeys
Get a list of unique keys (including the primary key) for a given table. -
getKeys
Get a list of all unique keys (including primary keys) for a given schema. -
getKeys
List<UniqueKeyDefinition> getKeys()Get a list of all unique keys (including primary keys). -
getForeignKeys
Get a list of foreign keys for a given table, that the column participates in. Returns an empty list if the given column is not part of any foreign key. -
getForeignKeys
Get a list of foreign keys for a given table. Returns an empty list if the given table has no foreign keys. -
getCheckConstraints
Get a list ofCHECKconstraints for a given table. Returns an empty list if the given table has noCHECKconstraints.
-