public interface Parameter extends OptionContainer, RelationalObject
Modifier and Type | Interface and Description |
---|---|
static class |
Parameter.Direction
Represents a parameter direction.
|
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_RESULT
The default value for the
is result property. |
static KomodoType |
IDENTIFIER
Identifier of this object
|
static Parameter[] |
NO_PARAMETERS
An empty array of parameters.
|
static TypeResolver<Parameter> |
RESOLVER
The resolver of a
Parameter . |
static int |
TYPE_ID
The type identifier.
|
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
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, getTypeIdentifier, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getRepository
static final int TYPE_ID
static final KomodoType IDENTIFIER
static final boolean DEFAULT_RESULT
is result
property. Value is false .static final Parameter[] NO_PARAMETERS
static final TypeResolver<Parameter> RESOLVER
Parameter
.AbstractProcedure getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
String getDatatypeName(Repository.UnitOfWork transaction) throws KException
transaction
- 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 occursString getDefaultValue(Repository.UnitOfWork transaction) throws KException
transaction
- 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.Direction getDirection(Repository.UnitOfWork transaction) throws KException
transaction
- 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.Direction.DEFAULT_VALUE
long getLength(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype length
propertyKException
- if an error occursRelationalConstants.Nullable getNullable(Repository.UnitOfWork transaction) throws KException
transaction
- 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 occursRelationalConstants.Nullable.DEFAULT_VALUE
long getPrecision(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype precision
propertyKException
- if an error occurslong getScale(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype scale
propertyKException
- if an error occursboolean isResult(Repository.UnitOfWork transaction) throws KException
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 occursDEFAULT_RESULT
void setDatatypeName(Repository.UnitOfWork transaction, String newTypeName) throws KException
transaction
- 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 occursvoid setDefaultValue(Repository.UnitOfWork transaction, String newDefaultValue) throws KException
transaction
- 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 occursvoid setDirection(Repository.UnitOfWork transaction, Parameter.Direction newDirection) throws KException
transaction
- 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.Direction.DEFAULT_VALUE
void setLength(Repository.UnitOfWork transaction, long newLength) throws KException
transaction
- 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 occursvoid setNullable(Repository.UnitOfWork transaction, RelationalConstants.Nullable newNullable) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNullable
- KException
- if an error occursRelationalConstants.Nullable.DEFAULT_VALUE
void setPrecision(Repository.UnitOfWork transaction, long newPrecision) throws KException
transaction
- 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 occursvoid setResult(Repository.UnitOfWork transaction, boolean newResult) throws KException
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 occursDEFAULT_RESULT
void setScale(Repository.UnitOfWork transaction, long newScale) throws KException
transaction
- 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 occursCopyright © 2013–2019. All rights reserved.