public class SimpleStatement extends java.lang.Object implements IStatement
Statement.| Constructor and Description |
|---|
SimpleStatement(java.lang.String SQL,
java.sql.Connection connection) |
SimpleStatement(java.lang.String SQL,
java.sql.Connection connection,
int resultSetType,
int resultSetConcurrency) |
| 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. |
java.lang.String |
toString() |
public SimpleStatement(java.lang.String SQL, java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLExceptionpublic SimpleStatement(java.lang.String SQL, java.sql.Connection connection, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getSQL()
getSQL in interface IStatementpublic java.sql.Statement getStatement()
Statement.getStatement in interface IStatementpublic void close() throws java.sql.SQLException
close in interface IStatementjava.sql.SQLExceptionpublic java.sql.ResultSet executeQuery() throws java.sql.SQLException
ResultSet.executeQuery in interface IStatementjava.sql.SQLExceptionpublic int executeUpdate() throws java.sql.SQLException
executeUpdate in interface IStatementjava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object