public interface ForeignKey extends TableConstraint
TableConstraint.ConstraintType
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
static TableConstraint.ConstraintType |
CONSTRAINT_TYPE
The constraint type for a foreign key.
|
static KomodoType |
IDENTIFIER
Identifier of this object
|
static ForeignKey[] |
NO_FOREIGN_KEYS
An empty collection of foreign key constraints.
|
static TypeResolver<ForeignKey> |
RESOLVER
The resolver of a
ForeignKey . |
static int |
TYPE_ID
The type identifier.
|
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
addReferencesColumn(Repository.UnitOfWork transaction,
Column newReferencesColumn) |
Table |
getParent(Repository.UnitOfWork transaction) |
Column[] |
getReferencesColumns(Repository.UnitOfWork transaction) |
Table |
getReferencesTable(Repository.UnitOfWork transaction) |
void |
removeReferencesColumn(Repository.UnitOfWork transaction,
Column referencesColumnToRemove) |
void |
setReferencesTable(Repository.UnitOfWork transaction,
Table newReferencesTable) |
addColumn, getColumns, getConstraintType, getTable, removeColumn
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, getTypeIdentifier, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getRepository
static final int TYPE_ID
static final KomodoType IDENTIFIER
static final TableConstraint.ConstraintType CONSTRAINT_TYPE
static final ForeignKey[] NO_FOREIGN_KEYS
static final TypeResolver<ForeignKey> RESOLVER
ForeignKey
.Table getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
void addReferencesColumn(Repository.UnitOfWork transaction, Column newReferencesColumn) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newReferencesColumn
- the references table columns being added (cannot be null
)KException
- if an error occursColumn[] getReferencesColumns(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
but can be empty)KException
- if an error occursTable getReferencesTable(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursvoid removeReferencesColumn(Repository.UnitOfWork transaction, Column referencesColumnToRemove) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)referencesColumnToRemove
- the references table column being removed (cannot be null
)KException
- if an error occursvoid setReferencesTable(Repository.UnitOfWork transaction, Table newReferencesTable) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newReferencesTable
- the new value for the references table (cannot be null
)KException
- if an error occursCopyright © 2013–2019. All rights reserved.