public class ProcedureTag extends AbstractSqlTag implements SqlTag, Storable
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_SPNAME |
static String |
TAG_NAME |
ATTRIBUTE_BATCH, ATTRIBUTE_CACHE, ATTRIBUTE_GROUP_BY, ATTRIBUTE_HINT, ATTRIBUTE_ISOLATION, ATTRIBUTE_NAME, ATTRIBUTE_RESULTSET_CONCURRENCY, ATTRIBUTE_RESULTSET_HOLDABILITY, ATTRIBUTE_RESULTSET_TYPE, ATTRIBUTE_RETURN_TYPE, ATTRIBUTE_TIMEOUT, ATTRIBUTE_TYPE, ATTRIBUTE_VALIDATION, id, languageType, NOT_NULL| Constructor and Description |
|---|
ProcedureTag(String id,
LanguageType languageType,
Isolation isolation,
int timeout,
ValidateType validateType,
Statistical stats)
Build a new
procedure tag from XML file. |
ProcedureTag(String id,
LanguageType languageType,
Statistical stats)
Build a new
procedure tag from XML file. |
| Modifier and Type | Method and Description |
|---|---|
Storable |
asStorable()
Storable instance |
ProcedureParameterTag[] |
getParams()
Retrieve parameter from stored procedure
|
String |
getSpName()
Retrieve the name from stored procedure.
|
SqlType |
getSqlType()
Command type to execute.
|
String |
getTagName()
Retrieve the tag name.
|
boolean |
isDeletable()
Verify if command is a DELETE
|
boolean |
isInsertable()
Verify if command is a INSERT
|
boolean |
isSelectable()
Verify if command is a SELECT
|
boolean |
isUpdateable()
Verify if command is a UPDATE
|
void |
setParams(ProcedureParameterTag[] params)
Define parameters from stored procedure
|
void |
setSpName(String spName)
Define the name of stored procedure.
|
addTag, addTag, addTag, asDeletable, asInsertable, asSelectable, asUpdateable, bind, equals, extractNames, extractNames, getIsolation, getLanguageType, getName, getPackage, getParamParser, getResourceName, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getReturnType, getReturnTypeAsClass, getSql, getSql, getSqlDialect, getStats, getTimeout, getTimestamp, getValidateType, getXPath, hashCode, hasReturnType, isStorable, setIsolation, setPackage, setResourceName, setResultSetConcurrency, setResultSetHoldability, setResultSetType, setResultType, setStats, setTimeout, setValidateType, setXpathclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddTag, addTag, addTag, getName, setPackage, setResourceName, setXpathasDeletable, asInsertable, asSelectable, asUpdateable, bind, extractNames, extractNames, getIsolation, getLanguageType, getPackage, getParamParser, getResourceName, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getReturnType, getReturnTypeAsClass, getSql, getSql, getSqlDialect, getStats, getTimeout, getTimestamp, getValidateType, getXPath, hasReturnType, isStorable, setValidateTypepublic static final String TAG_NAME
public static final String ATTRIBUTE_SPNAME
public ProcedureTag(String id, LanguageType languageType, Statistical stats)
procedure tag from XML file.id - Name/Identify from tag.languageType - type of language from tag.stats - statistical for procedurespublic ProcedureTag(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)
procedure tag from XML file.id - Name/Identify from tag.languageType - type of language from tag.isolation - Retrieves the current transaction isolation level for the query.timeout - Retrieves the number of seconds the repository will wait for a Query
object to execute.validateType - validation to apply before execute SQL.stats - SQL statisticalpublic String getTagName()
getTagName in interface SqlTagprocedure.public SqlType getSqlType()
getSqlType in interface SqlDELETE.public boolean isSelectable()
SqlisSelectable in interface SqlisSelectable in class AbstractSqlTagtrue when is SELECT, false otherwisepublic boolean isInsertable()
SqlisInsertable in interface SqlisInsertable in class AbstractSqlTagtrue when is INSERT, false otherwisepublic boolean isUpdateable()
SqlisUpdateable in interface SqlisUpdateable in class AbstractSqlTagtrue when is UPDATE, false otherwisepublic boolean isDeletable()
SqlisDeletable in interface SqlisDeletable in class AbstractSqlTagtrue when is DELETE, false otherwisepublic void setParams(ProcedureParameterTag[] params)
params - the parameterspublic ProcedureParameterTag[] getParams()
Storablepublic void setSpName(String spName)
spName - name of stored procedure.public String getSpName()
Storablepublic Storable asStorable()
SqlStorable instanceasStorable in interface SqlasStorable in class AbstractSqlTagCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.