|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A wrapper around Statement
or
PreparedStatement
which hides the differences
between the two.
StatementAssembly.createStatement(Connection)
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
(or PreparedStatement ). |
Method Detail |
public String getSQL()
public Statement getStatement()
Statement
(or PreparedStatement
).public void close() throws SQLException
public ResultSet executeQuery() throws SQLException
ResultSet
.public int executeUpdate() throws SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |