Package org.apache.openjpa.jdbc.sql
Class PostgresDictionary.PostgresConnection
- java.lang.Object
- 
- org.apache.openjpa.lib.jdbc.DelegatingConnection
- 
- org.apache.openjpa.jdbc.sql.PostgresDictionary.PostgresConnection
 
 
- 
- All Implemented Interfaces:
- java.lang.AutoCloseable,- java.sql.Connection,- java.sql.Wrapper,- Closeable
 - Enclosing class:
- PostgresDictionary
 
 protected static class PostgresDictionary.PostgresConnection extends DelegatingConnection Connection wrapper to work around the postgres empty result set bug.
- 
- 
Constructor SummaryConstructors Constructor Description PostgresConnection(java.sql.Connection conn, PostgresDictionary dict)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.sql.PreparedStatementprepareStatement(java.lang.String sql, boolean wrap)Prepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.protected java.sql.PreparedStatementprepareStatement(java.lang.String sql, int rsType, int rsConcur, boolean wrap)Prepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.- 
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnectionabort, appendInfo, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrap
 
- 
 
- 
- 
- 
Constructor Detail- 
PostgresConnectionpublic PostgresConnection(java.sql.Connection conn, PostgresDictionary dict)
 
- 
 - 
Method Detail- 
prepareStatementprotected java.sql.PreparedStatement prepareStatement(java.lang.String sql, boolean wrap) throws java.sql.SQLExceptionDescription copied from class:DelegatingConnectionPrepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.- Overrides:
- prepareStatementin class- DelegatingConnection
- Throws:
- java.sql.SQLException
 
 - 
prepareStatementprotected java.sql.PreparedStatement prepareStatement(java.lang.String sql, int rsType, int rsConcur, boolean wrap) throws java.sql.SQLExceptionDescription copied from class:DelegatingConnectionPrepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.- Overrides:
- prepareStatementin class- DelegatingConnection
- Throws:
- java.sql.SQLException
 
 
- 
 
-