IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1

com.ibm.websphere.objectgrid
TxID

All Implemented Interfaces
Serializable


This is an opaque identifier for a transaction. It is not serializable but it does support Comparable and equals. Slots values can be stored and retrieved on this object. This allows the TransactionCallback and the Loader, for example, to share state between each other in the context of a specific cache transaction.
See Also:
    reserveSlot(String)


Field Summary
public  StringSLOT_NAME
           All slots should be reserved using this name.

Method Summary
public  booleanequals(com.ibm.websphere.objectgrid.TxID)
           Checks for equality between two TxID objects.
public  inthashCode()
           Returns the hashcode of the Tx identifier.
public  ObjectgetSlot(int)
           Gets the context information currently associated with this transaction.
public  voidputSlot(int, java.lang.Object)
           Sets some context information to be associated with this transaction.
public  SessiongetSession()
           Returns the Session that owns this TxID.

Field Detail

SLOT_NAME

public 
  static SLOT_NAME
All slots should be reserved using this name.

Method Detail

equals

public boolean equals(TxID o)
Checks for equality between two TxID objects.
Parameters:
    o - Input TxID to check for equality against


Returns:
     boolean true, if they are equal; false, if they not equal


hashCode

public int hashCode()
Returns the hashcode of the Tx identifier.


Returns:
     hashcode


getSlot

public Object getSlot(int slotNumber)
Gets the context information currently associated with this transaction.
Parameters:
    slotNumber - the slot number


Returns:
     Object housed in the TxID slot


putSlot

public void putSlot(int slotNumber,Object o)
Sets some context information to be associated with this transaction.
Parameters:
    slotNumber - the slot number
    o - Object to be put into the TxID slot


getSession

public Session getSession()
Returns the Session that owns this TxID.


Returns:
     a Session object to use.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1