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

public Class WebSphereLibertyJtaPlatform

extends AbstractJtaPlatform
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
jakarta.transaction.RollbackException, .Status, .Synchronization, .SystemException, .Transaction, .TransactionManager, .UserTransaction, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException, org.hibernate.internal.util.NullnessUtil

JTA platform implementation intended for use with WebSphere Liberty and OpenLiberty
Authors
Andrew Guibert, Nathan Rauh

Field Summary

Modifier and TypeField and Description
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public int
public Object
getTransactionIdentifier(Transaction
The transaction to be identified.
transaction
)

Overrides org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.getTransactionIdentifier.

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

Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
protected TransactionManager
protected UserTransaction
public void
Inherited from org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform:
canCacheTransactionManagercanCacheTransactionManagerByDefaultcanCacheUserTransactioncanCacheUserTransactionByDefaultconfiguregetSynchronizationStrategygetTransactionManagerinjectServicesjndiServiceretrieveTransactionManagerretrieveUserTransactionserviceRegistry

Field Detail

TMF_CLASS_NAMEback to summary
public static final String TMF_CLASS_NAME
UT_NAMEback to summary
public static final String UT_NAME

Constructor Detail

WebSphereLibertyJtaPlatformback to summary
public WebSphereLibertyJtaPlatform()

Method Detail

canRegisterSynchronizationback to summary
public boolean canRegisterSynchronization()

Overrides org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.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

Overrides org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.getCurrentStatus.

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)

Overrides org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.getTransactionIdentifier.

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
locateTransactionManagerback to summary
protected TransactionManager locateTransactionManager()

Implements abstract org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.locateTransactionManager.

Annotations
@Override
locateUserTransactionback to summary
protected UserTransaction locateUserTransaction()

Implements abstract org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.locateUserTransaction.

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

Overrides org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform.registerSynchronization.

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