edu.cmu.mse.vault.transaction
Class Transaction

java.lang.Object
  extended byedu.cmu.mse.vault.transaction.Transaction
All Implemented Interfaces:
java.io.Serializable

public class Transaction
extends java.lang.Object
implements java.io.Serializable

Author:
Jinhee, Luisd TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
See Also:
Serialized Form

Field Summary
static java.lang.Integer TRAN_TYPE_DEPOSIT
           
static java.lang.Integer TRAN_TYPE_TRANSFER
           
static java.lang.Integer TRAN_TYPE_WITHDRAWL
           
 
Constructor Summary
Transaction(java.lang.Integer accountID, java.util.Date date, java.lang.Integer transType, java.lang.Integer transferToAccount, java.lang.Double transAmount)
           
 
Method Summary
 java.lang.Integer getAccountID()
           
 java.util.Date getDate()
           
 java.lang.Double getTransAmount()
           
 java.lang.Integer getTransferToAccount()
           
 java.lang.Integer getTransType()
           
 void setAccountID(java.lang.Integer accountID)
           
 void setDate(java.util.Date date)
           
 void setTransAmount(java.lang.Double transAmount)
           
 void setTransferToAccount(java.lang.Integer transferToAccount)
           
 void setTransType(java.lang.Integer transType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAN_TYPE_DEPOSIT

public static final java.lang.Integer TRAN_TYPE_DEPOSIT

TRAN_TYPE_WITHDRAWL

public static final java.lang.Integer TRAN_TYPE_WITHDRAWL

TRAN_TYPE_TRANSFER

public static final java.lang.Integer TRAN_TYPE_TRANSFER
Constructor Detail

Transaction

public Transaction(java.lang.Integer accountID,
                   java.util.Date date,
                   java.lang.Integer transType,
                   java.lang.Integer transferToAccount,
                   java.lang.Double transAmount)
Parameters:
accountID -
date -
transType -
transferToAccount -
transAmount -
Method Detail

getAccountID

public java.lang.Integer getAccountID()
Returns:
Returns the accountID.

setAccountID

public void setAccountID(java.lang.Integer accountID)
Parameters:
accountID - The accountID to set.

getDate

public java.util.Date getDate()
Returns:
Returns the date.

setDate

public void setDate(java.util.Date date)
Parameters:
date - The date to set.

getTransAmount

public java.lang.Double getTransAmount()
Returns:
Returns the transAmount.

setTransAmount

public void setTransAmount(java.lang.Double transAmount)
Parameters:
transAmount - The transAmount to set.

getTransferToAccount

public java.lang.Integer getTransferToAccount()
Returns:
Returns the transferToAccount.

setTransferToAccount

public void setTransferToAccount(java.lang.Integer transferToAccount)
Parameters:
transferToAccount - The transferToAccount to set.

getTransType

public java.lang.Integer getTransType()
Returns:
Returns the transType.

setTransType

public void setTransType(java.lang.Integer transType)
Parameters:
transType - The transType to set.