public class TableImpl extends RelationalObjectImpl implements Table
Table.OnCommit, Table.TemporaryType
RelationalObject.Filter
SchemaElement.SchemaElementType
LOGGER, VALIDATE_INITIAL_STATE
index, path
DEFAULT_CARDINALITY, DEFAULT_MATERIALIZED, DEFAULT_UPDATABLE, IDENTIFIER, NO_TABLES, RESOLVER, TYPE_ID
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 |
---|
TableImpl(Repository.UnitOfWork uow,
Repository repository,
String workspacePath) |
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
getName
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildrenOfType, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPropertyDescriptors, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, hasChild, hasChild, hasChildren, hasDescriptor, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType
getAbsolutePath, getName, getRepository
public TableImpl(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 occurs or if node at specified path is not a tablepublic AccessPattern addAccessPattern(Repository.UnitOfWork transaction, String accessPatternName) throws KException
addAccessPattern
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)accessPatternName
- the name of the access pattern being added (cannot be empty)null
)KException
- if an error occursTable.addAccessPattern(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public Column addColumn(Repository.UnitOfWork transaction, String columnName) throws KException
addColumn
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)columnName
- the name of the column being added (cannot be empty)null
)KException
- if an error occursTable.addColumn(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public 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
)KException
- if an error occursTable.addForeignKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String,
org.komodo.relational.model.Table)
public Index addIndex(Repository.UnitOfWork transaction, String indexName) throws KException
addIndex
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)indexName
- the name of the index being added (cannot be empty)null
)KException
- if an error occursTable.addIndex(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public 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
)KException
- if an error occursTable.addUniqueConstraint(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public AccessPattern[] getAccessPatterns(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getAccessPatterns
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursTable.getAccessPatterns(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public long getCardinality(Repository.UnitOfWork transaction) throws KException
getCardinality
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursTable.getCardinality(org.komodo.spi.repository.Repository.UnitOfWork)
public KomodoObject[] getChildren(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getChildren
in interface KomodoObject
getChildren
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChildren(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public KomodoType[] getChildTypes()
getChildTypes
in interface KomodoObject
getChildTypes
in class ObjectImpl
ObjectImpl.getChildTypes()
public Column[] getColumns(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getColumns
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursTable.getColumns(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public StatementOption[] getCustomOptions(Repository.UnitOfWork transaction) throws KException
getCustomOptions
in interface OptionContainer
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 occursOptionContainer.getCustomOptions(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDescription(Repository.UnitOfWork transaction) throws KException
getDescription
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)description
property (can be empty)KException
- if an error occursTable.getDescription(org.komodo.spi.repository.Repository.UnitOfWork)
public ForeignKey[] getForeignKeys(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getForeignKeys
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursTable.getForeignKeys(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public Index[] getIndexes(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getIndexes
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursTable.getIndexes(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public String getMaterializedTable(Repository.UnitOfWork transaction) throws KException
getMaterializedTable
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursTable.getMaterializedTable(org.komodo.spi.repository.Repository.UnitOfWork)
public String getNameInSource(Repository.UnitOfWork transaction) throws KException
getNameInSource
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)name in source
property (can be empty)KException
- if an error occursTable.getNameInSource(org.komodo.spi.repository.Repository.UnitOfWork)
public Table.OnCommit getOnCommitValue(Repository.UnitOfWork uow) throws KException
getOnCommitValue
in interface Table
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursTable.getOnCommitValue(org.komodo.spi.repository.Repository.UnitOfWork)
public PrimaryKey getPrimaryKey(Repository.UnitOfWork transaction) throws KException
getPrimaryKey
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursTable.getPrimaryKey(org.komodo.spi.repository.Repository.UnitOfWork)
public Descriptor getPrimaryType(Repository.UnitOfWork transaction) throws KException
getPrimaryType
in interface KomodoObject
getPrimaryType
in class ObjectImpl
KException
ObjectImpl.getPrimaryType(org.komodo.spi.repository.Repository.UnitOfWork)
public Property getProperty(Repository.UnitOfWork transaction, String name) throws KException
getProperty
in interface KomodoObject
getProperty
in class RelationalObjectImpl
KException
RelationalObjectImpl.getProperty(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public PropertyDescriptor getPropertyDescriptor(Repository.UnitOfWork transaction, String propName) throws KException
getPropertyDescriptor
in interface KomodoObject
getPropertyDescriptor
in class RelationalObjectImpl
KException
RelationalObjectImpl.getPropertyDescriptor(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public String[] getPropertyNames(Repository.UnitOfWork transaction) throws KException
getPropertyNames
in interface KomodoObject
getPropertyNames
in class RelationalObjectImpl
KException
RelationalObjectImpl.getPropertyNames(org.komodo.spi.repository.Repository.UnitOfWork)
public String getQueryExpression(Repository.UnitOfWork uow) throws KException
getQueryExpression
in interface Table
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursTable.getQueryExpression(org.komodo.spi.repository.Repository.UnitOfWork)
public SchemaElement.SchemaElementType getSchemaElementType(Repository.UnitOfWork uow) throws KException
getSchemaElementType
in interface SchemaElement
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursSchemaElement.getSchemaElementType(org.komodo.spi.repository.Repository.UnitOfWork)
public Map<String,String> getStandardOptions()
getStandardOptions
in interface OptionContainer
null
but can be empty)OptionContainer.getStandardOptions()
public String[] getStatementOptionNames(Repository.UnitOfWork transaction) throws KException
getStatementOptionNames
in interface OptionContainer
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 occursOptionContainer.getStatementOptionNames(org.komodo.spi.repository.Repository.UnitOfWork)
public StatementOption[] getStatementOptions(Repository.UnitOfWork transaction) throws KException
getStatementOptions
in interface OptionContainer
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 occursOptionContainer.getStatementOptions(org.komodo.spi.repository.Repository.UnitOfWork)
public Table.TemporaryType getTemporaryTableType(Repository.UnitOfWork uow) throws KException
getTemporaryTableType
in interface Table
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
if not a temporary tableKException
- if an error occursTable.getTemporaryTableType(org.komodo.spi.repository.Repository.UnitOfWork)
public int getTypeId()
getTypeId
in interface KomodoObject
getTypeId
in class ObjectImpl
KomodoObject.getTypeId()
public KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
ObjectImpl.getTypeIdentifier(org.komodo.spi.repository.Repository.UnitOfWork)
public UniqueConstraint[] getUniqueConstraints(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getUniqueConstraints
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursTable.getUniqueConstraints(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public String getUuid(Repository.UnitOfWork transaction) throws KException
getUuid
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)UUID
option (can be empty)KException
- if an error occursTable.getUuid(org.komodo.spi.repository.Repository.UnitOfWork)
public Model getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface Table
getParent
in interface KNode
getParent
in class RelationalObjectImpl
KException
RelationalObjectImpl.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean hasProperties(Repository.UnitOfWork transaction) throws KException
hasProperties
in interface KomodoObject
hasProperties
in class ObjectImpl
KException
ObjectImpl.hasProperties(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean hasProperty(Repository.UnitOfWork transaction, String name) throws KException
hasProperty
in interface KomodoObject
hasProperty
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasProperty(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public boolean isCustomOption(Repository.UnitOfWork transaction, String name) throws KException
isCustomOption
in interface OptionContainer
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)name
- the name of the option being checked (cannot be empty)true
if the custom option existsKException
- if an error occursOptionContainer.isCustomOption(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public boolean isMaterialized(Repository.UnitOfWork transaction) throws KException
isMaterialized
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this is a materialized tableKException
- if an error occursTable.isMaterialized(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isStandardOption(String name)
isStandardOption
in interface OptionContainer
name
- the name of the option being checked (cannot be empty)true
if a standard optionOptionContainer.isStandardOption(java.lang.String)
public boolean isUpdatable(Repository.UnitOfWork transaction) throws KException
isUpdatable
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this table is updatableKException
- if an error occursTable.isUpdatable(org.komodo.spi.repository.Repository.UnitOfWork)
public void removeAccessPattern(Repository.UnitOfWork transaction, String accessPatternToRemove) throws KException
removeAccessPattern
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)accessPatternToRemove
- the name of the access pattern being removed (cannot be empty)KException
- if an error occursTable.removeAccessPattern(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void removeColumn(Repository.UnitOfWork transaction, String columnToRemove) throws KException
removeColumn
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)columnToRemove
- the name of the column being removed (cannot be empty)KException
- if an error occursTable.removeColumn(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public 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)KException
- if an error occursTable.removeForeignKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void removeIndex(Repository.UnitOfWork transaction, String indexToRemove) throws KException
removeIndex
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)indexToRemove
- the name of the index being removed (cannot be empty)KException
- if an error occursTable.removeIndex(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void removePrimaryKey(Repository.UnitOfWork transaction) throws KException
removePrimaryKey
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursTable.removePrimaryKey(org.komodo.spi.repository.Repository.UnitOfWork)
public void removeStatementOption(Repository.UnitOfWork transaction, String optionToRemove) throws KException
removeStatementOption
in interface OptionContainer
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)optionToRemove
- the name of the statement option being removed (cannot be empty)KException
- if an error occursOptionContainer.removeStatementOption(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public 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)KException
- if an error occursTable.removeUniqueConstraint(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setCardinality(Repository.UnitOfWork transaction, long newCardinality) throws KException
setCardinality
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newCardinality
- the new value for the cardinality
propertyKException
- if an error occursTable.setCardinality(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setDescription(Repository.UnitOfWork transaction, String newDescription) throws KException
setDescription
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDescription
- the new value of the description
property (can only be empty when removing)KException
- if an error occursTable.setDescription(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setMaterialized(Repository.UnitOfWork transaction, boolean newMaterialized) throws KException
setMaterialized
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newMaterialized
- the new value for the materialized
propertyKException
- if an error occursTable.setMaterialized(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setMaterializedTable(Repository.UnitOfWork transaction, String newMaterializedTable) throws KException
setMaterializedTable
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newMaterializedTable
- the new value for the materialized table
property (can only be empty when removing)KException
- if an error occursTable.setMaterializedTable(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setNameInSource(Repository.UnitOfWork transaction, String newNameInSource) throws KException
setNameInSource
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNameInSource
- the new name in source (can only be empty when removing)KException
- if an error occursTable.setNameInSource(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setOnCommitValue(Repository.UnitOfWork uow, Table.OnCommit newOnCommit) throws KException
setOnCommitValue
in interface Table
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newOnCommit
- the new value for the on commit value
property (can be null
)KException
- if an error occursTable.setOnCommitValue(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.model.Table.OnCommit)
public 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
)KException
- if an error occursTable.setPrimaryKey(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setProperty(Repository.UnitOfWork transaction, String propertyName, Object... values) throws KException
setProperty
in interface KomodoObject
setProperty
in class ObjectImpl
KException
ObjectImpl.setProperty(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String,
java.lang.Object[])
public void setQueryExpression(Repository.UnitOfWork uow, String newQueryExpression) throws KException
setQueryExpression
in interface Table
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newQueryExpression
- the new value for the query expression
property (can be empty)KException
- if an error occursTable.setQueryExpression(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setSchemaElementType(Repository.UnitOfWork uow, SchemaElement.SchemaElementType newSchemaElementType) throws KException
setSchemaElementType
in interface SchemaElement
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newSchemaElementType
- the new value for the schema element type
property (can be null
)KException
- if an error occursSchemaElement.setSchemaElementType(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.model.SchemaElement.SchemaElementType)
public StatementOption setStatementOption(Repository.UnitOfWork transaction, String optionName, String optionValue) throws KException
setStatementOption
in interface OptionContainer
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)optionName
- the name of the statement option being added (cannot be empty)optionValue
- the statement option value (can be empty if removing the option)null
if removed)KException
- if an error occursOptionContainer.setStatementOption(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, java.lang.String)
public void setTemporaryTableType(Repository.UnitOfWork uow, Table.TemporaryType newTempType) throws KException
setTemporaryTableType
in interface Table
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newTempType
- the new value for the temporary table type
property (can be null
)KException
- if an error occursTable.setTemporaryTableType(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.model.Table.TemporaryType)
public void setUpdatable(Repository.UnitOfWork transaction, boolean newUpdatable) throws KException
setUpdatable
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newUpdatable
- the new value for the updatable
propertyKException
- if an error occursTable.setUpdatable(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setUuid(Repository.UnitOfWork transaction, String newUuid) throws KException
setUuid
in interface Table
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newUuid
- the new value of the UUID
option (can only be empty when removing)KException
- if an error occursTable.setUuid(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public byte[] export(Repository.UnitOfWork transaction, Properties exportProperties) throws KException
export
in interface Exportable
KException
Exportable.export(org.komodo.spi.repository.Repository.UnitOfWork, java.util.Properties)
public DocumentType getDocumentType(Repository.UnitOfWork transaction) throws KException
getDocumentType
in interface Exportable
KException
Copyright © 2013–2019. All rights reserved.