|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.service.jta.platform.internal.AbstractJtaPlatform
public abstract class AbstractJtaPlatform
Constructor Summary | |
---|---|
AbstractJtaPlatform()
|
Method Summary | |
---|---|
protected boolean |
canCacheTransactionManager()
|
protected boolean |
canCacheUserTransaction()
|
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 ServiceRegistryAwareService
serviceRegistry
- The registryprotected ServiceRegistry serviceRegistry()
protected JndiService jndiService()
protected abstract TransactionManager locateTransactionManager()
protected abstract UserTransaction locateUserTransaction()
public void configure(Map configValues)
Configurable
configure
in interface Configurable
configValues
- The configuration properties.protected boolean canCacheTransactionManager()
protected boolean canCacheUserTransaction()
public TransactionManager retrieveTransactionManager()
JtaPlatform
TransactionManager
retrieveTransactionManager
in interface JtaPlatform
TransactionManager
public TransactionManager getTransactionManager()
TransactionManagerAccess
getTransactionManager
in interface TransactionManagerAccess
public UserTransaction retrieveUserTransaction()
JtaPlatform
UserTransaction
retrieveUserTransaction
in interface JtaPlatform
UserTransaction
public Object getTransactionIdentifier(Transaction transaction)
JtaPlatform
getTransactionIdentifier
in interface JtaPlatform
transaction
- The transaction to be identified.
protected JtaSynchronizationStrategy getSynchronizationStrategy()
public void registerSynchronization(Synchronization synchronization)
JtaPlatform
Synchronization
in the means defined by the platform.
registerSynchronization
in interface JtaPlatform
synchronization
- The synchronization to registerpublic boolean canRegisterSynchronization()
JtaPlatform
Synchronization
?
canRegisterSynchronization
in interface JtaPlatform
Synchronization
is currently allowed; false otherwise.public int getCurrentStatus() throws SystemException
JtaPlatform
getCurrentStatus
in interface JtaPlatform
SystemException
- Indicates a problem access the underlying status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |