Class ProcedureTag
- java.lang.Object
-
- net.sf.jkniv.sqlegance.builder.xml.AbstractSqlTag
-
- net.sf.jkniv.sqlegance.builder.xml.ProcedureTag
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_SPNAMEstatic StringTAG_NAME-
Fields inherited from class net.sf.jkniv.sqlegance.builder.xml.AbstractSqlTag
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 Summary
Constructors Constructor Description ProcedureTag(String id, LanguageType languageType, Statistical stats)Build a newproceduretag from XML file.ProcedureTag(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)Build a newproceduretag from XML file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorableasStorable()StorableinstanceProcedureParameterTag[]getParams()Retrieve parameter from stored procedureStringgetSpName()Retrieve the name from stored procedure.SqlTypegetSqlType()Command type to execute.StringgetTagName()Retrieve the tag name.booleanisDeletable()Verify if command is a DELETEbooleanisInsertable()Verify if command is a INSERTbooleanisSelectable()Verify if command is a SELECTbooleanisUpdateable()Verify if command is a UPDATEvoidsetParams(ProcedureParameterTag[] params)Define parameters from stored procedurevoidsetSpName(String spName)Define the name of stored procedure.-
Methods inherited from class net.sf.jkniv.sqlegance.builder.xml.AbstractSqlTag
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jkniv.sqlegance.Sql
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
-
Methods inherited from interface net.sf.jkniv.sqlegance.builder.xml.SqlTag
addTag, addTag, addTag, getName, setPackage, setResourceName, setXpath
-
-
-
-
Field Detail
-
TAG_NAME
public static final String TAG_NAME
- See Also:
- Constant Field Values
-
ATTRIBUTE_SPNAME
public static final String ATTRIBUTE_SPNAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProcedureTag
public ProcedureTag(String id, LanguageType languageType, Statistical stats)
Build a newproceduretag from XML file.- Parameters:
id- Name/Identify from tag.languageType- type of language from tag.stats- statistical for procedures
-
ProcedureTag
public ProcedureTag(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)
Build a newproceduretag from XML file.- Parameters:
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 statistical
-
-
Method Detail
-
getTagName
public String getTagName()
Retrieve the tag name.- Specified by:
getTagNamein interfaceSqlTag- Returns:
- name from tag
procedure.
-
getSqlType
public SqlType getSqlType()
Command type to execute.- Specified by:
getSqlTypein interfaceSql- Returns:
- the type of command used,
DELETE.
-
isSelectable
public boolean isSelectable()
Description copied from interface:SqlVerify if command is a SELECT- Specified by:
isSelectablein interfaceSql- Overrides:
isSelectablein classAbstractSqlTag- Returns:
truewhen is SELECT,falseotherwise
-
isInsertable
public boolean isInsertable()
Description copied from interface:SqlVerify if command is a INSERT- Specified by:
isInsertablein interfaceSql- Overrides:
isInsertablein classAbstractSqlTag- Returns:
truewhen is INSERT,falseotherwise
-
isUpdateable
public boolean isUpdateable()
Description copied from interface:SqlVerify if command is a UPDATE- Specified by:
isUpdateablein interfaceSql- Overrides:
isUpdateablein classAbstractSqlTag- Returns:
truewhen is UPDATE,falseotherwise
-
isDeletable
public boolean isDeletable()
Description copied from interface:SqlVerify if command is a DELETE- Specified by:
isDeletablein interfaceSql- Overrides:
isDeletablein classAbstractSqlTag- Returns:
truewhen is DELETE,falseotherwise
-
setParams
public void setParams(ProcedureParameterTag[] params)
Define parameters from stored procedure- Parameters:
params- the parameters
-
getParams
public ProcedureParameterTag[] getParams()
Description copied from interface:StorableRetrieve parameter from stored procedure
-
setSpName
public void setSpName(String spName)
Define the name of stored procedure.- Parameters:
spName- name of stored procedure.
-
getSpName
public String getSpName()
Description copied from interface:StorableRetrieve the name from stored procedure.
-
asStorable
public Storable asStorable()
Description copied from interface:SqlStorableinstance- Specified by:
asStorablein interfaceSql- Overrides:
asStorablein classAbstractSqlTag- Returns:
- this instance
-
-