com.siebel.rf.offline.data.branchcurrencytotals
Class BranchCurrencyTotals

java.lang.Object
  |
  +--com.siebel.rf.offline.data.branchcurrencytotals.BranchCurrencyTotals
All Implemented Interfaces:
Persisted

public class BranchCurrencyTotals
extends java.lang.Object
implements Persisted

The BranchCurrencyTotals persisted class


Field Summary
 java.lang.String branchCode
           
 java.lang.String companyCode
           
 java.lang.String currency
           
 java.lang.Double eodCoinTotal
           
 java.lang.Double eodNotesTotal
           
 java.lang.Double eodRunningTotal
           
static java.util.HashMap MAPPING
           
 java.lang.Double permittedVariance
           
static java.util.ArrayList PK_ATTRBUTES
           
 
Constructor Summary
BranchCurrencyTotals()
           
 
Method Summary
 void addTotals(java.lang.Double totalNotes, java.lang.Double totalCoin, java.lang.Double runningTotal)
          Updates BranchCurrencyTotals object with each individual currency box total.
 java.lang.Boolean checkPermittedVariance(java.lang.Double amount)
          Checks Permitted Variance
 void createBranchCurrencyTotalsSnapshot(java.lang.String snapshotType, java.lang.String date)
          Creates a snapshot of the Branch Currency Totals
 boolean equals(java.lang.Object object)
          Compares object
 java.lang.String getBranchCode()
          Returns branchCode
 java.lang.String getCompanyCode()
          Returns companyCode
 java.lang.String getCurrency()
          Returns currency
 java.lang.Double getEodCoinTotal()
          Returns eodCoinTotal
 java.lang.Double getEodNotesTotal()
          Returns eodNotesTotal
 java.lang.Double getEodRunningTotal()
          Returns eodRunningTotal
 java.util.HashMap getMapping()
          Returns attributes vs.
 java.lang.Double getPermittedVariance()
          Returns permittedVariance
 java.util.ArrayList getPKAttributes()
          Returns collection of primary key attributes
 java.lang.String getTableName()
          Returns tableName of BranchCurrencyTotal
 void setBranchCode(java.lang.String branchCode)
          Sets branchCode
 void setCompanyCode(java.lang.String companyCode)
          Sets companyCode
 void setCurrency(java.lang.String currency)
          Sets currency
 void setEodCoinTotal(java.lang.Double eodCoinTotal)
          Sets eodCoinTotal
 void setEodNotesTotal(java.lang.Double eodNotesTotal)
          Sets eodNotesTotal
 void setEodRunningTotal(java.lang.Double eodRunningTotal)
          Sets eodRunningTotal
 void setPermittedVariance(java.lang.Double permittedVariance)
          Sets permittedVariance
 com.bankframe.bo.DataPacket toDataPacket()
          Creates dataPacket for BranchCurrencyTotal
 java.lang.String toString()
          Converts DataPacket to String
 void updateCurrencyTotals(java.lang.Double totalNoteValue, java.lang.Double totalCoinValue, java.lang.Double runningTotal)
          Updates Currency Totals
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eodNotesTotal

public java.lang.Double eodNotesTotal

eodCoinTotal

public java.lang.Double eodCoinTotal

eodRunningTotal

public java.lang.Double eodRunningTotal

companyCode

public java.lang.String companyCode

currency

public java.lang.String currency

branchCode

public java.lang.String branchCode

permittedVariance

public java.lang.Double permittedVariance

MAPPING

public static java.util.HashMap MAPPING

PK_ATTRBUTES

public static java.util.ArrayList PK_ATTRBUTES
Constructor Detail

BranchCurrencyTotals

public BranchCurrencyTotals()
Method Detail

getEodNotesTotal

public java.lang.Double getEodNotesTotal()
Returns eodNotesTotal
Returns:
the value of eodNotesTotal

getEodCoinTotal

public java.lang.Double getEodCoinTotal()
Returns eodCoinTotal
Returns:
the value of eodCoinTotal

getEodRunningTotal

