public interface IStatement
Statement or
PreparedStatement which hides the differences
between the two.StatementAssembly.createStatement(Connection)| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying statement, and nulls the reference to it.
|
java.sql.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.
|
java.lang.String |
getSQL()
Returns the SQL associated with this statement.
|
java.sql.Statement |
getStatement()
Returns the underlying
Statement
(or PreparedStatement). |
java.lang.String getSQL()
java.sql.Statement getStatement()
Statement
(or PreparedStatement).void close() throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.ResultSet executeQuery() throws java.sql.SQLException
ResultSet.java.sql.SQLExceptionint executeUpdate() throws java.sql.SQLException
java.sql.SQLException