public class PgPreparedStatementShim extends org.postgresql.jdbc.PgStatement implements PreparedStatement
Modifier and Type | Field and Description |
---|---|
protected org.postgresql.core.ParameterList |
preparedParameters |
protected org.postgresql.core.CachedQuery |
preparedQuery |
adaptiveFetch, batchParameters, batchStatements, concurrency, connection, fetchdirection, fetchSize, firstUnclosedResult, generatedKeys, lock, maxFieldSize, maxrows, mPrepareThreshold, replaceProcessingEnabled, result, resultsettype, timeout, wantsGeneratedKeysAlways, wantsGeneratedKeysOnce, warnings
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
PgPreparedStatementShim(org.postgresql.jdbc.PgConnection connection,
org.postgresql.core.CachedQuery query,
int rsType,
int rsConcurrency,
int rsHoldability) |
PgPreparedStatementShim(org.postgresql.jdbc.PgConnection connection,
String sql,
int rsType,
int rsConcurrency,
int rsHoldability) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
addBatch(String arg0) |
protected void |
bindBytes(int arg0,
byte[] arg1,
int arg2) |
protected void |
bindLiteral(int arg0,
String arg1,
int arg2) |
void |
clearParameters() |
void |
closeImpl() |
protected long |
createBlob(int arg0,
InputStream arg1,
long arg2) |
ParameterMetaData |
createParameterMetaData(org.postgresql.core.BaseConnection arg0,
int[] arg1) |
boolean |
execute() |
boolean |
execute(String arg0) |
int[] |
executeBatch() |
long |
executeLargeUpdate() |
ResultSet |
executeQuery() |
ResultSet |
executeQuery(String arg0) |
int |
executeUpdate() |
int |
executeUpdate(String arg0) |
boolean |
executeWithFlags(int arg0) |
ResultSetMetaData |
getMetaData() |
ParameterMetaData |
getParameterMetaData() |
org.postgresql.core.ParameterList |
getPreparedParameters()
Not a public API and can be removed in future
|
protected boolean |
isOneShotQuery(org.postgresql.core.CachedQuery arg0) |
boolean |
isUseServerPrepare() |
void |
setArray(int arg0,
Array arg1) |
void |
setAsciiStream(int arg0,
InputStream arg1) |
void |
setAsciiStream(int arg0,
InputStream arg1,
int arg2) |
void |
setAsciiStream(int arg0,
InputStream arg1,
long arg2) |
void |
setBigDecimal(int arg0,
BigDecimal arg1) |
void |
setBinaryStream(int arg0,
InputStream arg1) |
void |
setBinaryStream(int arg0,
InputStream arg1,
int arg2) |
void |
setBinaryStream(int arg0,
InputStream arg1,
long arg2) |
void |
setBlob(int arg0,
Blob arg1) |
void |
setBlob(int arg0,
InputStream arg1) |
void |
setBlob(int arg0,
InputStream arg1,
long arg2) |
void |
setBoolean(int arg0,
boolean arg1) |
void |
setByte(int arg0,
byte arg1) |
void |
setBytes(int arg0,
byte[] arg1) |
void |
setCharacterStream(int arg0,
Reader arg1) |
void |
setCharacterStream(int arg0,
Reader arg1,
int arg2) |
void |
setCharacterStream(int arg0,
Reader arg1,
long arg2) |
void |
setClob(int arg0,
Clob arg1) |
void |
setClob(int arg0,
Reader arg1) |
void |
setClob(int arg0,
Reader arg1,
long arg2) |
void |
setDate(int arg0,
Date arg1) |
void |
setDate(int arg0,
Date arg1,
Calendar arg2) |
void |
setDouble(int arg0,
double arg1) |
void |
setFloat(int arg0,
float arg1) |
void |
setInt(int arg0,
int arg1) |
void |
setLong(int arg0,
long arg1) |
void |
setNCharacterStream(int arg0,
Reader arg1) |
void |
setNCharacterStream(int arg0,
Reader arg1,
long arg2) |
void |
setNClob(int arg0,
NClob arg1) |
void |
setNClob(int arg0,
Reader arg1) |
void |
setNClob(int arg0,
Reader arg1,
long arg2) |
void |
setNString(int arg0,
String arg1) |
void |
setNull(int arg0,
int arg1) |
void |
setNull(int arg0,
int arg1,
String arg2) |
void |
setObject(int arg0,
Object arg1) |
void |
setObject(int arg0,
Object arg1,
int arg2) |
void |
setObject(int arg0,
Object arg1,
int arg2,
int arg3) |
void |
setObject(int arg0,
Object arg1,
SQLType arg2) |
void |
setObject(int arg0,
Object arg1,
SQLType arg2,
int arg3) |
void |
setRef(int arg0,
Ref arg1) |
void |
setRowId(int arg0,
RowId arg1) |
void |
setShort(int arg0,
short arg1) |
void |
setSQLXML(int arg0,
SQLXML arg1) |
void |
setString(int arg0,
String arg1) |
protected void |
setString(int arg0,
String arg1,
int arg2) |
void |
setTime(int arg0,
Time arg1) |
void |
setTime(int arg0,
Time arg1,
Calendar arg2) |
void |
setTimestamp(int arg0,
Timestamp arg1) |
void |
setTimestamp(int arg0,
Timestamp arg1,
Calendar arg2) |
void |
setUnicodeStream(int arg0,
InputStream arg1,
int arg2) |
void |
setURL(int arg0,
URL arg1) |
String |
toString() |
protected void |
transformQueriesAndParameters() |
addWarning, cancel, checkClosed, checkCompletion, checkNoResultUpdate, clearBatch, clearWarnings, close, closeForNextExecution, closeOnCompletion, createBatchHandler, createDriverResultSet, createResultSet, execute, execute, execute, execute, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, executeWithFlags, executeWithFlags, getAdaptiveFetch, getConnection, getFetchDirection, getFetchingCursorName, getFetchSize, getForceBinaryTransfer, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getLastOID, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getPGConnection, getPrepareThreshold, getQueryTimeout, getQueryTimeoutMs, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSingleResultSet, getTimestampUtils, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setAdaptiveFetch, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setPrepareThreshold, setQueryTimeout, setQueryTimeoutMs, setUseServerPrepare, unwrap, wantsHoldableResultSet, wantsScrollableResultSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addBatch, clearParameters, execute, executeLargeUpdate, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
isWrapperFor, unwrap
protected final org.postgresql.core.CachedQuery preparedQuery
protected final org.postgresql.core.ParameterList preparedParameters
public PgPreparedStatementShim(org.postgresql.jdbc.PgConnection connection, String sql, int rsType, int rsConcurrency, int rsHoldability) throws SQLException
SQLException
public PgPreparedStatementShim(org.postgresql.jdbc.PgConnection connection, org.postgresql.core.CachedQuery query, int rsType, int rsConcurrency, int rsHoldability) throws SQLException
SQLException
public org.postgresql.core.ParameterList getPreparedParameters()
public ResultSet executeQuery(String arg0) throws SQLException
executeQuery
in interface Statement
executeQuery
in class org.postgresql.jdbc.PgStatement
SQLException
public ResultSet executeQuery() throws SQLException
executeQuery
in interface PreparedStatement
SQLException
public int executeUpdate(String arg0) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class org.postgresql.jdbc.PgStatement
SQLException
public int executeUpdate() throws SQLException
executeUpdate
in interface PreparedStatement
SQLException
public long executeLargeUpdate() throws SQLException
executeLargeUpdate
in interface PreparedStatement
SQLException
public boolean execute(String arg0) throws SQLException
execute
in interface Statement
execute
in class org.postgresql.jdbc.PgStatement
SQLException
public boolean execute() throws SQLException
execute
in interface PreparedStatement
SQLException
public boolean executeWithFlags(int arg0) throws SQLException
executeWithFlags
in interface org.postgresql.core.BaseStatement
executeWithFlags
in class org.postgresql.jdbc.PgStatement
SQLException
protected boolean isOneShotQuery(org.postgresql.core.CachedQuery arg0)
isOneShotQuery
in class org.postgresql.jdbc.PgStatement
public void closeImpl() throws SQLException
closeImpl
in class org.postgresql.jdbc.PgStatement
SQLException
public void setNull(int arg0, int arg1) throws SQLException
setNull
in interface PreparedStatement
SQLException
public void setBoolean(int arg0, boolean arg1) throws SQLException
setBoolean
in interface PreparedStatement
SQLException
public void setByte(int arg0, byte arg1) throws SQLException
setByte
in interface PreparedStatement
SQLException
public void setShort(int arg0, short arg1) throws SQLException
setShort
in interface PreparedStatement
SQLException
public void setInt(int arg0, int arg1) throws SQLException
setInt
in interface PreparedStatement
SQLException
public void setLong(int arg0, long arg1) throws SQLException
setLong
in interface PreparedStatement
SQLException
public void setFloat(int arg0, float arg1) throws SQLException
setFloat
in interface PreparedStatement
SQLException
public void setDouble(int arg0, double arg1) throws SQLException
setDouble
in interface PreparedStatement
SQLException
public void setBigDecimal(int arg0, BigDecimal arg1) throws SQLException
setBigDecimal
in interface PreparedStatement
SQLException
public void setString(int arg0, String arg1) throws SQLException
setString
in interface PreparedStatement
SQLException
protected void setString(int arg0, String arg1, int arg2) throws SQLException
SQLException
public void setBytes(int arg0, byte[] arg1) throws SQLException
setBytes
in interface PreparedStatement
SQLException
public void setDate(int arg0, Date arg1) throws SQLException
setDate
in interface PreparedStatement
SQLException
public void setTime(int arg0, Time arg1) throws SQLException
setTime
in interface PreparedStatement
SQLException
public void setTimestamp(int arg0, Timestamp arg1) throws SQLException
setTimestamp
in interface PreparedStatement
SQLException
public void setAsciiStream(int arg0, InputStream arg1, int arg2) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public void setUnicodeStream(int arg0, InputStream arg1, int arg2) throws SQLException
setUnicodeStream
in interface PreparedStatement
SQLException
public void setBinaryStream(int arg0, InputStream arg1, int arg2) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public void clearParameters() throws SQLException
clearParameters
in interface PreparedStatement
SQLException
public void setObject(int arg0, Object arg1, int arg2, int arg3) throws SQLException
setObject
in interface PreparedStatement
SQLException
public void setObject(int arg0, Object arg1, int arg2) throws SQLException
setObject
in interface PreparedStatement
SQLException
public void setObject(int arg0, Object arg1) throws SQLException
setObject
in interface PreparedStatement
SQLException
protected void bindLiteral(int arg0, String arg1, int arg2) throws SQLException
SQLException
protected void bindBytes(int arg0, byte[] arg1, int arg2) throws SQLException
SQLException
public boolean isUseServerPrepare()
isUseServerPrepare
in interface org.postgresql.PGStatement
isUseServerPrepare
in class org.postgresql.jdbc.PgStatement
public void addBatch(String arg0) throws SQLException
addBatch
in interface Statement
addBatch
in class org.postgresql.jdbc.PgStatement
SQLException
public void addBatch() throws SQLException
addBatch
in interface PreparedStatement
SQLException
public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface PreparedStatement
SQLException
public void setArray(int arg0, Array arg1) throws SQLException
setArray
in interface PreparedStatement
SQLException
protected long createBlob(int arg0, InputStream arg1, long arg2) throws SQLException
SQLException
public void setBlob(int arg0, Blob arg1) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public void setCharacterStream(int arg0, Reader arg1, int arg2) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public void setClob(int arg0, Clob arg1) throws SQLException
setClob
in interface PreparedStatement
SQLException
public void setNull(int arg0, int arg1, String arg2) throws SQLException
setNull
in interface PreparedStatement
SQLException
public void setRef(int arg0, Ref arg1) throws SQLException
setRef
in interface PreparedStatement
SQLException
public void setDate(int arg0, Date arg1, Calendar arg2) throws SQLException
setDate
in interface PreparedStatement
SQLException
public void setTime(int arg0, Time arg1, Calendar arg2) throws SQLException
setTime
in interface PreparedStatement
SQLException
public void setTimestamp(int arg0, Timestamp arg1, Calendar arg2) throws SQLException
setTimestamp
in interface PreparedStatement
SQLException
public ParameterMetaData createParameterMetaData(org.postgresql.core.BaseConnection arg0, int[] arg1) throws SQLException
SQLException
public void setObject(int arg0, Object arg1, SQLType arg2, int arg3) throws SQLException
setObject
in interface PreparedStatement
SQLException
public void setObject(int arg0, Object arg1, SQLType arg2) throws SQLException
setObject
in interface PreparedStatement
SQLException
public void setRowId(int arg0, RowId arg1) throws SQLException
setRowId
in interface PreparedStatement
SQLException
public void setNString(int arg0, String arg1) throws SQLException
setNString
in interface PreparedStatement
SQLException
public void setNCharacterStream(int arg0, Reader arg1, long arg2) throws SQLException
setNCharacterStream
in interface PreparedStatement
SQLException
public void setNCharacterStream(int arg0, Reader arg1) throws SQLException
setNCharacterStream
in interface PreparedStatement
SQLException
public void setCharacterStream(int arg0, Reader arg1, long arg2) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public void setCharacterStream(int arg0, Reader arg1) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public void setBinaryStream(int arg0, InputStream arg1, long arg2) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public void setBinaryStream(int arg0, InputStream arg1) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public void setAsciiStream(int arg0, InputStream arg1, long arg2) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public void setAsciiStream(int arg0, InputStream arg1) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public void setNClob(int arg0, NClob arg1) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public void setClob(int arg0, Reader arg1, long arg2) throws SQLException
setClob
in interface PreparedStatement
SQLException
public void setClob(int arg0, Reader arg1) throws SQLException
setClob
in interface PreparedStatement
SQLException
public void setBlob(int arg0, InputStream arg1, long arg2) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public void setBlob(int arg0, InputStream arg1) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public void setNClob(int arg0, Reader arg1, long arg2) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public void setNClob(int arg0, Reader arg1) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public void setSQLXML(int arg0, SQLXML arg1) throws SQLException
setSQLXML
in interface PreparedStatement
SQLException
public void setURL(int arg0, URL arg1) throws SQLException
setURL
in interface PreparedStatement
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
executeBatch
in class org.postgresql.jdbc.PgStatement
SQLException
public ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData
in interface PreparedStatement
SQLException
protected void transformQueriesAndParameters() throws SQLException
transformQueriesAndParameters
in class org.postgresql.jdbc.PgStatement
SQLException
Copyright © 2025 Picodata. All rights reserved.