public class StatementWrapper extends Object implements Statement
| Modifier and Type | Field and Description |
|---|---|
protected ConnectionWrapper |
connection |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
StatementWrapper(ConnectionWrapper connectionWrapper,
Statement statement) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowsprotected final ConnectionWrapper connection
public StatementWrapper(ConnectionWrapper connectionWrapper, Statement statement)
protected void closeTrackedResultSets()
throws SQLException
SQLExceptionpublic void releaseTrackedResultSet(ResultSet resultSet)
public void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptionpublic final void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptionpublic final ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface StatementSQLExceptionpublic final int executeUpdate(String sql) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic final int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionpublic final void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic final int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionpublic final void setMaxRows(int max)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic final void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic final int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionpublic final void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic final void cancel()
throws SQLException
cancel in interface StatementSQLExceptionpublic final void setCursorName(String name) throws SQLException
setCursorName in interface StatementSQLExceptionpublic final boolean execute(String sql) throws SQLException
execute in interface StatementSQLExceptionpublic final ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionpublic final int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic final boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic final int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionpublic final void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic final int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptionpublic final void setFetchSize(int rows)
throws SQLException
setFetchSize in interface StatementSQLExceptionpublic final int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptionpublic final int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptionpublic final void addBatch(String sql) throws SQLException
addBatch in interface StatementSQLExceptionpublic final void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic final int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic final Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptionpublic final boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic final ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptionpublic final int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic final int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic final int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic final boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute in interface StatementSQLExceptionpublic final boolean execute(String sql, int[] columnIndexes) throws SQLException
execute in interface StatementSQLExceptionpublic final boolean execute(String sql, String[] columnNames) throws SQLException
execute in interface StatementSQLExceptionpublic final int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionpublic final boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptionpublic final void setPoolable(boolean poolable)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic final void closeOnCompletion()
throws SQLException
closeOnCompletion in interface StatementSQLExceptionpublic final boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion in interface StatementSQLExceptionpublic final SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptionpublic final boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptionpublic final <T> T unwrap(Class<T> target) throws SQLException
unwrap in interface WrapperSQLExceptionpublic final boolean isWrapperFor(Class<?> target) throws SQLException
isWrapperFor in interface WrapperSQLExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.