protected class LoggingConnectionDecorator.LoggingConnection.LoggingStatement extends DelegatingStatement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
LoggingStatement(Statement stmnt) |
Modifier and Type | Method and Description |
---|---|
void |
appendInfo(StringBuffer buf) |
void |
cancel() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int i) |
boolean |
execute(String sql,
int[] ia) |
boolean |
execute(String sql,
String[] sa) |
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 sql) |
int |
executeUpdate(String sql,
int i) |
int |
executeUpdate(String sql,
int[] ia) |
int |
executeUpdate(String sql,
String[] sa) |
protected ResultSet |
wrapResult(ResultSet rs,
boolean wrap) |
addBatch, clearBatch, clearWarnings, close, closeOnCompletion, equals, executeBatch, executeQuery, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, hashCode, initialize, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, toString, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRows
public LoggingStatement(Statement stmnt) throws SQLException
SQLException
public void appendInfo(StringBuffer buf)
appendInfo
in class DelegatingStatement
protected ResultSet wrapResult(ResultSet rs, boolean wrap)
wrapResult
in class DelegatingStatement
public void cancel() throws SQLException
cancel
in interface Statement
cancel
in class DelegatingStatement
SQLException
protected ResultSet executeQuery(String sql, boolean wrap) throws SQLException
DelegatingStatement
DelegatingResultSet
, which is the default.executeQuery
in class DelegatingStatement
SQLException
public int executeUpdate(String sql) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class DelegatingStatement
SQLException
public boolean execute(String sql) throws SQLException
execute
in interface Statement
execute
in class DelegatingStatement
SQLException
public int executeUpdate(String sql, int i) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class DelegatingStatement
SQLException
public int executeUpdate(String sql, int[] ia) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class DelegatingStatement
SQLException
public int executeUpdate(String sql, String[] sa) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class DelegatingStatement
SQLException
public boolean execute(String sql, int i) throws SQLException
execute
in interface Statement
execute
in class DelegatingStatement
SQLException
public boolean execute(String sql, int[] ia) throws SQLException
execute
in interface Statement
execute
in class DelegatingStatement
SQLException
public boolean execute(String sql, String[] sa) throws SQLException
execute
in interface Statement
execute
in class DelegatingStatement
SQLException
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.