Package org.apache.openjpa.jdbc.sql
Class PostgresDictionary.PostgresPreparedStatement
- java.lang.Object
-
- org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
-
- org.apache.openjpa.jdbc.sql.PostgresDictionary.PostgresPreparedStatement
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.sql.PreparedStatement
,java.sql.Statement
,java.sql.Wrapper
,Closeable
- Enclosing class:
- PostgresDictionary
protected static class PostgresDictionary.PostgresPreparedStatement extends DelegatingPreparedStatement
Statement wrapper to work around the postgres empty result set bug.
-
-
Constructor Summary
Constructors Constructor Description PostgresPreparedStatement(java.sql.PreparedStatement ps, java.sql.Connection conn, PostgresDictionary dict)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.sql.ResultSet
executeQuery(boolean wrap)
Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.void
setFetchSize(int i)
-
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
addBatch, addBatch, appendInfo, cancel, clearBatch, clearParameters, clearWarnings, close, closeOnCompletion, equals, execute, execute, execute, execute, execute, executeBatch, 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, initialize, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setPoolable, setQueryTimeout, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, toString, unwrap, wrapResult
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
PostgresPreparedStatement
public PostgresPreparedStatement(java.sql.PreparedStatement ps, java.sql.Connection conn, PostgresDictionary dict)
-
-
Method Detail
-
executeQuery
protected java.sql.ResultSet executeQuery(boolean wrap) throws java.sql.SQLException
Description copied from class:DelegatingPreparedStatement
Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.- Overrides:
executeQuery
in classDelegatingPreparedStatement
- Throws:
java.sql.SQLException
-
setFetchSize
public void setFetchSize(int i) throws java.sql.SQLException
- Specified by:
setFetchSize
in interfacejava.sql.Statement
- Overrides:
setFetchSize
in classDelegatingPreparedStatement
- Throws:
java.sql.SQLException
-
-