public class LoggingPreparedStatementHandler extends Object implements InvocationHandler
| Constructor and Description |
|---|
LoggingPreparedStatementHandler(PreparedStatement realStatement,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
addBatch(String sql) |
static boolean |
assertAllStatementsClosed(boolean critical) |
void |
close() |
boolean |
execute() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndexes) |
boolean |
execute(String sql,
String[] columnNames) |
int[] |
executeBatch() |
ResultSet |
executeQuery() |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate() |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndexes) |
int |
executeUpdate(String sql,
String[] columnNames) |
static int |
getOpenStatementCount() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static void |
resetMonitors() |
String |
toString() |
public LoggingPreparedStatementHandler(PreparedStatement realStatement, String sql)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic void addBatch()
throws SQLException
SQLExceptionpublic void addBatch(String sql) throws SQLException
SQLExceptionpublic boolean execute()
throws SQLException
SQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic boolean execute(String sql) throws SQLException
SQLExceptionpublic int[] executeBatch()
throws SQLException
SQLExceptionpublic ResultSet executeQuery() throws SQLException
SQLExceptionpublic ResultSet executeQuery(String sql) throws SQLException
SQLExceptionpublic int executeUpdate()
throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic int executeUpdate(String sql) throws SQLException
SQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic static int getOpenStatementCount()
public static void resetMonitors()
public static boolean assertAllStatementsClosed(boolean critical)
Copyright © 2006–2014 Volker Bergmann. All rights reserved.