All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.transaction.TransactionID

java.lang.Object
   |
   +----semper.txlayer.transaction.TransactionID

public class TransactionID
extends Object
implements Serializable
TransactionIDs are supposed to uniquely identify a Transaction. This is the base class for these mechanisms.


Constructor Index

 o TransactionID()
Empty constructor, works.
 o TransactionID(TransactionID, int)
Constructor with old tid and an int.

Method Index

 o newSubtransactionID(int)
Create new sub transaction id out of this tid and an int.
 o newUniqueNumber()
To generate a new unique number based on the old one stored in the class.
 o setPseudonym(String)
Set the pseudonym of the user of the tid.
 o toString()
Create a string representation of ourselves

Constructors

 o TransactionID
 public TransactionID()
Empty constructor, works.

 o TransactionID
 protected TransactionID(TransactionID tid,
                         int i)
Constructor with old tid and an int. Huh?

Parameters:
tid - whatever
i - whatever

Methods

 o setPseudonym
 public boolean setPseudonym(String p)
Set the pseudonym of the user of the tid.

Parameters:
p - The name to be set.
Returns:
true in any case
 o newSubtransactionID
 public TransactionID newSubtransactionID(int i)
Create new sub transaction id out of this tid and an int.

Parameters:
i - the integer out of which the new subtransaction id is generated.
Returns:
New TransactionID
 o toString
 public String toString()
Create a string representation of ourselves

Overrides:
toString in class Object
 o newUniqueNumber
 protected static long newUniqueNumber()
To generate a new unique number based on the old one stored in the class.

Returns:
a new unique number

All Packages  Class Hierarchy  This Package  Previous  Next  Index