com.redstarhackers.func
Class AppTx

java.lang.Object
  extended bycom.redstarhackers.func.AppTx
All Implemented Interfaces:
ApplicationTransaction, java.io.Serializable

public class AppTx
extends java.lang.Object
implements ApplicationTransaction

A basic implementation of the ApplicationTransaction interface.

Version:
$Revision: 1.1 $
Author:
$Author: kostya $
See Also:
Serialized Form

Constructor Summary
AppTx(java.lang.String userIdVal)
          Construct a new application transaction for the given user id.
 
Method Summary
 boolean equals(java.lang.Object rhs)
          Returns whether the right-hand-side object is equal to this instance.
 java.lang.String getAppTxId()
          Return the application transaction id (that is, a unique identifier for this transaction).
 java.lang.String getUserId()
          Return the id of the user this transaction pertains to.
 int hashCode()
          Implements hashCode() for the identifying or significant fields.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppTx

public AppTx(java.lang.String userIdVal)
Construct a new application transaction for the given user id.

Method Detail

getUserId

public java.lang.String getUserId()
Description copied from interface: ApplicationTransaction
Return the id of the user this transaction pertains to. This id should match any id used to log in or any id used to lookup security information later in the transaction.

Specified by:
getUserId in interface ApplicationTransaction
Returns:
the user id.

getAppTxId

public java.lang.String getAppTxId()
Description copied from interface: ApplicationTransaction
Return the application transaction id (that is, a unique identifier for this transaction). The id should be unique within the application.

Specified by:
getAppTxId in interface ApplicationTransaction
Returns:
the application transaction id.

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object rhs)
Returns whether the right-hand-side object is equal to this instance.

Returns:
true if they are considered equal, false otherwise.

hashCode

public int hashCode()
Implements hashCode() for the identifying or significant fields.

Returns:
the hash code value.