public class StatementClassReplacement extends Object implements MethodReplacementClass
| Modifier and Type | Class and Description |
|---|---|
static interface |
StatementClassReplacement.SqlExecutionSupplier<T,E extends Exception>
extend supplier for sql execution with sql exception
|
CONSUME_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
StatementClassReplacement() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
execute(Statement caller,
String sql) |
static boolean |
execute(Statement caller,
String sql,
int autoGeneratedKeys) |
static boolean |
execute(Statement caller,
String sql,
int[] columnIndexes) |
static boolean |
execute(Statement caller,
String sql,
String[] columnNames) |
static long |
executeLargeUpdate(Statement caller,
String sql) |
static long |
executeLargeUpdate(Statement caller,
String sql,
int autoGeneratedKeys) |
static long |
executeLargeUpdate(Statement caller,
String sql,
int[] columnIndexes) |
static long |
executeLargeUpdate(Statement caller,
String sql,
String[] columnNames) |
static ResultSet |
executeQuery(Statement caller,
String sql) |
static <T> T |
executeSql(StatementClassReplacement.SqlExecutionSupplier<T,SQLException> executeStatement,
String sql) |
static int |
executeUpdate(Statement caller,
String sql) |
static int |
executeUpdate(Statement caller,
String sql,
int autoGeneratedKeys) |
static int |
executeUpdate(Statement caller,
String sql,
int[] columnIndexes) |
static int |
executeUpdate(Statement caller,
String sql,
String[] columnNames) |
Class<?> |
getTargetClass() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTargetClass, getTargetClassName, isAvailablepublic Class<?> getTargetClass()
getTargetClass in interface MethodReplacementClasspublic static ResultSet executeQuery(Statement caller, String sql) throws SQLException
SQLExceptionpublic static int executeUpdate(Statement caller, String sql) throws SQLException
SQLExceptionpublic static boolean execute(Statement caller, String sql) throws SQLException
SQLExceptionpublic static int executeUpdate(Statement caller, String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic static int executeUpdate(Statement caller, String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic static int executeUpdate(Statement caller, String sql, String[] columnNames) throws SQLException
SQLExceptionpublic static boolean execute(Statement caller, String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic static boolean execute(Statement caller, String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic static boolean execute(Statement caller, String sql, String[] columnNames) throws SQLException
SQLExceptionpublic static long executeLargeUpdate(Statement caller, String sql) throws SQLException
SQLExceptionpublic static long executeLargeUpdate(Statement caller, String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic static long executeLargeUpdate(Statement caller, String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic static long executeLargeUpdate(Statement caller, String sql, String[] columnNames) throws SQLException
SQLExceptionpublic static <T> T executeSql(StatementClassReplacement.SqlExecutionSupplier<T,SQLException> executeStatement, String sql) throws SQLException
T - is a type of returned value by [executeStatement]executeStatement - supplier that executes sql statementssql - is string value of sql to be executedSQLExceptionCopyright © 2016–2024. All rights reserved.