|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.osgi.OsgiJtaPlatform
public class OsgiJtaPlatform
Offers the JTA Platform provided by the OSGi container. The Enterprise OSGi spec requires all containers to register UserTransaction and TransactionManager OSGi services.
| Constructor Summary | |
|---|---|
OsgiJtaPlatform(org.osgi.framework.BundleContext bundleContext)
|
|
| Method Summary | |
|---|---|
boolean |
canRegisterSynchronization()
Can we currently register a Synchronization? |
int |
getCurrentStatus()
Obtain the current transaction status using whatever means is preferred for this platform |
Object |
getTransactionIdentifier(Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsgiJtaPlatform(org.osgi.framework.BundleContext bundleContext)
| Method Detail |
|---|
public TransactionManager retrieveTransactionManager()
JtaPlatformTransactionManager
retrieveTransactionManager in interface JtaPlatformTransactionManagerpublic UserTransaction retrieveUserTransaction()
JtaPlatformUserTransaction
retrieveUserTransaction in interface JtaPlatformUserTransactionpublic Object getTransactionIdentifier(Transaction transaction)
JtaPlatform
getTransactionIdentifier in interface JtaPlatformtransaction - The transaction to be identified.
public boolean canRegisterSynchronization()
JtaPlatformSynchronization?
canRegisterSynchronization in interface JtaPlatformSynchronization is currently allowed; false otherwise.public void registerSynchronization(Synchronization synchronization)
JtaPlatformSynchronization in the means defined by the platform.
registerSynchronization in interface JtaPlatformsynchronization - The synchronization to register
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 | |||||||||