org.apache.openjpa.jdbc.sql
Class PostgresDictionary.PostgresConnection

java.lang.Object
  extended by org.apache.openjpa.lib.jdbc.DelegatingConnection
      extended by org.apache.openjpa.jdbc.sql.PostgresDictionary.PostgresConnection
All Implemented Interfaces:
Connection, Wrapper, Closeable
Enclosing class:
PostgresDictionary

protected abstract static class PostgresDictionary.PostgresConnection
extends DelegatingConnection

Connection wrapper to work around the postgres empty result set bug.


Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
PostgresDictionary.PostgresConnection(Connection conn, PostgresDictionary dict)
           
 
Method Summary
protected  PreparedStatement prepareStatement(String sql, boolean wrap)
          Prepare a statement, with the option of not wrapping it in a DelegatingPreparedStatement, which is the default.
protected  PreparedStatement prepareStatement(String sql, int rsType, int rsConcur, boolean wrap)
          Prepare a statement, with the option of not wrapping it in a DelegatingPreparedStatement, which is the default.
 
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection
appendInfo, clearWarnings, close, commit, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, enforceAbstract, equals, getAutoCommit, getCatalog, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isWrapperFor, nativeSQL, newInstance, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.Connection
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo
 

Constructor Detail

PostgresDictionary.PostgresConnection

public PostgresDictionary.PostgresConnection(Connection conn,
                                             PostgresDictionary dict)
Method Detail

prepareStatement

protected PreparedStatement prepareStatement(String sql,
                                             boolean wrap)
                                      throws SQLException
Description copied from class: DelegatingConnection
Prepare a statement, with the option of not wrapping it in a DelegatingPreparedStatement, which is the default.

Overrides:
prepareStatement in class DelegatingConnection
Throws:
SQLException

prepareStatement

protected PreparedStatement prepareStatement(String sql,
                                             int rsType,
                                             int rsConcur,
                                             boolean wrap)
                                      throws SQLException
Description copied from class: DelegatingConnection
Prepare a statement, with the option of not wrapping it in a DelegatingPreparedStatement, which is the default.

Overrides:
prepareStatement in class DelegatingConnection
Throws:
SQLException


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.