public java.lang.Double getEodRunningTotal()
Returns eodRunningTotal
Returns:
the value of eodRunningTotal

getCompanyCode

public java.lang.String getCompanyCode()
Returns companyCode
Returns:
the value of companyCode

getCurrency

public java.lang.String getCurrency()
Returns currency
Returns:
the value of currency

getBranchCode

public java.lang.String getBranchCode()
Returns branchCode
Returns:
the value of branchCode

getPermittedVariance

public java.lang.Double getPermittedVariance()
Returns permittedVariance
Returns:
the value of permittedVariance

setEodNotesTotal

public void setEodNotesTotal(java.lang.Double eodNotesTotal)
Sets eodNotesTotal
Parameters:
eodNotesTotal - Double

setEodCoinTotal

public void setEodCoinTotal(java.lang.Double eodCoinTotal)
Sets eodCoinTotal
Parameters:
eodCoinTotal - Double

setEodRunningTotal

public void setEodRunningTotal(java.lang.Double eodRunningTotal)
Sets eodRunningTotal
Parameters:
eodRunningTotal - Double

setCompanyCode

public void setCompanyCode(java.lang.String companyCode)
Sets companyCode
Parameters:
companyCode - String

setCurrency

public void setCurrency(java.lang.String currency)
Sets currency
Parameters:
currency - String

setBranchCode

public void setBranchCode(java.lang.String branchCode)
Sets branchCode
Parameters:
branchCodecurrency - String

setPermittedVariance

public void setPermittedVariance(java.lang.Double permittedVariance)
Sets permittedVariance
Parameters:
permittedVariance - Double

getMapping

public java.util.HashMap getMapping()
Returns attributes vs. table column name mapping
Specified by:
getMapping in interface Persisted
Returns:
the attributes vs. table column name mapping

getPKAttributes

public java.util.ArrayList getPKAttributes()
Returns collection of primary key attributes
Specified by:
getPKAttributes in interface Persisted
Returns:
the collection of primary key attributes

getTableName

public java.lang.String getTableName()
Returns tableName of BranchCurrencyTotal
Specified by:
getTableName in interface Persisted
Returns:
the table name

toDataPacket

public com.bankframe.bo.DataPacket toDataPacket()
Creates dataPacket for BranchCurrencyTotal
Specified by:
toDataPacket in interface Persisted
Returns:
dataPacket DataPacket

toString

public java.lang.String toString()
Converts DataPacket to String
Overrides:
toString in class java.lang.Object
Returns:
String after converting the DataPacket to String

equals

public boolean equals(java.lang.Object object)
Compares object
Overrides:
equals in class java.lang.Object
Parameters:
object - Object
Returns:
boolean after comparing the object

updateCurrencyTotals

public void updateCurrencyTotals(java.lang.Double totalNoteValue,
                                 java.lang.Double totalCoinValue,
                                 java.lang.Double runningTotal)
                          throws com.bankframe.ejb.ProcessingErrorException,
                                 com.bankframe.validation.ValidationException
Updates Currency Totals
Parameters:
totalNoteValue - Double
totalCoinValue - Double
runningTotal - Double
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

checkPermittedVariance

public java.lang.Boolean checkPermittedVariance(java.lang.Double amount)
Checks Permitted Variance
Parameters:
amount - Double
Returns:
boolean after checking the Permitted Variance

createBranchCurrencyTotalsSnapshot

public void createBranchCurrencyTotalsSnapshot(java.lang.String snapshotType,
                                               java.lang.String date)
                                        throws com.bankframe.ejb.ProcessingErrorException,
                                               com.bankframe.validation.ValidationException
Creates a snapshot of the Branch Currency Totals
Parameters:
snapshotType - String
date - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

addTotals

public void addTotals(java.lang.Double totalNotes,
                      java.lang.Double totalCoin,
                      java.lang.Double runningTotal)
               throws com.bankframe.validation.ValidationException
Updates BranchCurrencyTotals object with each individual currency box total.
Parameters:
totalNotes - Double
totalCoin - Double
runningTotal - Double
Throws:
com.bankframe.validation.ValidationException - This exception is thrown if validation fails