public class DelegatingPreparedStatement extends Object implements PreparedStatement, Closeable
equals and
hashCode methods pass through to the base underlying data
store statement.CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
DelegatingPreparedStatement(PreparedStatement stmnt,
Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
addBatch(String str) |
protected void |
appendInfo(StringBuffer buf) |
void |
cancel() |
void |
clearBatch() |
void |
clearParameters() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
boolean |
equals(Object other) |
boolean |
execute() |
boolean |
execute(String str) |
boolean |
execute(String s,
int i) |
boolean |
execute(String s,
int[] ia) |
boolean |
execute(String s,
String[] sa) |
int[] |
executeBatch() |
ResultSet |
executeQuery() |
protected ResultSet |
executeQuery(boolean wrap)
Execute the query, with the option of not wrapping it in a
DelegatingResultSet, which is the default. |
ResultSet |
executeQuery(String str) |
protected ResultSet |
executeQuery(String sql,
boolean wrap)
Execute the query, with the option of not wrapping it in a
DelegatingResultSet, which is the default. |
int |
executeUpdate() |
int |
executeUpdate(String str) |
int |
executeUpdate(String s,
int i) |
int |
executeUpdate(String s,
int[] ia) |
int |
executeUpdate(String s,
String[] sa) |
Connection |
getConnection() |
PreparedStatement |
getDelegate()
Return the wrapped statement.
|
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys() |
PreparedStatement |
getInnermostDelegate()
Return the base underlying data store statement.
|
int |
getMaxFieldSize() |
int |
getMaxRows() |
ResultSetMetaData |
getMetaData() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int i) |
ParameterMetaData |
getParameterMetaData() |
int |
getQueryTimeout() |
ResultSet |
getResultSet() |
protected ResultSet |
getResultSet(boolean wrap)
Get the last result set, with the option of not wrapping it in a
DelegatingResultSet, which is the default. |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
int |
getUpdateCount() |
SQLWarning |
getWarnings() |
int |
hashCode() |
void |
initialize(PreparedStatement stmnt,
Connection conn) |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setArray(int i,
Array a) |
void |
setAsciiStream(int parameterIndex,
InputStream x) |
void |
setAsciiStream(int i1,
InputStream is,
int i2) |
void |
setAsciiStream(int parameterIndex,
InputStream x,
long length) |
void |
setBigDecimal(int i,
BigDecimal bd) |
void |
setBinaryStream(int parameterIndex,
InputStream x) |
void |
setBinaryStream(int i1,
InputStream is,
int i2) |
void |
setBinaryStream(int parameterIndex,
InputStream x,
long length) |
void |
setBlob(int i,
Blob b) |
void |
setBlob(int parameterIndex,
InputStream inputStream) |
void |
setBlob(int parameterIndex,
InputStream inputStream,
long length) |
void |
setBoolean(int i,
boolean b) |
void |
setByte(int i,
byte b) |
void |
setBytes(int i,
byte[] b) |
void |
setCharacterStream(int parameterIndex,
Reader reader) |
void |
setCharacterStream(int i1,
Reader r,
int i2) |
void |
setCharacterStream(int parameterIndex,
Reader reader,
long length) |
void |
setClob(int i,
Clob c) |
void |
setClob(int parameterIndex,
Reader reader) |
void |
setClob(int parameterIndex,
Reader reader,
long length) |
void |
setCursorName(String str) |
void |
setDate(int i,
Date d) |
void |
setDate(int i,
Date d,
Calendar c) |
void |
setDouble(int i,
double d) |
void |
setEscapeProcessing(boolean bool) |
void |
setFetchDirection(int i) |
void |
setFetchSize(int i) |
void |
setFloat(int i,
float f) |
void |
setInt(int i1,
int i2) |
void |
setLong(int i,
long l) |
void |
setMaxFieldSize(int i) |
void |
setMaxRows(int i) |
void |
setNCharacterStream(int parameterIndex,
Reader value) |
void |
setNCharacterStream(int parameterIndex,
Reader value,
long length) |
void |
setNClob(int parameterIndex,
NClob value) |
void |
setNClob(int parameterIndex,
Reader reader) |
void |
setNClob(int parameterIndex,
Reader reader,
long length) |
void |
setNString(int parameterIndex,
String value) |
void |
setNull(int i1,
int i2) |
void |
setNull(int i1,
int i2,
String s) |
void |
setObject(int i,
Object o) |
void |
setObject(int i1,
Object o,
int i2) |
void |
setObject(int i1,
Object o,
int i2,
int i3) |
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int i) |
void |
setRef(int i,
Ref r) |
void |
setRowId(int parameterIndex,
RowId x) |
void |
setShort(int i,
short s) |
void |
setSQLXML(int parameterIndex,
SQLXML xmlObject) |
void |
setString(int i,
String s) |
void |
setTime(int i,
Time t) |
void |
setTime(int i,
Time t,
Calendar c) |
void |
setTimestamp(int i,
Timestamp t) |
void |
setTimestamp(int i,
Timestamp t,
Calendar c) |
void |
setUnicodeStream(int i1,
InputStream is,
int i2)
Deprecated.
|
void |
setURL(int i,
URL url) |
String |
toString() |
<T> T |
unwrap(Class<T> iface) |
protected ResultSet |
wrapResult(ResultSet rs,
boolean wrap) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitexecuteLargeUpdate, setObject, setObjectexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowspublic DelegatingPreparedStatement(PreparedStatement stmnt, Connection conn)
public void initialize(PreparedStatement stmnt, Connection conn)
public PreparedStatement getDelegate()
public PreparedStatement getInnermostDelegate()
protected void appendInfo(StringBuffer buf)
public ResultSet executeQuery(String str) throws SQLException
executeQuery in interface StatementSQLExceptionprotected ResultSet executeQuery(String sql, boolean wrap) throws SQLException
DelegatingResultSet, which is the default.SQLExceptionpublic int executeUpdate(String str) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String str) throws SQLException
execute in interface StatementSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface Statementclose in interface CloseableSQLExceptionpublic int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionpublic void setMaxFieldSize(int i)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionpublic void setMaxRows(int i)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic void setEscapeProcessing(boolean bool)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionpublic void setQueryTimeout(int i)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic void cancel()
throws SQLException
cancel in interface StatementSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptionpublic void setCursorName(String str) throws SQLException
setCursorName in interface StatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionprotected ResultSet getResultSet(boolean wrap) throws SQLException
DelegatingResultSet, which is the default.SQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic void setFetchDirection(int i)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionpublic void setFetchSize(int i)
throws SQLException
setFetchSize in interface StatementSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptionpublic int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptionpublic int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptionpublic void addBatch(String str) throws SQLException
addBatch in interface StatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptionpublic ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLExceptionprotected ResultSet executeQuery(boolean wrap) throws SQLException
DelegatingResultSet, which is the default.SQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLExceptionpublic void setNull(int i1,
int i2)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setBoolean(int i,
boolean b)
throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic void setByte(int i,
byte b)
throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic void setShort(int i,
short s)
throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic void setInt(int i1,
int i2)
throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic void setLong(int i,
long l)
throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic void setFloat(int i,
float f)
throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic void setDouble(int i,
double d)
throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int i,
BigDecimal bd)
throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic void setString(int i,
String s)
throws SQLException
setString in interface PreparedStatementSQLExceptionpublic void setBytes(int i,
byte[] b)
throws SQLException
setBytes in interface PreparedStatementSQLExceptionpublic void setDate(int i,
Date d)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setTime(int i,
Time t)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int i,
Timestamp t)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int i1,
InputStream is,
int i2)
throws SQLException
setAsciiStream in interface PreparedStatementSQLException@Deprecated public void setUnicodeStream(int i1, InputStream is, int i2) throws SQLException
setUnicodeStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int i1,
InputStream is,
int i2)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic void setObject(int i1,
Object o,
int i2,
int i3)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int i1,
Object o,
int i2)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int i,
Object o)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic boolean execute()
throws SQLException
execute in interface PreparedStatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int i1,
Reader r,
int i2)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setRef(int i,
Ref r)
throws SQLException
setRef in interface PreparedStatementSQLExceptionpublic void setBlob(int i,
Blob b)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setClob(int i,
Clob c)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setArray(int i,
Array a)
throws SQLException
setArray in interface PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface PreparedStatementSQLExceptionpublic void setDate(int i,
Date d,
Calendar c)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setTime(int i,
Time t,
Calendar c)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int i,
Timestamp t,
Calendar c)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setNull(int i1,
int i2,
String s)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic boolean getMoreResults(int i)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptionpublic int executeUpdate(String s, int i) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String s, int[] ia) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String s, String[] sa) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String s, int i) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String s, int[] ia) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String s, String[] sa) throws SQLException
execute in interface StatementSQLExceptionpublic int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionpublic void setURL(int i,
URL url)
throws SQLException
setURL in interface PreparedStatementSQLExceptionpublic ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData in interface PreparedStatementSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
InputStream inputStream,
long length)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
InputStream inputStream)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader,
long length)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Reader reader)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value,
long length)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
NClob value)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
Reader reader)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNString(int parameterIndex,
String value)
throws SQLException
setNString in interface PreparedStatementSQLExceptionpublic void setRowId(int parameterIndex,
RowId x)
throws SQLException
setRowId in interface PreparedStatementSQLExceptionpublic void setSQLXML(int parameterIndex,
SQLXML xmlObject)
throws SQLException
setSQLXML in interface PreparedStatementSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptionpublic void setPoolable(boolean poolable)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion in interface StatementSQLExceptionpublic void closeOnCompletion()
throws SQLException
closeOnCompletion in interface StatementSQLExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.