|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StatementTag
Interface for StatementImplTag and PreparedStatementImplTag. Used to mask the differences between statements and preparedstatements in this taglib.
StatementImplTag,
PreparedStatementImplTag,
QueryTag,
ExecuteTag,
ResultSetTag| Method Summary | |
|---|---|
java.sql.ResultSet |
executeQuery()
Execute a SQL select |
void |
executeUpdate()
Execute a SQL insert, update or delete. |
void |
setConn(java.lang.String connId)
The id of a page context attribute containing a java.sql.Connection |
void |
setQuery(java.lang.String query)
SQL query to be executed in the statement |
| Method Detail |
|---|
void setQuery(java.lang.String query)
throws java.sql.SQLException,
javax.servlet.jsp.JspTagException
query - SQL query
java.sql.SQLException - throws an exception when a PreparedStatement cannot be created
javax.servlet.jsp.JspTagExceptionvoid setConn(java.lang.String connId)
connId - id of the Connection attributeConnectionTag
void executeUpdate()
throws java.sql.SQLException
java.sql.SQLException
java.sql.ResultSet executeQuery()
throws java.sql.SQLException
query
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||