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

All Implemented Interfaces:
    Statement, Closeable

Direct Known Subclasses:
    LoggingStatement, CancelStatement, EventStatement

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 DelegatingStatement(Statement stmnt,
    Connection conn) 
Method from org.apache.openjpa.lib.jdbc.DelegatingStatement Summary:
addBatch,   appendInfo,   cancel,   clearBatch,   clearWarnings,   close,   equals,   execute,   execute,   execute,   execute,   executeBatch,   executeQuery,   executeQuery,   executeUpdate,   executeUpdate,   executeUpdate,   executeUpdate,   getConnection,   getDelegate,   getFetchDirection,   getFetchSize,   getGeneratedKeys,   getInnermostDelegate,   getMaxFieldSize,   getMaxRows,   getMoreResults,   getMoreResults,   getQueryTimeout,   getResultSet,   getResultSet,   getResultSetConcurrency,   getResultSetHoldability,   getResultSetType,   getUpdateCount,   getWarnings,   hashCode,   setCursorName,   setEscapeProcessing,   setFetchDirection,   setFetchSize,   setMaxFieldSize,   setMaxRows,   setQueryTimeout,   toString,   wrapResult
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.lib.jdbc.DelegatingStatement Detail:
 public  void addBatch(String str) throws SQLException 
 protected  void appendInfo(StringBuffer buf) 
 public  void cancel() throws SQLException 
 public  void clearBatch() throws SQLException 
 public  void clearWarnings() throws SQLException 
 public  void close() throws SQLException 
 public boolean equals(Object other) 
 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(String str) throws SQLException 
 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(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 Statement getDelegate() 
    Return the wrapped statement.
 public int getFetchDirection() throws SQLException 
 public int getFetchSize() throws SQLException 
 public ResultSet getGeneratedKeys() throws SQLException 
 public Statement getInnermostDelegate() 
    Return the base underlying data store statement.
 public int getMaxFieldSize() throws SQLException 
 public int getMaxRows() throws SQLException 
 public boolean getMoreResults() throws SQLException 
 public boolean getMoreResults(int i) 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 setCursorName(String str) 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 setMaxFieldSize(int i) throws SQLException 
 public  void setMaxRows(int i) throws SQLException 
 public  void setQueryTimeout(int i) throws SQLException 
 public String toString() 
 protected ResultSet wrapResult(ResultSet rs,
    boolean wrap)