Top Description Fields Constructors Methods
org.hibernate.engine.transaction.jta.platform.internal

public Class NoJtaPlatform

extends Object
implements JtaPlatform
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform, org.hibernate.service.Service, java.io.Serializable
Imports
javax.transaction.Status, .Synchronization, .SystemException, .Transaction, .TransactionManager, .UserTransaction, org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform

The non-configured form of JTA platform. This is what is used if none was set up.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final NoJtaPlatform

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public int
getCurrentStatus()

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.getCurrentStatus.

Obtain the current transaction status using whatever means is preferred for this platform
public Object
getTransactionIdentifier(Transaction
The transaction to be identified.
transaction
)

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.getTransactionIdentifier.

Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
public void
registerSynchronization(Synchronization
The synchronization to register
synchronization
)

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.registerSynchronization.

Register a JTA Synchronization in the means defined by the platform.
public TransactionManager
public UserTransaction
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final NoJtaPlatform INSTANCE

Constructor Detail

NoJtaPlatformback to summary
public NoJtaPlatform()

Method Detail

canRegisterSynchronizationback to summary
public boolean canRegisterSynchronization()

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.canRegisterSynchronization.

Doc from org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.canRegisterSynchronization.

Can we currently register a Synchronization?

Returns:boolean

True if registering a Synchronization is currently allowed; false otherwise.

Annotations
@Override
getCurrentStatusback to summary
public int getCurrentStatus() throws SystemException

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.getCurrentStatus.

Doc from org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.getCurrentStatus.

Obtain the current transaction status using whatever means is preferred for this platform

Returns:int

The current status.

Annotations
@Override
Exceptions
SystemException:
Indicates a problem access the underlying status
getTransactionIdentifierback to summary
public Object getTransactionIdentifier(Transaction transaction)

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.getTransactionIdentifier.

Doc from org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.getTransactionIdentifier.

Determine an identifier for the given transaction appropriate for use in caching/lookup usages.

Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly Java EE containers.

Parameters
transaction:Transaction

The transaction to be identified.

Returns:Object

An appropriate identifier

Annotations
@Override
registerSynchronizationback to summary
public void registerSynchronization(Synchronization synchronization)

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.registerSynchronization.

Doc from org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.registerSynchronization.

Register a JTA Synchronization in the means defined by the platform.

Parameters
synchronization:Synchronization

The synchronization to register

Annotations
@Override
retrieveTransactionManagerback to summary
public TransactionManager retrieveTransactionManager()

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.retrieveTransactionManager.

Doc from org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.retrieveTransactionManager.

Locate the TransactionManager

Returns:TransactionManager

The TransactionManager

Annotations
@Override
retrieveUserTransactionback to summary
public UserTransaction retrieveUserTransaction()

Implements org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.retrieveUserTransaction.

Doc from org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform.retrieveUserTransaction.

Locate the UserTransaction

Returns:UserTransaction

The UserTransaction

Annotations
@Override