public interface View extends Table
Table.OnCommit, Table.TemporaryType
RelationalObject.Filter
SchemaElement.SchemaElementType
Modifier and Type | Field and Description |
---|---|
static KomodoType |
IDENTIFIER
Identifier of this object
|
static View[] |
NO_VIEWS
An empty array of views.
|
static TypeResolver<View> |
RESOLVER
The resolver of a
View . |
static int |
TYPE_ID
The type identifier.
|
DEFAULT_CARDINALITY, DEFAULT_MATERIALIZED, DEFAULT_UPDATABLE, NO_TABLES
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
ForeignKey |
addForeignKey(Repository.UnitOfWork transaction,
String foreignKeyName,
Table referencedTable) |
UniqueConstraint |
addUniqueConstraint(Repository.UnitOfWork transaction,
String constraintName) |
Model |
getParent(Repository.UnitOfWork transaction) |
void |
removeForeignKey(Repository.UnitOfWork transaction,
String foreignKeyToRemove) |
void |
removeUniqueConstraint(Repository.UnitOfWork transaction,
String constraintToRemove) |
PrimaryKey |
setPrimaryKey(Repository.UnitOfWork transaction,
String newPrimaryKeyName) |
addAccessPattern, addColumn, addIndex, getAccessPatterns, getCardinality, getColumns, getDescription, getForeignKeys, getIndexes, getMaterializedTable, getNameInSource, getOnCommitValue, getPrimaryKey, getQueryExpression, getTemporaryTableType, getUniqueConstraints, getUuid, isMaterialized, isUpdatable, removeAccessPattern, removeColumn, removeIndex, removePrimaryKey, setCardinality, setDescription, setMaterialized, setMaterializedTable, setNameInSource, setOnCommitValue, setQueryExpression, setTemporaryTableType, setUpdatable, setUuid
export, getDocumentType, getName
getCustomOptions, getStandardOptions, getStatementOptionNames, getStatementOptions, isCustomOption, isStandardOption, removeStatementOption, setStatementOption
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
getSchemaElementType, setSchemaElementType
static final int TYPE_ID
static final KomodoType IDENTIFIER
static final View[] NO_VIEWS
static final TypeResolver<View> RESOLVER
View
.Model getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
getParent
in interface Table
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
ForeignKey addForeignKey(Repository.UnitOfWork transaction, String foreignKeyName, Table referencedTable) throws KException
addForeignKey
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)foreignKeyName
- the name of the foreign key being added (cannot be empty)referencedTable
- the table referenced by this foreign key (cannot be null
)null
)UnsupportedOperationException
- if calledKException
- if an error occursTable.addForeignKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String,
org.komodo.relational.model.Table)
UniqueConstraint addUniqueConstraint(Repository.UnitOfWork transaction, String constraintName) throws KException
addUniqueConstraint
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)constraintName
- the name of the unique constraint being added (cannot be empty)null
)UnsupportedOperationException
- if calledKException
- if an error occursTable.addUniqueConstraint(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
void removeForeignKey(Repository.UnitOfWork transaction, String foreignKeyToRemove) throws KException
removeForeignKey
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)foreignKeyToRemove
- the name of the foreign key being removed (cannot be empty)UnsupportedOperationException
- if calledKException
- if an error occursTable.removeForeignKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
void removeUniqueConstraint(Repository.UnitOfWork transaction, String constraintToRemove) throws KException
removeUniqueConstraint
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)constraintToRemove
- the name of the unique constraint being removed (cannot be empty)UnsupportedOperationException
- if calledKException
- if an error occursTable.removeUniqueConstraint(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
PrimaryKey setPrimaryKey(Repository.UnitOfWork transaction, String newPrimaryKeyName) throws KException
setPrimaryKey
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newPrimaryKeyName
- the name of the new primary key
child (cannot be empty)null
)UnsupportedOperationException
- if calledKException
- if an error occursTable.setPrimaryKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
Copyright © 2013–2019. All rights reserved.