org.enhydra.jdbc.standard
Class StandardPreparedStatement

java.lang.Object
  extended by org.enhydra.jdbc.util.JdbcUtil
      extended by org.enhydra.jdbc.core.CorePreparedStatement
          extended by 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
 
Fields inherited from class org.enhydra.jdbc.util.JdbcUtil
log
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
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, execute, execute, execute, executeBatch, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMetaData, getMoreResults, getMoreResults, getParameterMetaData, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLogger, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
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.

Specified by:
close in interface java.sql.Statement
Overrides:
close in class CorePreparedStatement
Throws:
java.sql.SQLException

preInvoke

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

Specified by:
preInvoke in class CorePreparedStatement
Throws:
java.sql.SQLException

catchInvoke

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

Specified by:
catchInvoke in class CorePreparedStatement
Throws:
java.sql.SQLException