| 
GigaSpaces XAP 7.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.core.transaction.manager.ExistingJiniTransactionManager
public class ExistingJiniTransactionManager
Expert: An internal helper, allowing to bind Jini Transaction so it
 will be automatically picked up by operations perfomed using GigaSpace.
 
Note, for each bind, a corresponding unbind should be called preferably in a finally clause.
| Field Summary | |
|---|---|
static String | 
CONTEXT
 | 
| Constructor Summary | |
|---|---|
ExistingJiniTransactionManager()
 | 
|
| Method Summary | |
|---|---|
static boolean | 
bindExistingTransaction(net.jini.core.transaction.Transaction transaction)
Same as bindExistingTransaction(net.jini.core.transaction.Transaction, boolean, boolean) with
 rollback and commit flags set to true (disabled). | 
static boolean | 
bindExistingTransaction(net.jini.core.transaction.Transaction transaction,
                        boolean disableCommit,
                        boolean disableRollback)
Binds the provided Jini Transaction, which means that any operation under
 the current thread by GigaSpace will be performed under it. | 
static void | 
unbindExistingTransaction()
Unbinds the current on going bounded transaction from the thread context.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String CONTEXT
| Constructor Detail | 
|---|
public ExistingJiniTransactionManager()
| Method Detail | 
|---|
public static boolean bindExistingTransaction(net.jini.core.transaction.Transaction transaction)
bindExistingTransaction(net.jini.core.transaction.Transaction, boolean, boolean) with
 rollback and commit flags set to true (disabled).
public static boolean bindExistingTransaction(net.jini.core.transaction.Transaction transaction,
                                              boolean disableCommit,
                                              boolean disableRollback)
Transaction, which means that any operation under
 the current thread by GigaSpace will be performed under it.
 Allows to control if calls for commit/rollback will be disabled or not (i.e. transaction is controlled by an outer entity).
Returns true if the transaction was boudned or not.
transaction - the transactiondisableCommit - Should commit be disabled or notdisableRollback - Should rollback be disabled or notpublic static void unbindExistingTransaction()
  | 
GigaSpaces XAP 7.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||