Package de.hybris.platform.jdbcwrapper
Class JUnitConnectionImpl
java.lang.Object
de.hybris.platform.jdbcwrapper.WrapperRelease<Statement>
de.hybris.platform.jdbcwrapper.ConnectionImpl
de.hybris.platform.jdbcwrapper.JUnitConnectionImpl
- All Implemented Interfaces:
ParsedStatement,AutoCloseable,Connection,Wrapper
For testing error flag in connection itself.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.hybris.platform.jdbcwrapper.ConnectionImpl
ConnectionImpl.ErrorHandler -
Field Summary
FieldsFields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.jdbcwrapper.ConnectionImpl
abort, assureWritable, clearWarnings, close, closeUnderlayingConnection, commitInternal, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getConnectionID, getConnectionInfo, getDataSource, getHoldability, getLastValidationErrorCounter, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getUnderlayingConnection, getWarnings, hasBeenRollbacked, invalidate, isFlexibleSyntax, isReadOnly, isTxBound, isTxBoundUserTA, isUnderlyingConnectionValid, isValid, isWrapperFor, logError, markValid, nativeSQL, notifyError, notifyStatementClosed, prepareCall, prepareCall, prepareCall, prepareForUse, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, protectReadOnly, releaseResourceImpl, releaseSavepoint, resetError, restoreAfterUse, restoreAutoCommit, restoreTxIsolationLevel, rollback, rollbackInternal, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setErrorHandler, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTxBoundNoUserTA, setTxBoundUserTA, setTypeMap, toString, unsetTxBound, unwrap, wrapPreparedStatementMethods inherited from class de.hybris.platform.jdbcwrapper.WrapperRelease
addResource, releaseResources, removeResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Field Details
-
PREPARE_ERROR_QUERY
- See Also:
-
-
Constructor Details
-
JUnitConnectionImpl
-
-
Method Details
-
setError
public void setError(boolean hasError) -
setCommitMode
-
commit
- Specified by:
commitin interfaceConnection- Overrides:
commitin classConnectionImpl- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceConnection- Overrides:
rollbackin classConnectionImpl- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceConnection- Overrides:
isClosedin classConnectionImpl- Throws:
SQLException
-
hasBeenDestroyed
public boolean hasBeenDestroyed() -
parseQuery
- Specified by:
parseQueryin interfaceParsedStatement- Overrides:
parseQueryin classConnectionImpl- Parameters:
queryIn- query to be parsed in flex-mode implementation- Returns:
- parsed query into plain sql for underlying DB to perform on
- Throws:
SQLException- is thrown if during parsing something goes wrong
-
autoRollbackOnUnsetTxBOund
protected void autoRollbackOnUnsetTxBOund()- Overrides:
autoRollbackOnUnsetTxBOundin classConnectionImpl
-
gotError
protected boolean gotError()- Overrides:
gotErrorin classConnectionImpl
-
resetTestMode
public void resetTestMode()
-