org.enhydra.jdbc.standard
Class StandardPreparedStatement

java.lang.Object
  |
  +--org.enhydra.jdbc.core.CorePreparedStatement
        |
        +--org.enhydra.jdbc.standard.StandardPreparedStatement
All Implemented Interfaces:
java.sql.PreparedStatement, java.sql.Statement
Direct Known Subclasses:
StandardXAPreparedStatement

public class StandardPreparedStatement
extends CorePreparedStatement

A very simple implementation of PreparedStatement. When created it is supplied with another PreparedStatement to which nearly all of this class' methods delegate their work. Close() is overridden to prevent the statement from actually being closed.


Field Summary
 boolean closed
           
 java.lang.Object key
           
 
Fields inherited from class org.enhydra.jdbc.core.CorePreparedStatement
ps
 
Method Summary
 void catchInvoke(java.sql.SQLException sqlException)
          Exception management : catch or throw the exception
 void close()
          Close this statement.
 void preInvoke()
          Pre-invokation of the delegation, in case of the Statement is closed, we throw an exception
 
Methods inherited from class org.enhydra.jdbc.core.CorePreparedStatement
addBatch, addBatch, cancel, clearBatch, clearParameters, clearWarnings, execute, execute, executeBatch, executeQuery, executeQuery, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getMaxFieldSize, getMaxRows, getMetaData, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetType, getUpdateCount, getWarnings, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public java.lang.Object key

closed

public boolean closed
Method Detail

close

public void close()
           throws java.sql.SQLException
Close this statement.
Overrides:
close in class CorePreparedStatement

preInvoke

public void preInvoke()
               throws java.sql.SQLException
Pre-invokation of the delegation, in case of the Statement is closed, we throw an exception
Overrides:
preInvoke in class CorePreparedStatement

catchInvoke

public void catchInvoke(java.sql.SQLException sqlException)
                 throws java.sql.SQLException
Exception management : catch or throw the exception
Overrides:
catchInvoke in class CorePreparedStatement