public class StatementProxy extends Object implements Statement
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG |
static byte |
ST_BATCH |
static byte |
ST_CLOSE |
static byte |
ST_COMMIT |
static byte |
ST_EXECUTE |
static byte |
ST_QUERY |
static byte |
ST_ROLLBACK |
static byte |
ST_UPDATE |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Modifier and Type | Method and Description |
|---|---|
protected ConnectionProxy |
_conn() |
void |
addBatch(String sql) |
protected void |
appendQuery(StringBuilder sb) |
void |
cancel() |
void |
clearBatch() |
void |
clearWarnings() |
void |
close()
The original close is augmented with a call to remove this from the
list of traced connection resources.
|
void |
closedByConnection()
This gets called when the Connection was closed, and it closes the
resources.
|
void |
closeOnCompletion() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int p2) |
boolean |
execute(String sql,
int[] p2) |
boolean |
execute(String sql,
String[] ar) |
int[] |
executeBatch() |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int p2) |
int |
executeUpdate(String sql,
int[] ar) |
int |
executeUpdate(String sql,
String[] ar) |
Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys() |
int |
getMaxFieldSize() |
int |
getMaxRows() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int m) |
int |
getQueryTimeout() |
Connection |
getRealConnection() |
Statement |
getRealStatement()
Returns the real statement, or throws an error when the statement has
been closed.
|
ResultSet |
getResultSet()
FIXME Needs wrapping.
|
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
String |
getSQL()
Return the SQL string for this statement.
|
int |
getUpdateCount() |
SQLWarning |
getWarnings() |
protected void |
internalDumpInfo() |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(Class<?> iface) |
protected ConnectionPool |
pool() |
void |
setCursorName(String name) |
void |
setEscapeProcessing(boolean enable) |
void |
setFetchDirection(int direction) |
void |
setFetchSize(int rows) |
void |
setMaxFieldSize(int max) |
void |
setMaxRows(int max) |
void |
setPoolable(boolean arg0) |
void |
setQueryTimeout(int seconds) |
<T> T |
unwrap(Class<T> iface) |
protected SQLException |
wrap(SQLException x)
Base code to wrap exceptions if needed to provide a better message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowsprotected static Logger LOG
public static final byte ST_QUERY
public static final byte ST_UPDATE
public static final byte ST_EXECUTE
public static final byte ST_COMMIT
public static final byte ST_ROLLBACK
public static final byte ST_CLOSE
public static final byte ST_BATCH
public void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptionpublic Connection getRealConnection()
protected ConnectionProxy _conn()
protected ConnectionPool pool()
public void closedByConnection()
throws SQLException
SQLExceptionprotected void appendQuery(StringBuilder sb)
protected void internalDumpInfo()
public String getSQL()
protected SQLException wrap(SQLException x)
x - public Statement getRealStatement()
public ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface StatementSQLExceptionpublic int executeUpdate(String sql) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String sql) throws SQLException
execute in interface StatementSQLExceptionpublic void addBatch(String sql) throws SQLException
addBatch in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic boolean execute(String sql, String[] ar) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, int[] p2) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, int p2) throws SQLException
execute in interface StatementSQLExceptionpublic int executeUpdate(String sql, String[] ar) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, int[] ar) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, int p2) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionpublic void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionpublic void setMaxRows(int max)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionpublic void setQueryTimeout(int seconds)
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 name) throws SQLException
setCursorName in interface StatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionStatement.getResultSet()public int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionpublic void setFetchSize(int rows)
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 clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptionpublic int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptionpublic boolean getMoreResults(int m)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic void setPoolable(boolean arg0)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic void closeOnCompletion()
throws SQLException
closeOnCompletion in interface StatementSQLExceptionpublic boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion in interface StatementSQLExceptionCopyright © 2017 etc.to. All rights reserved.