com.primix.tapestry.util.jdbc
Interface IStatement

All Known Implementing Classes:
SimpleStatement, ParameterizedStatement

public interface IStatement

A wrapper around Statement or PreparedStatement.

Version:
$Id: IStatement.java,v 1.4 2001/05/02 14:15:17 hship Exp $
Author:
Howard Ship

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 (or PreparedStatement).
 

Method Detail

getSQL

public java.lang.String getSQL()
Returns the SQL associated with this statement.

getStatement

public java.sql.Statement getStatement()
Returns the underlying Statement (or PreparedStatement).

close

public void close()
           throws java.sql.SQLException
Closes the underlying statement, and nulls the reference to it.

executeQuery

public java.sql.ResultSet executeQuery()
                                throws java.sql.SQLException
Executes the statement as a query, returning a ResultSet.

executeUpdate

public int executeUpdate()
                  throws java.sql.SQLException
Executes the statement as an update, returning the number of rows affected.