Top Fields Constructors Methods
org.hibernate.internal

public Class ExceptionMapperStandardImpl

extends Object
implements ExceptionMapper
Class Inheritance
All Implemented Interfaces
org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper, java.io.Serializable
Imports
javax.transaction.SystemException, org.hibernate.TransactionException, org.hibernate.engine.spi.SessionImplementor, org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final ExceptionMapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public RuntimeException
mapManagedFlushFailure(String
The message to use for the returned exception
message
,
RuntimeException
The causal exception
failure
,
SessionImplementor session)

Implements org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper.mapManagedFlushFailure.

Deprecated as a consequence of SessionImplementor being deprecated.
Map an exception encountered during a managed flush to the appropriate runtime-based exception.
public RuntimeException
mapStatusCheckFailure(String
The message to use for the returned exception
message
,
SystemException
The causal exception
systemException
,
SessionImplementor sessionImplementor)

Implements org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper.mapStatusCheckFailure.

Deprecated as a consequence of SessionImplementor being deprecated.
Map a JTA javax.transaction.SystemException to the appropriate runtime-based exception.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final ExceptionMapper INSTANCE

Constructor Detail

ExceptionMapperStandardImplback to summary
public ExceptionMapperStandardImpl()

Method Detail

mapManagedFlushFailureback to summary
public RuntimeException mapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session)

Implements org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper.mapManagedFlushFailure.

Doc from org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper.mapManagedFlushFailure.

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

Map an exception encountered during a managed flush to the appropriate runtime-based exception.

Parameters
message:String

The message to use for the returned exception

failure:RuntimeException

The causal exception

Returns:RuntimeException

The appropriate exception to throw

Annotations
@Override
mapStatusCheckFailureback to summary
public RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor)

Implements org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper.mapStatusCheckFailure.

Doc from org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper.mapStatusCheckFailure.

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

Map a JTA javax.transaction.SystemException to the appropriate runtime-based exception.

Parameters
message:String

The message to use for the returned exception

systemException:SystemException

The causal exception

Returns:RuntimeException

The appropriate exception to throw

Annotations
@Override