Interface IConstraintFk
- All Superinterfaces:
IConstraint,ISearchPath,IStatement,ISubElement
- All Known Implementing Classes:
MsConstraintFk,PgConstraintFk
Interface for foreign key constraints.
Extends the basic constraint interface with foreign key specific functionality
including references to foreign table, schema, and columns.
-
Method Summary
Modifier and TypeMethodDescriptionGets the foreign columns referenced by this foreign key.Gets the foreign schema containing the referenced table.Gets the foreign table referenced by this foreign key.Methods inherited from interface org.pgcodekeeper.core.database.api.schema.IConstraint
containsColumn, getColumns, getDefinition, getStatementType, getTableName, isPrimaryKeyMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISubElement
getContainingSchema, toObjectReference
-
Method Details
-
getForeignColumns
Collection<String> getForeignColumns()Gets the foreign columns referenced by this foreign key.- Returns:
- a collection of foreign column names
-
getForeignTable
String getForeignTable()Gets the foreign table referenced by this foreign key.- Returns:
- the foreign table name
-
getForeignSchema
String getForeignSchema()Gets the foreign schema containing the referenced table.- Returns:
- the foreign schema name
-