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
ConstructorDescriptionStatementWrapperImpl
(ConnectionWrapperImpl connectionWrapper, Statement wrapped) -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery
(String sql) protected ConnectionWrapperImpl
Gets the connection wrapper.Gets the statement that is wrapped.toString()
protected ResultSetWrapperImpl
wrapResultSet
(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, wait
Methods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, isSimpleIdentifier
Methods inherited from interface com.aoapps.sql.wrapper.StatementWrapper
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, 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, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
Methods 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:StatementWrapper
Gets the statement that is wrapped.- Specified by:
getWrapped
in interfaceStatementWrapper
- Specified by:
getWrapped
in interfaceWrapper
-
toString
-
wrapResultSet
Wraps aResultSet
, if not already wrapped by this wrapper.- Throws:
SQLException
- See Also:
-
executeQuery
- Specified by:
executeQuery
in interfaceStatement
- Specified by:
executeQuery
in interfaceStatementWrapper
- Throws:
SQLException
- See Also:
-
getResultSet
- Specified by:
getResultSet
in interfaceStatement
- Specified by:
getResultSet
in interfaceStatementWrapper
- Throws:
SQLException
- See Also:
-
getConnection
- Specified by:
getConnection
in interfaceStatement
- Specified by:
getConnection
in interfaceStatementWrapper
- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeys
in interfaceStatement
- Specified by:
getGeneratedKeys
in interfaceStatementWrapper
- Throws:
SQLException
- See Also:
-