Package de.hybris.platform.jdbcwrapper
Class JUnitPreparedStatementImpl
java.lang.Object
de.hybris.platform.jdbcwrapper.WrapperRelease<ResultSet>
de.hybris.platform.jdbcwrapper.StatementImpl
de.hybris.platform.jdbcwrapper.PreparedStatementImpl
de.hybris.platform.jdbcwrapper.JUnitPreparedStatementImpl
- All Implemented Interfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
For testing sql errors while execution.
-
Field Summary
Fields inherited from class de.hybris.platform.jdbcwrapper.StatementImpl
batchStatementsToLog, connectionFields 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
ConstructorsConstructorDescriptionJUnitPreparedStatementImpl(ConnectionImpl conn, PreparedStatement statement, String query) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetError(boolean hasError) Allows to force each execution to throw a SQLException.protected ResultSetwrapResultSet(ResultSet real) returns a wrapped ResultSetMethods inherited from class de.hybris.platform.jdbcwrapper.PreparedStatementImpl
addBatch, assembleQueryFromPreparedStatement, clearParameters, execute, executeBatch, executeQuery, executeUpdate, getMetaData, getParameterMetaData, getPreparedQueryWithoutStackTrace, getPrepStmtPassthruString, getResultSet, isLoggingActivated, isPoolable, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setPoolable, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLMethods inherited from class de.hybris.platform.jdbcwrapper.StatementImpl
addBatch, addToLogBatchStatements, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isFlexibleSyntax, isWrapperFor, notifyResultSetClosed, releaseResourceImpl, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, unwrapMethods inherited from class de.hybris.platform.jdbcwrapper.WrapperRelease
addResource, releaseResources, removeResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObjectMethods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeoutMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
JUnitPreparedStatementImpl
-
-
Method Details
-
setError
public void setError(boolean hasError) Allows to force each execution to throw a SQLException.- Parameters:
hasError-
-
wrapResultSet
Description copied from class:StatementImplreturns a wrapped ResultSet- Overrides:
wrapResultSetin classStatementImpl- Throws:
SQLException
-