public final class ParameterImpl extends RelationalChildRestrictedObject implements Parameter
Parameter.Direction
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
DEFAULT_RESULT, IDENTIFIER, NO_PARAMETERS, 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 |
---|
ParameterImpl(Repository.UnitOfWork uow,
Repository repository,
String workspacePath) |
addChild, getChildren, getChildrenOfType, getChildTypes, hasChild, hasChildren, isChildRestricted
getChild, getChild, getDescriptor, getDescriptors, getFilters, 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, handleError, hashCode, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getStandardOptions
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, 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 ParameterImpl(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 parameterpublic 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 Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)data type name
property (can be empty)KException
- if an error occursParameter.getDatatypeName(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDefaultValue(Repository.UnitOfWork uow) throws KException
getDefaultValue
in interface Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)default value
(can be empty)KException
- if an error occursParameter.getDefaultValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Parameter.Direction getDirection(Repository.UnitOfWork uow) throws KException
getDirection
in interface Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)direction
property (never null
)KException
- if an error occursParameter.getDirection(org.komodo.spi.repository.Repository.UnitOfWork)
public long getLength(Repository.UnitOfWork uow) throws KException
getLength
in interface Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype length
propertyKException
- if an error occursParameter.getLength(org.komodo.spi.repository.Repository.UnitOfWork)
public RelationalConstants.Nullable getNullable(Repository.UnitOfWork uow) throws KException
getNullable
in interface Parameter
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 occursParameter.getNullable(org.komodo.spi.repository.Repository.UnitOfWork)
public long getPrecision(Repository.UnitOfWork uow) throws KException
getPrecision
in interface Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype precision
propertyKException
- if an error occursParameter.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 Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype scale
propertyKException
- if an error occursParameter.getScale(org.komodo.spi.repository.Repository.UnitOfWork)
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 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 AbstractProcedure getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface Parameter
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 isResult(Repository.UnitOfWork transaction) throws KException
isResult
in interface Parameter
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this parameter is the procedure resultKException
- if an error occursParameter.isResult(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 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 Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newTypeName
- the new datatype name (can be empty)KException
- if an error occursParameter.setDatatypeName(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setDefaultValue(Repository.UnitOfWork uow, String newDefaultValue) throws KException
setDefaultValue
in interface Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDefaultValue
- the new default value (can be null
)KException
- if an error occursParameter.setDefaultValue(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setDirection(Repository.UnitOfWork uow, Parameter.Direction newDirection) throws KException
setDirection
in interface Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDirection
- the new direction (can be null
)KException
- if an error occursParameter.setDirection(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.model.Parameter.Direction)
public void setLength(Repository.UnitOfWork uow, long newLength) throws KException
setLength
in interface Parameter
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 occursParameter.setLength(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setNullable(Repository.UnitOfWork uow, RelationalConstants.Nullable newNullable) throws KException
setNullable
in interface Parameter
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursParameter.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 Parameter
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 occursParameter.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 setResult(Repository.UnitOfWork transaction, boolean newResult) throws KException
setResult
in interface Parameter
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newResult
- the new value for the is result
propertyKException
- if an error occursParameter.setResult(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setScale(Repository.UnitOfWork uow, long newScale) throws KException
setScale
in interface Parameter
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 occursParameter.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)
Copyright © 2013–2019. All rights reserved.