psman.data
Class Transaction

java.lang.Object
  |
  +--psman.data.Transaction

public final class Transaction
extends java.lang.Object

The transaction, a single communication.

Version:
$Id: Transaction.java,v 1.4 2003/11/05 08:20:33 tk4 Exp $
Author:
Martin Godisch

Constructor Summary
Transaction(java.util.Date begin, java.util.Date end, psman.data.Pseudonym pseudonym, psman.data.TPartner partner, psman.data.Role role)
          Constructor, only for new transactions.
Transaction(int id, java.util.Date begin, java.util.Date end, psman.data.Pseudonym pseudonym, psman.data.TPartner partner, psman.data.Role role)
          Constructor, only for existing transactions.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(psman.data.Transaction data)
           
 int getID()
          Return the database ID of this transaction.
 psman.data.TPartner getPartner()
          Return the transaction partner of this transaction.
 psman.data.Pseudonym getPseudonym()
          Return the pseudonym used in this transaction.
 psman.data.Role getRole()
          Return the role of this transaction.
 java.util.Date getStartTime()
          Return the start time of this transaction.
 java.util.Date getStopTime()
          Return the stop time of this transaction.
 int hashCode()
           
 void setID(int id)
          Set the database ID of this transaction
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(int id,
                   java.util.Date begin,
                   java.util.Date end,
                   psman.data.Pseudonym pseudonym,
                   psman.data.TPartner partner,
                   psman.data.Role role)
Constructor, only for existing transactions.

Parameters:
id - the database ID of this transaction
begin - the start time of this transaction
end - the end time of this transaction
pseudonym - the pseudonym used in this transaction
partner - the transaction partner
role - the role to which this transaction belongs

Transaction

public Transaction(java.util.Date begin,
                   java.util.Date end,
                   psman.data.Pseudonym pseudonym,
                   psman.data.TPartner partner,
                   psman.data.Role role)
Constructor, only for new transactions.

Parameters:
begin - the start time of this transaction
end - the end time of this transaction
pseudonym - the pseudonym used in this transaction
partner - the transaction partner
role - the role to which this transaction belongs
Method Detail

getID

public int getID()
Return the database ID of this transaction.

Returns:
the database ID of this transaction

getStartTime

public java.util.Date getStartTime()
Return the start time of this transaction.

Returns:
the start time of this transaction

getStopTime

public java.util.Date getStopTime()
Return the stop time of this transaction.

Returns:
the stop time of this transaction

getPseudonym

public psman.data.Pseudonym getPseudonym()
Return the pseudonym used in this transaction.

Returns:
the pseudonym used in this transaction

getPartner

public psman.data.TPartner getPartner()
Return the transaction partner of this transaction.

Returns:
the transaction partner of this transaction

getRole

public psman.data.Role getRole()
Return the role of this transaction.

Returns:
the role of this transaction

setID

public void setID(int id)
Set the database ID of this transaction

Parameters:
id - the database ID of this transaction

equals

public boolean equals(psman.data.Transaction data)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 DRIM Team. All Rights Reserved.