public class MockStatement extends Object implements Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
MockStatement() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowspublic ResultSet executeQuery(String sql)
executeQuery in interface Statementpublic int executeUpdate(String sql)
executeUpdate in interface Statementpublic void close()
close in interface AutoCloseableclose in interface Statementpublic int getMaxFieldSize()
getMaxFieldSize in interface Statementpublic void setMaxFieldSize(int max)
setMaxFieldSize in interface Statementpublic int getMaxRows()
getMaxRows in interface Statementpublic void setMaxRows(int max)
setMaxRows in interface Statementpublic void setEscapeProcessing(boolean enable)
setEscapeProcessing in interface Statementpublic int getQueryTimeout()
getQueryTimeout in interface Statementpublic void setQueryTimeout(int seconds)
setQueryTimeout in interface Statementpublic SQLWarning getWarnings()
getWarnings in interface Statementpublic void clearWarnings()
clearWarnings in interface Statementpublic void setCursorName(String name)
setCursorName in interface Statementpublic ResultSet getResultSet()
getResultSet in interface Statementpublic int getUpdateCount()
getUpdateCount in interface Statementpublic boolean getMoreResults()
getMoreResults in interface Statementpublic void setFetchDirection(int direction)
setFetchDirection in interface Statementpublic int getFetchDirection()
getFetchDirection in interface Statementpublic void setFetchSize(int rows)
setFetchSize in interface Statementpublic int getFetchSize()
getFetchSize in interface Statementpublic int getResultSetConcurrency()
getResultSetConcurrency in interface Statementpublic int getResultSetType()
getResultSetType in interface Statementpublic void clearBatch()
clearBatch in interface Statementpublic int[] executeBatch()
executeBatch in interface Statementpublic Connection getConnection()
getConnection in interface Statementpublic boolean getMoreResults(int current)
getMoreResults in interface Statementpublic ResultSet getGeneratedKeys()
getGeneratedKeys in interface Statementpublic int executeUpdate(String sql, int autoGeneratedKeys)
executeUpdate in interface Statementpublic int executeUpdate(String sql, int[] columnIndexes)
executeUpdate in interface Statementpublic int executeUpdate(String sql, String[] columnNames)
executeUpdate in interface Statementpublic boolean execute(String sql, int autoGeneratedKeys)
public boolean execute(String sql, int[] columnIndexes)
public int getResultSetHoldability()
getResultSetHoldability in interface Statementpublic boolean isPoolable()
isPoolable in interface Statementpublic void setPoolable(boolean arg0)
setPoolable in interface Statementpublic boolean isWrapperFor(Class<?> arg0)
isWrapperFor in interface Wrapperpublic void closeOnCompletion()
closeOnCompletion in interface Statementpublic boolean isCloseOnCompletion()
isCloseOnCompletion in interface StatementCopyright © 2022. All rights reserved.