public class DiagnosticStatement extends StatementWrapper
Statement that uses DatabaseDiagnosticsCollector to record Database calls timings
Batch queries are stored in an internal list and joined if the executeBatch() or executeLargeBatch()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 |
|---|---|
void |
addBatch(String sql) |
void |
clearBatch() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndexes) |
boolean |
execute(String sql,
String[] columnNames) |
int[] |
executeBatch() |
long[] |
executeLargeBatch() |
long |
executeLargeUpdate(String sql) |
long |
executeLargeUpdate(String sql,
int autoGeneratedKeys) |
long |
executeLargeUpdate(String sql,
int[] columnIndexes) |
long |
executeLargeUpdate(String sql,
String[] columnNames) |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndexes) |
int |
executeUpdate(String sql,
String[] columnNames) |
cancel, clearWarnings, close, closeOnCompletion, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrappublic boolean execute(String sql) throws SQLException
execute in interface Statementexecute in class StatementWrapperSQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute in interface Statementexecute in class StatementWrapperSQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
execute in interface Statementexecute in class StatementWrapperSQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
execute in interface Statementexecute in class StatementWrapperSQLExceptionpublic ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface StatementexecuteQuery in class StatementWrapperSQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class StatementWrapperSQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class StatementWrapperSQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class StatementWrapperSQLExceptionpublic int executeUpdate(String sql) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class StatementWrapperSQLExceptionpublic long executeLargeUpdate(String sql) throws SQLException
executeLargeUpdate in interface StatementexecuteLargeUpdate in class StatementWrapperSQLExceptionpublic long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeLargeUpdate in interface StatementexecuteLargeUpdate in class StatementWrapperSQLExceptionpublic long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException
executeLargeUpdate in interface StatementexecuteLargeUpdate in class StatementWrapperSQLExceptionpublic long executeLargeUpdate(String sql, String[] columnNames) throws SQLException
executeLargeUpdate in interface StatementexecuteLargeUpdate in class StatementWrapperSQLExceptionpublic void addBatch(String sql) throws SQLException
addBatch in interface StatementaddBatch in class StatementWrapperSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementclearBatch in class StatementWrapperSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementexecuteBatch in class StatementWrapperSQLExceptionpublic long[] executeLargeBatch()
throws SQLException
executeLargeBatch in interface StatementexecuteLargeBatch in class StatementWrapperSQLExceptionCopyright © 2002-2023 Atlassian. All Rights Reserved.