Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.lib » jdbc » [javadoc | source]
org.apache.openjpa.lib.jdbc
public class: DelegatingPreparedStatement [javadoc | source]
java.lang.Object
   org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement

All Implemented Interfaces:
    PreparedStatement, Closeable

Direct Known Subclasses:
    EventPreparedStatement, LoggingPreparedStatement, PostgresPreparedStatement, CancelPreparedStatement

Wrapper around an existing statement. Subclasses can override the methods whose behavior they mean to change. The equals and hashCode methods pass through to the base underlying data store statement.
Constructor:
 public DelegatingPreparedStatement(PreparedStatement stmnt,
    Connection conn) 
Method from org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement Summary:
addBatch,   addBatch,   appendInfo,   cancel,   clearBatch,   clearParameters,   clearWarnings,   close,   equals,   execute,   execute,   execute,   execute,   execute,   executeBatch,   executeQuery,   executeQuery,   executeQuery,   executeQuery,   executeUpdate,   executeUpdate,   executeUpdate,   executeUpdate,   executeUpdate,   getConnection,   getDelegate,   getFetchDirection,   getFetchSize,   getGeneratedKeys,   getInnermostDelegate,   getMaxFieldSize,   getMaxRows,   getMetaData,   getMoreResults,   getMoreResults,   getParameterMetaData,   getQueryTimeout,   getResultSet,   getResultSet,   getResultSetConcurrency,   getResultSetHoldability,   getResultSetType,   getUpdateCount,   getWarnings,   hashCode,   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,   setURL,   setUnicodeStream,   toString,   wrapResult
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement Detail:
 public  void addBatch() throws SQLException 
 public  void addBatch(String str) throws SQLException 
 protected  void appendInfo(StringBuffer buf) 
 public  void cancel() throws SQLException 
 public  void clearBatch() throws SQLException 
 public  void clearParameters() throws SQLException 
 public  void clearWarnings() throws SQLException 
 public  void close() throws SQLException 
 public boolean equals(Object other) 
 public boolean execute() throws SQLException 
 public boolean execute(String str) throws SQLException 
 public boolean execute(String s,
    int i) throws SQLException 
 public boolean execute(String s,
    int[] ia) throws SQLException 
 public boolean execute(String s,
    String[] sa) throws SQLException 
 public int[] executeBatch() throws SQLException 
 public ResultSet executeQuery() throws SQLException 
 public ResultSet executeQuery(String str) throws SQLException 
 protected ResultSet executeQuery(boolean wrap) throws SQLException 
    Execute the query, with the option of not wrapping it in a DelegatingResultSet , which is the default.
 protected ResultSet executeQuery(String sql,
    boolean wrap) throws SQLException 
    Execute the query, with the option of not wrapping it in a DelegatingResultSet , which is the default.
 public int executeUpdate() throws SQLException 
 public int executeUpdate(String str) throws SQLException 
 public int executeUpdate(String s,
    int i) throws SQLException 
 public int executeUpdate(String s,
    int[] ia) throws SQLException 
 public int executeUpdate(String s,
    String[] sa) throws SQLException 
 public Connection getConnection() throws SQLException 
 public PreparedStatement getDelegate() 
    Return the wrapped statement.
 public int getFetchDirection() throws SQLException 
 public int getFetchSize() throws SQLException 
 public ResultSet getGeneratedKeys() throws SQLException 
 public PreparedStatement getInnermostDelegate() 
    Return the base underlying data store statement.
 public int getMaxFieldSize() throws SQLException 
 public int getMaxRows() throws SQLException 
 public ResultSetMetaData getMetaData() throws SQLException 
 public boolean getMoreResults() throws SQLException 
 public boolean getMoreResults(int i) throws SQLException 
 public ParameterMetaData getParameterMetaData() throws SQLException 
 public int getQueryTimeout() throws SQLException 
 public ResultSet getResultSet() throws SQLException 
 protected ResultSet getResultSet(boolean wrap) throws SQLException 
    Get the last result set, with the option of not wrapping it in a DelegatingResultSet , which is the default.
 public int getResultSetConcurrency() throws SQLException 
 public int getResultSetHoldability() throws SQLException 
 public int getResultSetType() throws SQLException 
 public int getUpdateCount() throws SQLException 
 public SQLWarning getWarnings() throws SQLException 
 public int hashCode() 
 public  void setArray(int i,
    Array a) throws SQLException 
 public  void setAsciiStream(int i1,
    InputStream is,
    int i2) throws SQLException 
 public  void setBigDecimal(int i,
    BigDecimal bd) throws SQLException 
 public  void setBinaryStream(int i1,
    InputStream is,
    int i2) throws SQLException 
 public  void setBlob(int i,
    Blob b) throws SQLException 
 public  void setBoolean(int i,
    boolean b) throws SQLException 
 public  void setByte(int i,
    byte b) throws SQLException 
 public  void setBytes(int i,
    byte[] b) throws SQLException 
 public  void setCharacterStream(int i1,
    Reader r,
    int i2) throws SQLException 
 public  void setClob(int i,
    Clob c) throws SQLException 
 public  void setCursorName(String str) throws SQLException 
 public  void setDate(int i,
    Date d) throws SQLException 
 public  void setDate(int i,
    Date d,
    Calendar c) throws SQLException 
 public  void setDouble(int i,
    double d) throws SQLException 
 public  void setEscapeProcessing(boolean bool) throws SQLException 
 public  void setFetchDirection(int i) throws SQLException 
 public  void setFetchSize(int i) throws SQLException 
 public  void setFloat(int i,
    float f) throws SQLException 
 public  void setInt(int i1,
    int i2) throws SQLException 
 public  void setLong(int i,
    long l) throws SQLException 
 public  void setMaxFieldSize(int i) throws SQLException 
 public  void setMaxRows(int i) throws SQLException 
 public  void setNull(int i1,
    int i2) throws SQLException 
 public  void setNull(int i1,
    int i2,
    String s) throws SQLException 
 public  void setObject(int i,
    Object o) throws SQLException 
 public  void setObject(int i1,
    Object o,
    int i2) throws SQLException 
 public  void setObject(int i1,
    Object o,
    int i2,
    int i3) throws SQLException 
 public  void setQueryTimeout(int i) throws SQLException 
 public  void setRef(int i,
    Ref r) throws SQLException 
 public  void setShort(int i,
    short s) throws SQLException 
 public  void setString(int i,
    String s) throws SQLException 
 public  void setTime(int i,
    Time t) throws SQLException 
 public  void setTime(int i,
    Time t,
    Calendar c) throws SQLException 
 public  void setTimestamp(int i,
    Timestamp t) throws SQLException 
 public  void setTimestamp(int i,
    Timestamp t,
    Calendar c) throws SQLException 
 public  void setURL(int i,
    URL url) throws SQLException 
 public  void setUnicodeStream(int i1,
    InputStream is,
    int i2) throws SQLException 
 public String toString() 
 protected ResultSet wrapResult(ResultSet rs,
    boolean wrap)