public class ResultSetColumnImpl extends RelationalChildRestrictedObject implements ResultSetColumn
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
IDENTIFIER, NO_COLUMNS, 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 |
---|
ResultSetColumnImpl(Repository.UnitOfWork uow,
Repository repository,
String workspacePath) |
addChild, getChildren, getChildrenOfType, getChildTypes, hasChild, hasChildren, isChildRestricted
getChild, getChild, getDescriptor, getDescriptors, getFilters, getParent, getPropertyDescriptors, hasChild, hasDescriptor, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getIndex, getName, getObjectFactory, getObjectProperty, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, getTypeId, handleError, hashCode, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPropertyDescriptors, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, hasChild, hasChild, hasChildren, hasDescriptor, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType
getAbsolutePath, getName, getParent, getRepository
public ResultSetColumnImpl(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 columnpublic 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 getDatatypeName(Repository.UnitOfWork uow) throws KException
getDatatypeName
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype name
property (can be empty)KException
- if an error occursResultSetColumn.getDatatypeName(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDefaultValue(Repository.UnitOfWork uow) throws KException
getDefaultValue
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)default value
property (can be empty)KException
- if an error occursResultSetColumn.getDefaultValue(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDescription(Repository.UnitOfWork transaction) throws KException
getDescription
in interface ResultSetColumn
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 occursResultSetColumn.getDescription(org.komodo.spi.repository.Repository.UnitOfWork)
public long getLength(Repository.UnitOfWork uow) throws KException
getLength
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype length
propertyKException
- if an error occursResultSetColumn.getLength(org.komodo.spi.repository.Repository.UnitOfWork)
public String getNameInSource(Repository.UnitOfWork transaction) throws KException
getNameInSource
in interface ResultSetColumn
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 occursResultSetColumn.getNameInSource(org.komodo.spi.repository.Repository.UnitOfWork)
public RelationalConstants.Nullable getNullable(Repository.UnitOfWork uow) throws KException
getNullable
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)nullable
property (never null
)KException
- if an error occursResultSetColumn.getNullable(org.komodo.spi.repository.Repository.UnitOfWork)
public long getPrecision(Repository.UnitOfWork uow) throws KException
getPrecision
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype precision
propertyKException
- if an error occursResultSetColumn.getPrecision(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 long getScale(Repository.UnitOfWork uow) throws KException
getScale
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype scale
propertyKException
- if an error occursResultSetColumn.getScale(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 KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
ObjectImpl.getTypeIdentifier(org.komodo.spi.repository.Repository.UnitOfWork)
public String getUuid(Repository.UnitOfWork transaction) throws KException
getUuid
in interface ResultSetColumn
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 occursResultSetColumn.getUuid(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 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 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 setDatatypeName(Repository.UnitOfWork uow, String newTypeName) throws KException
setDatatypeName
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newTypeName
- the new value of the datatype name
property (can be empty)KException
- if an error occursResultSetColumn.setDatatypeName(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setDefaultValue(Repository.UnitOfWork uow, String newDefaultValue) throws KException
setDefaultValue
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDefaultValue
- the new value of the default value
property (can be empty)KException
- if an error occursResultSetColumn.setDefaultValue(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setDescription(Repository.UnitOfWork transaction, String newDescription) throws KException
setDescription
in interface ResultSetColumn
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 occursResultSetColumn.setDescription(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setLength(Repository.UnitOfWork uow, long newLength) throws KException
setLength
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newLength
- the new value of the datatype length
propertyKException
- if an error occursResultSetColumn.setLength(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setNameInSource(Repository.UnitOfWork transaction, String newNameInSource) throws KException
setNameInSource
in interface ResultSetColumn
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 occursResultSetColumn.setNameInSource(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setNullable(Repository.UnitOfWork uow, RelationalConstants.Nullable newNullable) throws KException
setNullable
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNullable
- the new value of the nullable
property (can be null
)KException
- if an error occursResultSetColumn.setNullable(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.RelationalConstants.Nullable)
public void setPrecision(Repository.UnitOfWork uow, long newPrecision) throws KException
setPrecision
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newPrecision
- the new value of the datatype precision
propertyKException
- if an error occursResultSetColumn.setPrecision(org.komodo.spi.repository.Repository.UnitOfWork, long)
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 setScale(Repository.UnitOfWork uow, long newScale) throws KException
setScale
in interface ResultSetColumn
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newScale
- the new value of the datatype scale
propertyKException
- if an error occursResultSetColumn.setScale(org.komodo.spi.repository.Repository.UnitOfWork, long)
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 setUuid(Repository.UnitOfWork transaction, String newUuid) throws KException
setUuid
in interface ResultSetColumn
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 occursResultSetColumn.setUuid(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
Copyright © 2013–2019. All rights reserved.