public interface MockStatement extends Statement
| Modifier and Type | Interface and Description |
|---|---|
static class |
MockStatement.Empty |
| Modifier and Type | Field and Description |
|---|---|
static int[] |
BATCH |
static long[] |
LARGE_BATCH |
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 |
|---|---|
default void |
addBatch(String sql) |
default void |
cancel() |
default void |
clearBatch() |
default void |
clearWarnings() |
default void |
close() |
default void |
closeOnCompletion() |
default boolean |
execute(String sql) |
default boolean |
execute(String sql,
int autoGeneratedKeys) |
default boolean |
execute(String sql,
int[] columnIndexes) |
default boolean |
execute(String sql,
String[] columnNames) |
default int[] |
executeBatch() |
default long[] |
executeLargeBatch() |
default long |
executeLargeUpdate(String sql) |
default long |
executeLargeUpdate(String sql,
int autoGeneratedKeys) |
default long |
executeLargeUpdate(String sql,
int[] columnIndexes) |
default long |
executeLargeUpdate(String sql,
String[] columnNames) |
default ResultSet |
executeQuery(String sql) |
default int |
executeUpdate(String sql) |
default int |
executeUpdate(String sql,
int autoGeneratedKeys) |
default int |
executeUpdate(String sql,
int[] columnIndexes) |
default int |
executeUpdate(String sql,
String[] columnNames) |
default Connection |
getConnection() |
default int |
getFetchDirection() |
default int |
getFetchSize() |
default ResultSet |
getGeneratedKeys() |
default long |
getLargeMaxRows() |
default long |
getLargeUpdateCount() |
default int |
getMaxFieldSize() |
default int |
getMaxRows() |
default boolean |
getMoreResults() |
default boolean |
getMoreResults(int current) |
default int |
getQueryTimeout() |
default ResultSet |
getResultSet() |
default int |
getResultSetConcurrency() |
default int |
getResultSetHoldability() |
default int |
getResultSetType() |
default int |
getUpdateCount() |
default SQLWarning |
getWarnings() |
default boolean |
isClosed() |
default boolean |
isCloseOnCompletion() |
default boolean |
isPoolable() |
default boolean |
isWrapperFor(Class<?> iface) |
default void |
setCursorName(String name) |
default void |
setEscapeProcessing(boolean enable) |
default void |
setFetchDirection(int direction) |
default void |
setFetchSize(int rows) |
default void |
setLargeMaxRows(long max) |
default void |
setMaxFieldSize(int max) |
default void |
setMaxRows(int max) |
default void |
setPoolable(boolean poolable) |
default void |
setQueryTimeout(int seconds) |
default <T> T |
unwrap(Class<T> iface) |
default long getLargeUpdateCount()
throws SQLException
getLargeUpdateCount in interface StatementSQLExceptiondefault long getLargeMaxRows()
throws SQLException
getLargeMaxRows in interface StatementSQLExceptiondefault void setLargeMaxRows(long max)
throws SQLException
setLargeMaxRows in interface StatementSQLExceptiondefault long[] executeLargeBatch()
throws SQLException
executeLargeBatch in interface StatementSQLExceptiondefault long executeLargeUpdate(String sql) throws SQLException
executeLargeUpdate in interface StatementSQLExceptiondefault long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeLargeUpdate in interface StatementSQLExceptiondefault long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException
executeLargeUpdate in interface StatementSQLExceptiondefault long executeLargeUpdate(String sql, String[] columnNames) throws SQLException
executeLargeUpdate in interface StatementSQLExceptiondefault ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface StatementSQLExceptiondefault int executeUpdate(String sql) throws SQLException
executeUpdate in interface StatementSQLExceptiondefault void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptiondefault int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptiondefault void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptiondefault int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptiondefault void setMaxRows(int max)
throws SQLException
setMaxRows in interface StatementSQLExceptiondefault void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptiondefault int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptiondefault void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementSQLExceptiondefault void cancel()
throws SQLException
cancel in interface StatementSQLExceptiondefault SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptiondefault void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptiondefault void setCursorName(String name) throws SQLException
setCursorName in interface StatementSQLExceptiondefault boolean execute(String sql) throws SQLException
execute in interface StatementSQLExceptiondefault ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptiondefault int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptiondefault boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptiondefault int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptiondefault void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLExceptiondefault int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptiondefault void setFetchSize(int rows)
throws SQLException
setFetchSize in interface StatementSQLExceptiondefault int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptiondefault int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptiondefault void addBatch(String sql) throws SQLException
addBatch in interface StatementSQLExceptiondefault void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptiondefault int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptiondefault Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptiondefault boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementSQLExceptiondefault ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptiondefault int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate in interface StatementSQLExceptiondefault int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate in interface StatementSQLExceptiondefault int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate in interface StatementSQLExceptiondefault boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute in interface StatementSQLExceptiondefault boolean execute(String sql, int[] columnIndexes) throws SQLException
execute in interface StatementSQLExceptiondefault boolean execute(String sql, String[] columnNames) throws SQLException
execute in interface StatementSQLExceptiondefault int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptiondefault boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptiondefault boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptiondefault void setPoolable(boolean poolable)
throws SQLException
setPoolable in interface StatementSQLExceptiondefault void closeOnCompletion()
throws SQLException
closeOnCompletion in interface StatementSQLExceptiondefault boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion in interface StatementSQLExceptiondefault <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptiondefault boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.