public interface TableConstraint extends RelationalObject
Modifier and Type | Interface and Description |
---|---|
static class |
TableConstraint.ConstraintType
The types of table constraints.
|
RelationalObject.Filter
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Repository.UnitOfWork transaction,
Column columnToAdd) |
Column[] |
getColumns(Repository.UnitOfWork transaction) |
TableConstraint.ConstraintType |
getConstraintType() |
Table |
getTable(Repository.UnitOfWork transaction) |
void |
removeColumn(Repository.UnitOfWork transaction,
Column columnToRemove) |
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, getParent, getRepository
void addColumn(Repository.UnitOfWork transaction, Column columnToAdd) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)columnToAdd
- the column being added (cannot be null
)KException
- if an error occursColumn[] getColumns(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 occursTableConstraint.ConstraintType getConstraintType()
null
)Table getTable(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)table
(never null
)KException
- if an error occursvoid removeColumn(Repository.UnitOfWork transaction, Column columnToRemove) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)columnToRemove
- the column being removed (cannot be null
)KException
- if an error occursCopyright © 2013–2019. All rights reserved.