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:
AutoCloseable,PreparedStatement,Statement,Wrapper,Closeable
- Enclosing class:
- PostgresDictionary
protected static class PostgresDictionary.PostgresPreparedStatement
extends DelegatingPreparedStatement
Statement wrapper to work around the postgres empty result set bug.
-
Field Summary
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO -
Constructor Summary
ConstructorsConstructorDescriptionPostgresPreparedStatement(PreparedStatement ps, Connection conn, PostgresDictionary dict) -
Method Summary
Modifier and TypeMethodDescriptionprotected ResultSetexecuteQuery(boolean wrap) Execute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.voidsetFetchSize(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, wrapResultMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObjectMethods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, isSimpleIdentifier, setLargeMaxRows
-
Constructor Details
-
PostgresPreparedStatement
-
-
Method Details
-
executeQuery
Description copied from class:DelegatingPreparedStatementExecute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.- Overrides:
executeQueryin classDelegatingPreparedStatement- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceStatement- Overrides:
setFetchSizein classDelegatingPreparedStatement- Throws:
SQLException
-