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, setXpath
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addTag, addTag, addTag, getName, setPackage, setResourceName, setXpath
asDeletable, 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, setValidateType
public 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 SqlTag
procedure
.public SqlType getSqlType()
getSqlType
in interface Sql
DELETE
.public boolean isSelectable()
Sql
isSelectable
in interface Sql
isSelectable
in class AbstractSqlTag
true
when is SELECT, false
otherwisepublic boolean isInsertable()
Sql
isInsertable
in interface Sql
isInsertable
in class AbstractSqlTag
true
when is INSERT, false
otherwisepublic boolean isUpdateable()
Sql
isUpdateable
in interface Sql
isUpdateable
in class AbstractSqlTag
true
when is UPDATE, false
otherwisepublic boolean isDeletable()
Sql
isDeletable
in interface Sql
isDeletable
in class AbstractSqlTag
true
when is DELETE, false
otherwisepublic void setParams(ProcedureParameterTag[] params)
params
- the parameterspublic ProcedureParameterTag[] getParams()
Storable
public void setSpName(String spName)
spName
- name of stored procedure.public String getSpName()
Storable
public Storable asStorable()
Sql
Storable
instanceasStorable
in interface Sql
asStorable
in class AbstractSqlTag
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.