public class DelegatingStatement extends Object implements Statement, 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 |
|---|
DelegatingStatement(Statement stmnt,
Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String str) |
protected void |
appendInfo(StringBuffer buf) |
void |
cancel() |
void |
clearBatch() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
boolean |
equals(Object other) |
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(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(String str) |
int |
executeUpdate(String s,
int i) |
int |
executeUpdate(String s,
int[] ia) |
int |
executeUpdate(String s,
String[] sa) |
Connection |
getConnection() |
Statement |
getDelegate()
Return the wrapped statement.
|
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys() |
Statement |
getInnermostDelegate()
Return the base underlying data store statement.
|
int |
getMaxFieldSize() |
int |
getMaxRows() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int i) |
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(Statement stmnt,
Connection conn) |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setCursorName(String str) |
void |
setEscapeProcessing(boolean bool) |
void |
setFetchDirection(int i) |
void |
setFetchSize(int i) |
void |
setMaxFieldSize(int i) |
void |
setMaxRows(int i) |
void |
setPoolable(boolean b) |
void |
setQueryTimeout(int i) |
String |
toString() |
<T> T |
unwrap(Class<T> iface) |
protected ResultSet |
wrapResult(ResultSet rs,
boolean wrap) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowspublic DelegatingStatement(Statement stmnt, Connection conn)
public void initialize(Statement stmnt, Connection conn)
public Statement getDelegate()
public Statement 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 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 boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptionpublic void setPoolable(boolean b)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable 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.