|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.sql.SqlTagSupport
Abstract base class for any SQL related tag in JSTL.
Field Summary | |
protected boolean |
dataSourceSpecified
|
protected boolean |
isPartOfTransaction
|
protected java.lang.Object |
rawDataSource
|
protected java.lang.String |
scope
|
protected java.lang.String |
sql
|
protected java.lang.String |
var
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
SqlTagSupport()
|
Method Summary | |
void |
addSQLParameter(java.lang.Object o)
Called by nested parameter elements to add PreparedStatement parameter values. |
protected void |
clearParameters()
|
protected java.sql.Connection |
getConnection()
|
protected boolean |
hasParameters()
|
void |
setDataSource(java.lang.Object dataSource)
Sets the SQL DataSource. |
protected void |
setParameters(java.sql.PreparedStatement ps)
|
void |
setScope(java.lang.String scopeName)
Sets the scope of the variable to hold the result. |
void |
setSql(java.lang.String sql)
Sets the SQL statement to use for the query. |
void |
setVar(java.lang.String var)
Sets the name of the variable to hold the result. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Tag |
doTag |
Field Detail |
protected java.lang.String var
protected java.lang.String scope
protected java.lang.Object rawDataSource
protected boolean dataSourceSpecified
protected java.lang.String sql
protected boolean isPartOfTransaction
Constructor Detail |
public SqlTagSupport()
Method Detail |
public void setVar(java.lang.String var)
public void setScope(java.lang.String scopeName)
public void setDataSource(java.lang.Object dataSource)
public void setSql(java.lang.String sql)
public void addSQLParameter(java.lang.Object o)
addSQLParameter
in interface javax.servlet.jsp.jstl.sql.SQLExecutionTag
protected boolean hasParameters()
protected void clearParameters()
protected java.sql.Connection getConnection() throws org.apache.commons.jelly.JellyTagException, java.sql.SQLException
org.apache.commons.jelly.JellyTagException
java.sql.SQLException
protected void setParameters(java.sql.PreparedStatement ps) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |