public final class ViewImpl extends TableImpl implements View
Table.OnCommit, Table.TemporaryType
RelationalObject.Filter
SchemaElement.SchemaElementType
LOGGER, VALIDATE_INITIAL_STATE
index, path
IDENTIFIER, NO_VIEWS, RESOLVER, TYPE_ID
DEFAULT_CARDINALITY, DEFAULT_MATERIALIZED, DEFAULT_UPDATABLE, NO_TABLES
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
ViewImpl(Repository.UnitOfWork uow,
Repository repository,
String workspacePath) |
Modifier and Type | Method and Description |
---|---|
ForeignKey |
addForeignKey(Repository.UnitOfWork uow,
String foreignKeyName,
Table referencedTable) |
UniqueConstraint |
addUniqueConstraint(Repository.UnitOfWork transaction,
String constraintName) |
Model |
getParent(Repository.UnitOfWork transaction) |
KomodoType |
getTypeIdentifier(Repository.UnitOfWork uow) |
void |
removeForeignKey(Repository.UnitOfWork transaction,
String foreignKeyToRemove) |
void |
removeUniqueConstraint(Repository.UnitOfWork transaction,
String constraintToRemove) |
PrimaryKey |
setPrimaryKey(Repository.UnitOfWork transaction,
String newPrimaryKeyName) |
addAccessPattern, addColumn, addIndex, export, getAccessPatterns, getCardinality, getChildren, getChildTypes, getColumns, getCustomOptions, getDescription, getDocumentType, getForeignKeys, getIndexes, getMaterializedTable, getNameInSource, getOnCommitValue, getPrimaryKey, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyNames, getQueryExpression, getSchemaElementType, getStandardOptions, getStatementOptionNames, getStatementOptions, getTemporaryTableType, getTypeId, getUniqueConstraints, getUuid, hasProperties, hasProperty, isCustomOption, isMaterialized, isStandardOption, isUpdatable, removeAccessPattern, removeColumn, removeIndex, removePrimaryKey, removeStatementOption, setCardinality, setDescription, setMaterialized, setMaterializedTable, setNameInSource, setOnCommitValue, setProperty, setQueryExpression, setSchemaElementType, setStatementOption, setTemporaryTableType, setUpdatable, setUuid
getChild, getChild, getChildrenOfType, getDescriptor, getDescriptors, getFilters, getPropertyDescriptors, hasChild, hasChild, hasChildren, hasDescriptor, isChildRestricted, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addChild, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getIndex, getName, getObjectFactory, getObjectProperty, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, handleError, hashCode, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getRepository
getSchemaElementType, setSchemaElementType
public ViewImpl(Repository.UnitOfWork uow, Repository repository, String workspacePath) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)repository
- the repository where the relational object exists (cannot be null
)workspacePath
- the workspace relative path (cannot be empty)KException
- if an error occurspublic KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
TableImpl
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class TableImpl
ObjectImpl.getTypeIdentifier(org.komodo.spi.repository.Repository.UnitOfWork)
public Model getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface Table
getParent
in interface View
getParent
in interface KNode
getParent
in class TableImpl
KException
RelationalObjectImpl.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
public ForeignKey addForeignKey(Repository.UnitOfWork uow, String foreignKeyName, Table referencedTable)
addForeignKey
in interface Table
addForeignKey
in interface View
addForeignKey
in class TableImpl
uow
- 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 calledTableImpl.addForeignKey(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, org.komodo.relational.model.Table)
public UniqueConstraint addUniqueConstraint(Repository.UnitOfWork transaction, String constraintName)
addUniqueConstraint
in interface Table
addUniqueConstraint
in interface View
addUniqueConstraint
in class TableImpl
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 calledView.addUniqueConstraint(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void removeForeignKey(Repository.UnitOfWork transaction, String foreignKeyToRemove)
removeForeignKey
in interface Table
removeForeignKey
in interface View
removeForeignKey
in class TableImpl
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)View.removeForeignKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void removeUniqueConstraint(Repository.UnitOfWork transaction, String constraintToRemove)
removeUniqueConstraint
in interface Table
removeUniqueConstraint
in interface View
removeUniqueConstraint
in class TableImpl
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)View.removeUniqueConstraint(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public PrimaryKey setPrimaryKey(Repository.UnitOfWork transaction, String newPrimaryKeyName)
setPrimaryKey
in interface Table
setPrimaryKey
in interface View
setPrimaryKey
in class TableImpl
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
)View.setPrimaryKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
Copyright © 2013–2019. All rights reserved.