|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.contrib.jdbc.SimpleStatement
public class SimpleStatement
A wrapper around Statement.
| Constructor Summary | |
|---|---|
SimpleStatement(java.lang.String SQL,
java.sql.Connection connection)
|
|
SimpleStatement(java.lang.String SQL,
java.sql.Connection connection,
int resultSetType,
int resultSetConcurrency)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleStatement(java.lang.String SQL,
java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLException
public SimpleStatement(java.lang.String SQL,
java.sql.Connection connection,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public java.lang.String getSQL()
getSQL in interface IStatementpublic java.sql.Statement getStatement()
Statement.
getStatement in interface IStatement
public void close()
throws java.sql.SQLException
close in interface IStatementjava.sql.SQLException
public java.sql.ResultSet executeQuery()
throws java.sql.SQLException
ResultSet.
executeQuery in interface IStatementjava.sql.SQLException
public int executeUpdate()
throws java.sql.SQLException
executeUpdate in interface IStatementjava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||