public interface MXTransaction extends java.rmi.Remote, Transactable
Transactable
,
MboSet
Modifier and Type | Field and Description |
---|---|
static long |
InvalidStatus
A long number that is reserved to indicate that the transaction status is not valid or
the transactable doesn't exist in the transaction, while the status can be any long number
except this one that understood by the transaction implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Transactable txn)
Add a transactable object to the transaction.
|
void |
add(Transactable txn,
long status)
Add a transactable object to the transaction.
|
void |
clear()
clears the transactable array.
|
void |
commit()
Call to commit the transaction.
|
boolean |
getBoolean(java.lang.String keyString)
Gets the value from the Hashtable for the specified KeyString.
|
java.lang.Object |
getID()
Return the transaction id.
|
int |
getSize()
gets the Size of the transactable array.
|
java.lang.String |
getString(java.lang.String keyString)
Gets the value from the Hashtable for the specified KeyString.
|
long |
getTransactionStatus(Transactable t)
Returns the transactable status of specified transactable.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getTxnPropertyMap(Transactable t)
Get the property map for the transaction
|
int |
indexOf(Transactable t)
Returns the index (0 based) of the specified object in the transaction.
|
void |
put(java.lang.String keyString,
boolean value)
Stores the value of keyStrings and values in the hashtable.
|
void |
put(java.lang.String keyString,
java.lang.String value)
Stores the value of keyStrings and values in the hashtable.
|
boolean |
remove(Transactable t)
removes the Transactable object from the transactable array.
|
void |
rollback()
Called by the user to explictily rollback the transaction.
|
void |
save()
Store the objects associated with the transaction
|
void |
setEventFired(boolean flag)
Sets the event fired flag.
|
void |
setIndexOf(Transactable t,
int order)
Sets the index of transactable obejct.
|
void |
setTxnPropertyMap(Transactable t,
java.util.Map<java.lang.Object,java.lang.Object> map)
Set the property map for the transaction
|
commitTransaction, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransaction
static final long InvalidStatus
java.lang.Object getID() throws java.rmi.RemoteException
java.rmi.RemoteException
- Network Errorvoid add(Transactable txn) throws java.rmi.RemoteException
txn
- Transactable Objectjava.rmi.RemoteException
- Network Errorvoid add(Transactable txn, long status) throws java.rmi.RemoteException
txn
- Transactable Objectjava.rmi.RemoteException
- Network Errorvoid save() throws MXException, java.rmi.RemoteException
MXException
- Error while savingjava.rmi.RemoteException
- Network errorvoid commit() throws MXException, java.rmi.RemoteException
MXException
- Error while committingjava.rmi.RemoteException
- Network errorvoid rollback() throws MXException, java.rmi.RemoteException
MXException
- Error while rolling backjava.rmi.RemoteException
- Network errorint indexOf(Transactable t) throws MXObjectNotFoundException, java.rmi.RemoteException
MXObjectNotFoundException
- - if specified object not foundjava.rmi.RemoteException
- Network errorvoid setIndexOf(Transactable t, int order) throws java.rmi.RemoteException, MXException
t
- order
- java.rmi.RemoteException
MXException
int getSize() throws java.rmi.RemoteException
java.rmi.RemoteException
void put(java.lang.String keyString, boolean value) throws java.rmi.RemoteException
keyString
- value
- java.rmi.RemoteException
void put(java.lang.String keyString, java.lang.String value) throws java.rmi.RemoteException
keyString
- value
- java.rmi.RemoteException
boolean getBoolean(java.lang.String keyString) throws java.rmi.RemoteException
keyString
- java.rmi.RemoteException
java.lang.String getString(java.lang.String keyString) throws java.rmi.RemoteException
keyString
- java.rmi.RemoteException
boolean remove(Transactable t) throws java.rmi.RemoteException
t
- java.rmi.RemoteException
void clear() throws java.rmi.RemoteException
java.rmi.RemoteException
void setEventFired(boolean flag) throws java.rmi.RemoteException
flag
- java.rmi.RemoteException
long getTransactionStatus(Transactable t) throws java.rmi.RemoteException, MXException
t
- java.rmi.RemoteException
MXException
- when the transactable doesn't exist in the transactionvoid setTxnPropertyMap(Transactable t, java.util.Map<java.lang.Object,java.lang.Object> map) throws MXException, java.rmi.RemoteException
t
- map
- MXException
java.rmi.RemoteException
java.util.Map<java.lang.Object,java.lang.Object> getTxnPropertyMap(Transactable t) throws MXException, java.rmi.RemoteException
t
- MXException
java.rmi.RemoteException