public final class StatementOptionImpl extends RelationalChildRestrictedObject implements StatementOption
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
IDENTIFIER, NO_OPTIONS, 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 |
---|
StatementOptionImpl(Repository.UnitOfWork transaction,
Repository repository,
String workspacePath) |
addChild, getChildren, getChildrenOfType, getChildTypes, hasChild, hasChildren, isChildRestricted
getChild, getChild, getDescriptor, getDescriptors, getFilters, getParent, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasChild, hasDescriptor, hasProperty, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getIndex, getName, getObjectFactory, getObjectProperty, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, getTypeId, handleError, hashCode, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, setProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyFactory
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, getParent, getRepository
public StatementOptionImpl(Repository.UnitOfWork transaction, Repository repository, String workspacePath) throws KException
transaction
- 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 statement optionpublic InputStream getBinaryValue(Repository.UnitOfWork uow) throws KException
getBinaryValue
in interface Property
KException
public Boolean getBooleanValue(Repository.UnitOfWork transaction) throws KException
getBooleanValue
in interface Property
KException
Property.getBooleanValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Boolean[] getBooleanValues(Repository.UnitOfWork transaction)
getBooleanValues
in interface Property
UnsupportedOperationException
- if calledProperty.getBooleanValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Calendar getDateValue(Repository.UnitOfWork transaction) throws KException
getDateValue
in interface Property
KException
Property.getDateValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Calendar[] getDateValues(Repository.UnitOfWork transaction)
getDateValues
in interface Property
UnsupportedOperationException
- if calledProperty.getDateValues(org.komodo.spi.repository.Repository.UnitOfWork)
public PropertyDescriptor getDescriptor(Repository.UnitOfWork transaction) throws KException
getDescriptor
in interface Property
KException
Property.getDescriptor(org.komodo.spi.repository.Repository.UnitOfWork)
public Double getDoubleValue(Repository.UnitOfWork transaction) throws KException
getDoubleValue
in interface Property
KException
Property.getDoubleValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Double[] getDoubleValues(Repository.UnitOfWork transaction)
getDoubleValues
in interface Property
UnsupportedOperationException
- if calledProperty.getDoubleValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Integer getIntegerValue(Repository.UnitOfWork transaction) throws KException
getIntegerValue
in interface Property
KException
Property.getIntegerValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Integer[] getIntegerValues(Repository.UnitOfWork transaction)
getIntegerValues
in interface Property
UnsupportedOperationException
- if calledProperty.getIntegerValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Long getLongValue(Repository.UnitOfWork transaction) throws KException
getLongValue
in interface Property
KException
Property.getLongValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Long[] getLongValues(Repository.UnitOfWork transaction)
getLongValues
in interface Property
UnsupportedOperationException
- if calledProperty.getLongValues(org.komodo.spi.repository.Repository.UnitOfWork)
public String getOption(Repository.UnitOfWork uow) throws KException
getOption
in interface StatementOption
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursStatementOption.getOption(org.komodo.spi.repository.Repository.UnitOfWork)
public String getStringValue(Repository.UnitOfWork transaction) throws KException
getStringValue
in interface Property
KException
Property.getStringValue(org.komodo.spi.repository.Repository.UnitOfWork)
public String[] getStringValues(Repository.UnitOfWork transaction)
getStringValues
in interface Property
UnsupportedOperationException
- if calledProperty.getStringValues(org.komodo.spi.repository.Repository.UnitOfWork)
public KomodoType getTypeIdentifier(Repository.UnitOfWork transaction)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
ObjectImpl.getTypeIdentifier(org.komodo.spi.repository.Repository.UnitOfWork)
public String getValue(Repository.UnitOfWork transaction) throws KException
getValue
in interface Property
KException
Property.getValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Object[] getValues(Repository.UnitOfWork transaction)
getValues
in interface Property
UnsupportedOperationException
- if calledProperty.getValues(org.komodo.spi.repository.Repository.UnitOfWork)
public PropertyValueType getValueType(Repository.UnitOfWork transaction)
Always returns PropertyValueType.STRING
getValueType
in interface Property
Property.getValueType(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isMultiple(Repository.UnitOfWork transaction)
Always returns false
isMultiple
in interface Property
Property.isMultiple(org.komodo.spi.repository.Repository.UnitOfWork)
public void set(Repository.UnitOfWork transaction, Object... values) throws KException
set
in interface Property
KException
Property.set(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.Object[])
public void setOption(Repository.UnitOfWork transaction, String newOption) throws KException
setOption
in interface StatementOption
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newOption
- the new value for the statement option
property (cannot be empty)KException
- if an error occursStatementOption.setOption(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
Copyright © 2013–2019. All rights reserved.