| com.tc.object.tx.ClientTransaction
All known Subclasses: com.tc.object.tx.TestClientTransaction, com.tc.object.tx.AbstractClientTransaction,
ClientTransaction | public interface ClientTransaction (Code) | | Hangs on to a grouping of changes to be sent as a batch to the server.
Changes are accumulated by the ClientTransactionManager.
author: steve |
Method Summary | |
public void | addDmiDescritor(DmiDescriptor dd) | public List | addNotifiesTo(List notifies) | public void | addNotify(Notify notify) | public void | arrayChanged(TCObject source, int startPos, Object array, int length) | public void | createObject(TCObject source) | public void | createRoot(String name, ObjectID rootID) | public void | fieldChanged(TCObject source, String classname, String fieldname, Object newValue, int index) | public LockID[] | getAllLockIDs() | public Map | getChangeBuffers() | public List | getDmiDescriptors() | public LockID | getLockID() | public Map | getNewRoots() | public int | getNotifiesCount() | public Collection | getReferencesOfObjectsInTxn() | public SequenceID | getSequenceID() | public TransactionID | getTransactionID() | public TxnType | getTransactionType() | public boolean | hasChanges() | public boolean | hasChangesOrNotifies() | public boolean | isConcurrent() | public boolean | isNull() | public void | literalValueChanged(TCObject source, Object newValue, Object oldValue) | public void | logicalInvoke(TCObject source, int method, Object[] parameters, String methodName) | public void | setAlreadyCommitted() | public void | setSequenceID(SequenceID sequenceID) | public void | setTransactionContext(TransactionContext transactionContext) | public void | updateMBean(ClientTxMonitorMBean txMBean) |
addDmiDescritor | public void addDmiDescritor(DmiDescriptor dd)(Code) | | Add a new DMI descriptor
Parameters: dd - Descriptor |
addNotifiesTo | public List addNotifiesTo(List notifies)(Code) | | Record Notify's
Parameters: notifies - Of Notify's All Notify's |
addNotify | public void addNotify(Notify notify)(Code) | | Add a new Notify
Parameters: notify - Notify |
arrayChanged | public void arrayChanged(TCObject source, int startPos, Object array, int length)(Code) | | Record array change
Parameters: source - TCObject for instance Parameters: startPos - Index into array Parameters: array - Partial array or value Parameters: length - Length of array |
createObject | public void createObject(TCObject source)(Code) | | Record new object creation
Parameters: source - TCObject for new object |
createRoot | public void createRoot(String name, ObjectID rootID)(Code) | | Record new root
Parameters: name - Root name Parameters: rootID - ObjectID for root value |
fieldChanged | public void fieldChanged(TCObject source, String classname, String fieldname, Object newValue, int index)(Code) | | Record field changed
Parameters: source - TCObject for value Parameters: classname - Class name Parameters: fieldname - Field name Parameters: newValue - New field value Parameters: index - Index into array if array field |
getAllLockIDs | public LockID[] getAllLockIDs()(Code) | | Get all locks associated with this transaction
All locks |
getChangeBuffers | public Map getChangeBuffers()(Code) | | Get all change buffers associated with this transaction
Map of TCObject to TCChangeBuffer |
getDmiDescriptors | public List getDmiDescriptors()(Code) | | Get all DmiDescriptors
List of DmiDescriptors in transaction |
getLockID | public LockID getLockID()(Code) | | Get initial lock identifier
Identifier |
getNewRoots | public Map getNewRoots()(Code) | | Get new roots in this transaction
Map of Root name to ObjectID |
getNotifiesCount | public int getNotifiesCount()(Code) | | Count of notify's in transaction |
getReferencesOfObjectsInTxn | public Collection getReferencesOfObjectsInTxn()(Code) | | Get all references of objects included in the transaction
Collection of referenced objects |
getSequenceID | public SequenceID getSequenceID()(Code) | | Sequence identifier in transaction stream |
getTransactionID | public TransactionID getTransactionID()(Code) | | Get transaction identifier
Identifier |
getTransactionType | public TxnType getTransactionType()(Code) | | Get transaction type
Type |
hasChanges | public boolean hasChanges()(Code) | | True if has changes in transaction |
hasChangesOrNotifies | public boolean hasChangesOrNotifies()(Code) | | Check whether transactoin has changes or notifications
True if has changes or notifies |
isConcurrent | public boolean isConcurrent()(Code) | | True if concurrent transaction |
isNull | public boolean isNull()(Code) | | Check whether this is a null transaction
True if null |
literalValueChanged | public void literalValueChanged(TCObject source, Object newValue, Object oldValue)(Code) | | Record literal value changed
Parameters: source - TCObject for instance Parameters: newValue - New value for instance Parameters: oldValue - Old value for instance |
logicalInvoke | public void logicalInvoke(TCObject source, int method, Object[] parameters, String methodName)(Code) | | Record logical invocation
Parameters: source - Source of invoke Parameters: method - Method identifier Parameters: parameters - Parameter values Parameters: methodName - Method name |
setAlreadyCommitted | public void setAlreadyCommitted()(Code) | | Set transaction as already committed
|
setSequenceID | public void setSequenceID(SequenceID sequenceID)(Code) | | Indicate place in sequence of transactions
Parameters: sequenceID - Identifier |
setTransactionContext | public void setTransactionContext(TransactionContext transactionContext)(Code) | | Set the transaction context (type and related locks)
Parameters: transactionContext - Context |
updateMBean | public void updateMBean(ClientTxMonitorMBean txMBean)(Code) | | Update MBean with state
Parameters: txMBean - MBean to update |
|
|