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, warningsCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFODATE_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, wantsScrollableResultSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, 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, setQueryTimeoutprotected 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.SQLExceptionPgPreparedStatement(PgConnection connection, CachedQuery query, int rsType, int rsConcurrency, int rsHoldability) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
executeQuery in interface java.sql.StatementexecuteQuery in class PgStatementjava.sql.SQLExceptionpublic java.sql.ResultSet executeQuery()
throws java.sql.SQLException
executeQuery in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
executeUpdate in interface java.sql.StatementexecuteUpdate in class PgStatementjava.sql.SQLExceptionpublic int executeUpdate()
throws java.sql.SQLException
executeUpdate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic long executeLargeUpdate()
throws java.sql.SQLException
executeLargeUpdate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic boolean execute(java.lang.String sql)
throws java.sql.SQLException
execute in interface java.sql.Statementexecute in class PgStatementjava.sql.SQLExceptionpublic boolean execute()
throws java.sql.SQLException
execute in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic boolean executeWithFlags(int flags)
throws java.sql.SQLException
BaseStatementexecuteWithFlags in interface BaseStatementexecuteWithFlags in class PgStatementflags - 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)
PgStatementisOneShotQuery in class PgStatementcachedQuery - to check (null if current query)public void closeImpl()
throws java.sql.SQLException
PgStatementPgStatement.close() calls.closeImpl in class PgStatementjava.sql.SQLException - in case of errorpublic void setNull(int parameterIndex,
int sqlType)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBoolean(int parameterIndex,
boolean x)
throws java.sql.SQLException
setBoolean in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setByte(int parameterIndex,
byte x)
throws java.sql.SQLException
setByte in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setShort(int parameterIndex,
short x)
throws java.sql.SQLException
setShort in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setInt(int parameterIndex,
int x)
throws java.sql.SQLException
setInt in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setLong(int parameterIndex,
long x)
throws java.sql.SQLException
setLong in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setFloat(int parameterIndex,
float x)
throws java.sql.SQLException
setFloat in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setDouble(int parameterIndex,
double x)
throws java.sql.SQLException
setDouble in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
setBigDecimal in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setString(int parameterIndex,
java.lang.String x)
throws java.sql.SQLException
setString in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate int getStringType()
protected void setString(int parameterIndex,
java.lang.String x,
int oid)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBytes(int parameterIndex,
byte[] x)
throws java.sql.SQLException
setBytes in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate void setByteStreamWriter(int parameterIndex,
ByteStreamWriter x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setDate(int parameterIndex,
java.sql.Date x)
throws java.sql.SQLException
setDate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTime(int parameterIndex,
java.sql.Time x)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTimestamp(int parameterIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate void setCharacterStreamPost71(int parameterIndex,
java.io.InputStream x,
int length,
java.lang.String encoding)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
setUnicodeStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void clearParameters()
throws java.sql.SQLException
clearParameters in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate void setPGobject(int parameterIndex,
PGobject x)
throws java.sql.SQLException
java.sql.SQLExceptionprivate void setMap(int parameterIndex,
java.util.Map<?,?> x)
throws java.sql.SQLException
java.sql.SQLExceptionprivate void setNumber(int parameterIndex,
java.lang.Number x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object in,
int targetSqlType,
int scale)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate <A> void setPrimitiveArray(int parameterIndex,
A in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static java.lang.String asString(java.sql.Clob in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static int castToInt(java.lang.Object in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static short castToShort(java.lang.Object in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static long castToLong(java.lang.Object in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static float castToFloat(java.lang.Object in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static double castToDouble(java.lang.Object in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static java.math.BigDecimal castToBigDecimal(java.lang.Object in,
int scale)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static java.lang.String castToString(java.lang.Object in)
throws java.sql.SQLException
java.sql.SQLExceptionprivate 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.PreparedStatementjava.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object x)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected 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.SQLExceptionprivate 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()
PGStatementtrue 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 PGStatementisUseServerPrepare in class PgStatementpublic void addBatch(java.lang.String sql)
throws java.sql.SQLException
addBatch in interface java.sql.StatementaddBatch in class PgStatementjava.sql.SQLExceptionpublic void addBatch()
throws java.sql.SQLException
addBatch in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setArray(int i,
java.sql.Array x)
throws java.sql.SQLException
setArray in interface java.sql.PreparedStatementjava.sql.SQLExceptionprotected long createBlob(int i,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBlob(int i,
java.sql.Blob x)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate java.lang.String readerToString(java.io.Reader value,
int maxLength)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setCharacterStream(int i,
java.io.Reader x,
int length)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int i,
java.sql.Clob x)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNull(int parameterIndex,
int t,
java.lang.String typeName)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setRef(int i,
java.sql.Ref x)
throws java.sql.SQLException
setRef in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setDate(int i,
java.sql.Date d,
java.util.Calendar cal)
throws java.sql.SQLException
setDate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTime(int i,
java.sql.Time t,
java.util.Calendar cal)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTimestamp(int i,
java.sql.Timestamp t,
java.util.Calendar cal)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate void setDate(int i,
java.time.LocalDate localDate)
throws java.sql.SQLException
java.sql.SQLExceptionprivate void setTime(int i,
java.time.LocalTime localTime)
throws java.sql.SQLException
java.sql.SQLExceptionprivate void setTimestamp(int i,
java.time.LocalDateTime localDateTime)
throws java.sql.SQLException
java.sql.SQLExceptionprivate void setTimestamp(int i,
java.time.OffsetDateTime offsetDateTime)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ParameterMetaData createParameterMetaData(BaseConnection conn, int[] oids) throws java.sql.SQLException
java.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setRowId(int parameterIndex,
java.sql.RowId x)
throws java.sql.SQLException
setRowId in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNString(int parameterIndex,
java.lang.String value)
throws java.sql.SQLException
setNString in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNCharacterStream(int parameterIndex,
java.io.Reader value,
long length)
throws java.sql.SQLException
setNCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNCharacterStream(int parameterIndex,
java.io.Reader value)
throws java.sql.SQLException
setNCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int parameterIndex,
java.io.Reader value,
long length)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int parameterIndex,
java.io.Reader value)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int parameterIndex,
java.io.InputStream value,
long length)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int parameterIndex,
java.io.InputStream value)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int parameterIndex,
java.io.InputStream value,
long length)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int parameterIndex,
java.io.InputStream value)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int parameterIndex,
java.sql.NClob value)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int parameterIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int parameterIndex,
java.io.Reader reader)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBlob(int parameterIndex,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBlob(int parameterIndex,
java.io.InputStream inputStream)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int parameterIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int parameterIndex,
java.io.Reader reader)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
setSQLXML in interface java.sql.PreparedStatementjava.sql.SQLExceptionprivate void setUuid(int parameterIndex,
java.util.UUID uuid)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setURL(int parameterIndex,
java.net.URL x)
throws java.sql.SQLException
setURL in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.StatementexecuteBatch in class PgStatementjava.sql.SQLExceptionprivate java.util.Calendar getDefaultCalendar()
public java.sql.ParameterMetaData getParameterMetaData()
throws java.sql.SQLException
getParameterMetaData in interface java.sql.PreparedStatementjava.sql.SQLExceptionprotected void transformQueriesAndParameters()
throws java.sql.SQLException
transformQueriesAndParameters in class PgStatementjava.sql.SQLException