class PgPreparedStatement extends PgStatement implements java.sql.PreparedStatement
PgStatement.StatementResultHandler
Modifier and Type | Field and Description |
---|---|
private java.util.TimeZone |
defaultTimeZone |
protected ParameterList |
preparedParameters |
protected CachedQuery |
preparedQuery |
batchParameters, batchStatements, concurrency, connection, fetchdirection, fetchSize, firstUnclosedResult, generatedKeys, 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
DATE_NEGATIVE_INFINITY, DATE_NEGATIVE_SMALLER_INFINITY, DATE_POSITIVE_INFINITY, DATE_POSITIVE_SMALLER_INFINITY
Constructor and Description |
---|
PgPreparedStatement(PgConnection connection,
CachedQuery query,
int rsType,
int rsConcurrency,
int rsHoldability) |
PgPreparedStatement(PgConnection connection,
java.lang.String sql,
int rsType,
int rsConcurrency,
int rsHoldability) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
addBatch(java.lang.String sql) |
private static java.lang.String |
asString(java.sql.Clob in) |
protected void |
bindBytes(int paramIndex,
byte[] b,
int oid) |
protected void |
bindLiteral(int paramIndex,
java.lang.String s,
int oid)
Note if s is a String it should be escaped by the caller to avoid SQL injection attacks.
|
private void |
bindString(int paramIndex,
java.lang.String s,
int oid)
This version is for values that should turn into strings e.g.
|
private static PSQLException |
cannotCastException(java.lang.String fromType,
java.lang.String toType) |
private static PSQLException |
cannotCastException(java.lang.String fromType,
java.lang.String toType,
java.lang.Exception cause) |
private static java.math.BigDecimal |
castToBigDecimal(java.lang.Object in,
int scale) |
private static double |
castToDouble(java.lang.Object in) |
private static float |
castToFloat(java.lang.Object in) |
private static int |
castToInt(java.lang.Object in) |
private static long |
castToLong(java.lang.Object in) |
private static short |
castToShort(java.lang.Object in) |
private static java.lang.String |
castToString(java.lang.Object in) |
void |
clearParameters() |
void |
closeImpl()
This is guaranteed to be called exactly once even in case of concurrent
PgStatement.close() calls. |
protected long |
createBlob(int i,
java.io.InputStream inputStream,
long length) |
java.sql.ParameterMetaData |
createParameterMetaData(BaseConnection conn,
int[] oids) |
boolean |
execute() |
boolean |
execute(java.lang.String sql) |
int[] |
executeBatch() |
long |
executeLargeUpdate() |
java.sql.ResultSet |
executeQuery() |
java.sql.ResultSet |
executeQuery(java.lang.String sql) |
int |
executeUpdate() |
int |
executeUpdate(java.lang.String sql) |
boolean |
executeWithFlags(int flags)
Execute a prepared query, passing additional query flags.
|
private java.util.Calendar |
getDefaultCalendar() |
java.sql.ResultSetMetaData |
getMetaData() |
java.sql.ParameterMetaData |
getParameterMetaData() |
private int |
getStringType() |
protected boolean |
isOneShotQuery(CachedQuery cachedQuery)
Returns true if query is unlikely to be reused.
|
boolean |
isUseServerPrepare()
Checks if this statement will be executed as a server-prepared statement.
|
private java.lang.String |
readerToString(java.io.Reader value,
int maxLength) |
void |
setArray(int i,
java.sql.Array x) |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream value) |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length) |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream value,
long length) |
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x) |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream value) |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length) |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream value,
long length) |
void |
setBlob(int i,
java.sql.Blob x) |
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream) |
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream,
long length) |
void |
setBoolean(int parameterIndex,
boolean x) |
void |
setByte(int parameterIndex,
byte x) |
void |
setBytes(int parameterIndex,
byte[] x) |
private void |
setByteStreamWriter(int parameterIndex,
ByteStreamWriter x) |
void |
setCharacterStream(int parameterIndex,
java.io.Reader value) |
void |
setCharacterStream(int i,
java.io.Reader x,
int length) |
void |
setCharacterStream(int parameterIndex,
java.io.Reader value,
long length) |
private void |
setCharacterStreamPost71(int parameterIndex,
java.io.InputStream x,
int length,
java.lang.String encoding) |
void |
setClob(int i,
java.sql.Clob x) |
void |
setClob(int parameterIndex,
java.io.Reader reader) |
void |
setClob(int parameterIndex,
java.io.Reader reader,
long length) |
void |
setDate(int parameterIndex,
java.sql.Date x) |
void |
setDate(int i,
java.sql.Date d,
java.util.Calendar cal) |
private void |
setDate(int i,
java.time.LocalDate localDate) |
void |
setDouble(int parameterIndex,
double x) |
void |
setFloat(int parameterIndex,
float x) |
void |
setInt(int parameterIndex,
int x) |
void |
setLong(int parameterIndex,
long x) |
private void |
setMap(int parameterIndex,
java.util.Map<?,?> x) |
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value) |
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value,
long length) |
void |
setNClob(int parameterIndex,
java.sql.NClob value) |
void |
setNClob(int parameterIndex,
java.io.Reader reader) |
void |
setNClob(int parameterIndex,
java.io.Reader reader,
long length) |
void |
setNString(int parameterIndex,
java.lang.String value) |
void |
setNull(int parameterIndex,
int sqlType) |
void |
setNull(int parameterIndex,
int t,
java.lang.String typeName) |
private void |
setNumber(int parameterIndex,
java.lang.Number x) |
void |
setObject(int parameterIndex,
java.lang.Object x) |
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType) |
void |
setObject(int parameterIndex,
java.lang.Object in,
int targetSqlType,
int scale) |
void |
setObject(int parameterIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType) |
void |
setObject(int parameterIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength) |
private void |
setPGobject(int parameterIndex,
PGobject x) |
private <A> void |
setPrimitiveArray(int parameterIndex,
A in) |
void |
setRef(int i,
java.sql.Ref x) |
void |
setRowId(int parameterIndex,
java.sql.RowId x) |
void |
setShort(int parameterIndex,
short x) |
void |
setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject) |
void |
setString(int parameterIndex,
java.lang.String x) |
protected void |
setString(int parameterIndex,
java.lang.String x,
int oid) |
private void |
setTime(int i,
java.time.LocalTime localTime) |
void |
setTime(int parameterIndex,
java.sql.Time x) |
void |
setTime(int i,
java.sql.Time t,
java.util.Calendar cal) |
private void |
setTimestamp(int i,
java.time.LocalDateTime localDateTime) |
private void |
setTimestamp(int i,
java.time.OffsetDateTime offsetDateTime) |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x) |
void |
setTimestamp(int i,
java.sql.Timestamp t,
java.util.Calendar cal) |
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length) |
void |
setURL(int parameterIndex,
java.net.URL x) |
private void |
setUuid(int parameterIndex,
java.util.UUID uuid) |
java.lang.String |
toString()
Returns the SQL statement with the current template values substituted.
|
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, getConnection, getFetchDirection, getFetchingCursorName, getFetchSize, getForceBinaryTransfer, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getLastOID, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getPGConnection, getPrepareThreshold, getQueryTimeout, getQueryTimeoutMs, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSingleResultSet, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, 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
cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, 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
protected final CachedQuery preparedQuery
protected final ParameterList preparedParameters
private java.util.TimeZone defaultTimeZone
PgPreparedStatement(PgConnection connection, java.lang.String sql, int rsType, int rsConcurrency, int rsHoldability) throws java.sql.SQLException
java.sql.SQLException
PgPreparedStatement(PgConnection connection, CachedQuery query, int rsType, int rsConcurrency, int rsHoldability) throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
executeQuery
in class PgStatement
java.sql.SQLException
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
java.sql.SQLException
public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
executeUpdate
in class PgStatement
java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
public long executeLargeUpdate() throws java.sql.SQLException
executeLargeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
execute
in class PgStatement
java.sql.SQLException
public boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
public boolean executeWithFlags(int flags) throws java.sql.SQLException
BaseStatement
executeWithFlags
in interface BaseStatement
executeWithFlags
in class PgStatement
flags
- additional QueryExecutor
flags for execution; these are bitwise-ORed into
the default flags.java.sql.SQLException
- if something goes wrong.protected boolean isOneShotQuery(CachedQuery cachedQuery)
PgStatement
isOneShotQuery
in class PgStatement
cachedQuery
- to check (null if current query)public void closeImpl() throws java.sql.SQLException
PgStatement
PgStatement.close()
calls.closeImpl
in class PgStatement
java.sql.SQLException
- in case of errorpublic void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setByte(int parameterIndex, byte x) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setShort(int parameterIndex, short x) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setInt(int parameterIndex, int x) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setLong(int parameterIndex, long x) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setFloat(int parameterIndex, float x) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDouble(int parameterIndex, double x) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
java.sql.SQLException
private int getStringType()
protected void setString(int parameterIndex, java.lang.String x, int oid) throws java.sql.SQLException
java.sql.SQLException
public void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
java.sql.SQLException
private void setByteStreamWriter(int parameterIndex, ByteStreamWriter x) throws java.sql.SQLException
java.sql.SQLException
public void setDate(int parameterIndex, java.sql.Date x) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int parameterIndex, java.sql.Time x) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
private void setCharacterStreamPost71(int parameterIndex, java.io.InputStream x, int length, java.lang.String encoding) throws java.sql.SQLException
java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setUnicodeStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
private void setPGobject(int parameterIndex, PGobject x) throws java.sql.SQLException
java.sql.SQLException
private void setMap(int parameterIndex, java.util.Map<?,?> x) throws java.sql.SQLException
java.sql.SQLException
private void setNumber(int parameterIndex, java.lang.Number x) throws java.sql.SQLException
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object in, int targetSqlType, int scale) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
private <A> void setPrimitiveArray(int parameterIndex, A in) throws java.sql.SQLException
java.sql.SQLException
private static java.lang.String asString(java.sql.Clob in) throws java.sql.SQLException
java.sql.SQLException
private static int castToInt(java.lang.Object in) throws java.sql.SQLException
java.sql.SQLException
private static short castToShort(java.lang.Object in) throws java.sql.SQLException
java.sql.SQLException
private static long castToLong(java.lang.Object in) throws java.sql.SQLException
java.sql.SQLException
private static float castToFloat(java.lang.Object in) throws java.sql.SQLException
java.sql.SQLException
private static double castToDouble(java.lang.Object in) throws java.sql.SQLException
java.sql.SQLException
private static java.math.BigDecimal castToBigDecimal(java.lang.Object in, int scale) throws java.sql.SQLException
java.sql.SQLException
private static java.lang.String castToString(java.lang.Object in) throws java.sql.SQLException
java.sql.SQLException
private static PSQLException cannotCastException(java.lang.String fromType, java.lang.String toType)
private static PSQLException cannotCastException(java.lang.String fromType, java.lang.String toType, java.lang.Exception cause)
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object
protected void bindLiteral(int paramIndex, java.lang.String s, int oid) throws java.sql.SQLException
Integer.toString()
)paramIndex
- parameter indexs
- value (the value should already be escaped)oid
- type oidjava.sql.SQLException
- if something goes wrongprotected void bindBytes(int paramIndex, byte[] b, int oid) throws java.sql.SQLException
java.sql.SQLException
private void bindString(int paramIndex, java.lang.String s, int oid) throws java.sql.SQLException
paramIndex
- parameter indexs
- valueoid
- type oidjava.sql.SQLException
- if something goes wrongpublic boolean isUseServerPrepare()
PGStatement
true
indicates that the next execution of the statement will be done as a
server-prepared statement, assuming the underlying protocol supports it.isUseServerPrepare
in interface PGStatement
isUseServerPrepare
in class PgStatement
public void addBatch(java.lang.String sql) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
addBatch
in class PgStatement
java.sql.SQLException
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setArray(int i, java.sql.Array x) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
java.sql.SQLException
protected long createBlob(int i, java.io.InputStream inputStream, long length) throws java.sql.SQLException
java.sql.SQLException
public void setBlob(int i, java.sql.Blob x) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
private java.lang.String readerToString(java.io.Reader value, int maxLength) throws java.sql.SQLException
java.sql.SQLException
public void setCharacterStream(int i, java.io.Reader x, int length) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int i, java.sql.Clob x) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int parameterIndex, int t, java.lang.String typeName) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRef(int i, java.sql.Ref x) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int i, java.sql.Date d, java.util.Calendar cal) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int i, java.sql.Time t, java.util.Calendar cal) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int i, java.sql.Timestamp t, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
private void setDate(int i, java.time.LocalDate localDate) throws java.sql.SQLException
java.sql.SQLException
private void setTime(int i, java.time.LocalTime localTime) throws java.sql.SQLException
java.sql.SQLException
private void setTimestamp(int i, java.time.LocalDateTime localDateTime) throws java.sql.SQLException
java.sql.SQLException
private void setTimestamp(int i, java.time.OffsetDateTime offsetDateTime) throws java.sql.SQLException
java.sql.SQLException
public java.sql.ParameterMetaData createParameterMetaData(BaseConnection conn, int[] oids) throws java.sql.SQLException
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, java.sql.SQLType targetSqlType) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRowId(int parameterIndex, java.sql.RowId x) throws java.sql.SQLException
setRowId
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNString(int parameterIndex, java.lang.String value) throws java.sql.SQLException
setNString
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNCharacterStream(int parameterIndex, java.io.Reader value, long length) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNCharacterStream(int parameterIndex, java.io.Reader value) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int parameterIndex, java.io.Reader value, long length) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int parameterIndex, java.io.Reader value) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream value, long length) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream value) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream value, long length) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream value) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int parameterIndex, java.sql.NClob value) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int parameterIndex, java.io.Reader reader) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int parameterIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int parameterIndex, java.io.InputStream inputStream) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int parameterIndex, java.io.Reader reader) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setSQLXML(int parameterIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException
setSQLXML
in interface java.sql.PreparedStatement
java.sql.SQLException
private void setUuid(int parameterIndex, java.util.UUID uuid) throws java.sql.SQLException
java.sql.SQLException
public void setURL(int parameterIndex, java.net.URL x) throws java.sql.SQLException
setURL
in interface java.sql.PreparedStatement
java.sql.SQLException
public int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
executeBatch
in class PgStatement
java.sql.SQLException
private java.util.Calendar getDefaultCalendar()
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
protected void transformQueriesAndParameters() throws java.sql.SQLException
transformQueriesAndParameters
in class PgStatement
java.sql.SQLException