public interface StoredProcedure extends Procedure
AbstractProcedure.Utils
RelationalObject.Filter
SchemaElement.SchemaElementType
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_NON_PREPARED
The default value for the
non-prepared property. |
static KomodoType |
IDENTIFIER
Identifier of this object.
|
static StoredProcedure[] |
NO_PROCEDURES
An empty array of stored procedures.
|
static TypeResolver<StoredProcedure> |
RESOLVER
The resolver of a
StoredProcedure . |
static int |
TYPE_ID
The type identifier.
|
DEFAULT_UPDATE_COUNT
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
String |
getNativeQuery(Repository.UnitOfWork transaction) |
Model |
getParent(Repository.UnitOfWork transaction) |
ProcedureResultSet |
getResultSet(Repository.UnitOfWork transaction) |
boolean |
isNonPrepared(Repository.UnitOfWork transaction) |
void |
removeResultSet(Repository.UnitOfWork transaction) |
void |
setNativeQuery(Repository.UnitOfWork transaction,
String newNativeQuery) |
void |
setNonPrepared(Repository.UnitOfWork transaction,
boolean newNonPrepared) |
<T extends ProcedureResultSet> |
setResultSet(Repository.UnitOfWork transaction,
Class<T> resultSetType)
Deletes the current result set and returns a new one of the requested type.
|
addParameter, getDescription, getNameInSource, getParameters, getUpdateCount, getUuid, removeParameter, setDescription, setNameInSource, setUpdateCount, setUuid
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
getSchemaElementType, setSchemaElementType
static final boolean DEFAULT_NON_PREPARED
non-prepared
property. Value is false .static final KomodoType IDENTIFIER
static final StoredProcedure[] NO_PROCEDURES
static final int TYPE_ID
static final TypeResolver<StoredProcedure> RESOLVER
StoredProcedure
.Model getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface AbstractProcedure
getParent
in interface KNode
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
String getNativeQuery(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)native query
property (can be empty)KException
- if an error occursProcedureResultSet getResultSet(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursboolean isNonPrepared(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 non-preparedKException
- if an error occursDEFAULT_NON_PREPARED
void removeResultSet(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if a result set does not exist or an error occursvoid setNativeQuery(Repository.UnitOfWork transaction, String newNativeQuery) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNativeQuery
- the new value of the native query
property (can only be empty when removing)KException
- if an error occursvoid setNonPrepared(Repository.UnitOfWork transaction, boolean newNonPrepared) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNonPrepared
- the new value for the non-prepared
propertyKException
- if an error occursDEFAULT_NON_PREPARED
<T extends ProcedureResultSet> T setResultSet(Repository.UnitOfWork transaction, Class<T> resultSetType) throws KException
T
- the type of result settransaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)resultSetType
- the type of result set being requested (cannot be null
)null
)KException
- if an error occursTabularResultSet
,
DataTypeResultSet
Copyright © 2013–2019. All rights reserved.