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.
-
TransactionID()
- Empty constructor, works.
-
TransactionID(TransactionID, int)
- Constructor with old tid and an int.
-
newSubtransactionID(int)
- Create new sub transaction id out of this tid
and an int.
-
newUniqueNumber()
- To generate a new unique number based on the old one
stored in the class.
-
setPseudonym(String)
- Set the pseudonym of the user of the tid.
-
toString()
- Create a string representation of ourselves
TransactionID
public TransactionID()
- Empty constructor, works.
TransactionID
protected TransactionID(TransactionID tid,
int i)
- Constructor with old tid and an int.
Huh?
- Parameters:
- tid - whatever
- i - whatever
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
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
toString
public String toString()
- Create a string representation of ourselves
- Overrides:
- toString in class Object
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