|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.contrib.jdbc.SimpleStatement
public class SimpleStatement
A wrapper around Statement
.
Constructor Summary | |
---|---|
SimpleStatement(String SQL,
Connection connection)
|
|
SimpleStatement(String SQL,
Connection connection,
int resultSetType,
int resultSetConcurrency)
|
Method Summary | |
---|---|
void |
close()
Closes the underlying statement, and nulls the reference to it. |
ResultSet |
executeQuery()
Executes the statement as a query, returning a ResultSet . |
int |
executeUpdate()
Executes the statement as an update, returning the number of rows affected. |
String |
getSQL()
Returns the SQL associated with this statement. |
Statement |
getStatement()
Returns the underlying Statement . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleStatement(String SQL, Connection connection) throws SQLException
SQLException
public SimpleStatement(String SQL, Connection connection, int resultSetType, int resultSetConcurrency) throws SQLException
SQLException
Method Detail |
---|
public String getSQL()
getSQL
in interface IStatement
public Statement getStatement()
Statement
.
getStatement
in interface IStatement
public void close() throws SQLException
close
in interface IStatement
SQLException
public ResultSet executeQuery() throws SQLException
ResultSet
.
executeQuery
in interface IStatement
SQLException
public int executeUpdate() throws SQLException
executeUpdate
in interface IStatement
SQLException
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |