java.lang.Object
com.aoapps.sql.wrapper.StatementWrapperImpl
- All Implemented Interfaces:
StatementWrapper,Wrapper,AutoCloseable,Statement,Wrapper
- Direct Known Subclasses:
PreparedStatementWrapperImpl
Wraps a
Statement.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO -
Constructor Summary
ConstructorsConstructorDescriptionStatementWrapperImpl(ConnectionWrapperImpl connectionWrapper, Statement wrapped) -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery(String sql) protected ConnectionWrapperImplGets the connection wrapper.Gets the statement that is wrapped.toString()protected ResultSetWrapperImplwrapResultSet(ResultSet results) Wraps aResultSet, if not already wrapped by this wrapper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.aoapps.sql.wrapper.StatementWrapper
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutMethods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
StatementWrapperImpl
-
-
Method Details
-
getConnectionWrapper
Gets the connection wrapper. -
getWrapped
Description copied from interface:StatementWrapperGets the statement that is wrapped.- Specified by:
getWrappedin interfaceStatementWrapper- Specified by:
getWrappedin interfaceWrapper
-
toString
-
wrapResultSet
Wraps aResultSet, if not already wrapped by this wrapper.- Throws:
SQLException- See Also:
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Specified by:
executeQueryin interfaceStatementWrapper- Throws:
SQLException- See Also:
-
getResultSet
- Specified by:
getResultSetin interfaceStatement- Specified by:
getResultSetin interfaceStatementWrapper- Throws:
SQLException- See Also:
-
getConnection
- Specified by:
getConnectionin interfaceStatement- Specified by:
getConnectionin interfaceStatementWrapper- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement- Specified by:
getGeneratedKeysin interfaceStatementWrapper- Throws:
SQLException- See Also:
-
