Interface PostgreSQLForeignKey
- All Known Implementing Classes:
- RepositoryForeignKey
public interface PostgreSQLForeignKey
Defines a foreign key relationship between two tables.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the name of the constraint.Return the column in the table that is the foreign key.Return the primary key column in the reference table.Return details of the table where the primary key is located.booleanIf the row with the primary key is deleted, should the rows with the foreign key also be deleted?booleanIf the primary key value is changed, should the foreign key values change too?
- 
Method Details- 
getConstraintNameString getConstraintName()Return the name of the constraint.- Returns:
- name
 
- 
getForeignKeyColumnPostgreSQLColumn getForeignKeyColumn()Return the column in the table that is the foreign key.- Returns:
- column
 
- 
getReferenceTablePostgreSQLTable getReferenceTable()Return details of the table where the primary key is located.- Returns:
- table
 
- 
getReferenceColumnPostgreSQLColumn getReferenceColumn()Return the primary key column in the reference table.- Returns:
- column
 
- 
isDeleteCascadeboolean isDeleteCascade()If the row with the primary key is deleted, should the rows with the foreign key also be deleted?- Returns:
- boolean
 
- 
isUpdateCascadeboolean isUpdateCascade()If the primary key value is changed, should the foreign key values change too?- Returns:
- boolean
 
 
-