|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.service.jta.platform.internal.AbstractJtaPlatform
public abstract class AbstractJtaPlatform
| Constructor Summary | |
|---|---|
AbstractJtaPlatform()
|
|
| Method Summary | |
|---|---|
protected boolean |
canCacheTransactionManager()
|
protected boolean |
canCacheTransactionManagerByDefault()
|
protected boolean |
canCacheUserTransaction()
|
protected boolean |
canCacheUserTransactionByDefault()
|
boolean |
canRegisterSynchronization()
Can we currently register a Synchronization? |
void |
configure(Map configValues)
Configure the service. |
int |
getCurrentStatus()
Obtain the current transaction status using whatever means is preferred for this platform |
protected JtaSynchronizationStrategy |
getSynchronizationStrategy()
|
Object |
getTransactionIdentifier(Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages. |
TransactionManager |
getTransactionManager()
Obtain the transaction manager |
void |
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry. |
protected JndiService |
jndiService()
|
protected abstract TransactionManager |
locateTransactionManager()
|
protected abstract UserTransaction |
locateUserTransaction()
|
void |
registerSynchronization(Synchronization synchronization)
Register a JTA Synchronization in the means defined by the platform. |
TransactionManager |
retrieveTransactionManager()
Locate the TransactionManager |
UserTransaction |
retrieveUserTransaction()
Locate the UserTransaction |
protected ServiceRegistry |
serviceRegistry()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJtaPlatform()
| Method Detail |
|---|
public void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareService
injectServices in interface ServiceRegistryAwareServiceserviceRegistry - The registryprotected ServiceRegistry serviceRegistry()
protected JndiService jndiService()
protected abstract TransactionManager locateTransactionManager()
protected abstract UserTransaction locateUserTransaction()
public void configure(Map configValues)
Configurable
configure in interface ConfigurableconfigValues - The configuration properties.protected boolean canCacheTransactionManagerByDefault()
protected boolean canCacheUserTransactionByDefault()
protected boolean canCacheTransactionManager()
protected boolean canCacheUserTransaction()
public TransactionManager retrieveTransactionManager()
JtaPlatformTransactionManager
retrieveTransactionManager in interface JtaPlatformTransactionManagerpublic TransactionManager getTransactionManager()
TransactionManagerAccess
getTransactionManager in interface TransactionManagerAccesspublic UserTransaction retrieveUserTransaction()
JtaPlatformUserTransaction
retrieveUserTransaction in interface JtaPlatformUserTransactionpublic Object getTransactionIdentifier(Transaction transaction)
JtaPlatform
getTransactionIdentifier in interface JtaPlatformtransaction - The transaction to be identified.
protected JtaSynchronizationStrategy getSynchronizationStrategy()
public void registerSynchronization(Synchronization synchronization)
JtaPlatformSynchronization in the means defined by the platform.
registerSynchronization in interface JtaPlatformsynchronization - The synchronization to registerpublic boolean canRegisterSynchronization()
JtaPlatformSynchronization?
canRegisterSynchronization in interface JtaPlatformSynchronization is currently allowed; false otherwise.
public int getCurrentStatus()
throws SystemException
JtaPlatform
getCurrentStatus in interface JtaPlatformSystemException - Indicates a problem access the underlying status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||