com.siebel.rf.offline.data.currency
Class Currency

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

public class Currency
extends java.lang.Object
implements Persisted

The Currency persisted class


Field Summary
 java.lang.String currency
           
 java.lang.Double currencyDecimalPlaces
           
 java.lang.String currencyName
           
static com.bankframe.services.logger.ELogger logger
           
static java.util.HashMap MAPPING
           
static java.util.ArrayList PK_ATTRBUTES
           
 
Constructor Summary
Currency()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares object
 java.lang.String getCurrency()
          Returns currency
 java.lang.Double getCurrencyDecimalPlaces()
          Returns currencyDecimalPlaces
 java.util.Collection getCurrencyDenominations(java.lang.String currency)
          Returns collection of CurrencyDenomination
 java.lang.String getCurrencyName()
          Returns currencyName
 java.util.HashMap getMapping()
          Returns attributes vs.
 java.util.ArrayList getPKAttributes()
          Returns collection of primary key attributes
 java.lang.String getTableName()
          Returns tableName of Currency
 void setCurrency(java.lang.String currency)
          Sets currency
 void setCurrencyDecimalPlaces(java.lang.Double currencyDecimalPlaces)
          Sets currencyDecimalPlaces
 void setCurrencyName(java.lang.String currencyName)
          Sets currencyName
 com.bankframe.bo.DataPacket toDataPacket()
          Creates dataPacket for Currency
 java.lang.String toString()
          Converts DataPacket to String
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currency

public java.lang.String currency

currencyName

public java.lang.String currencyName

currencyDecimalPlaces

public java.lang.Double currencyDecimalPlaces

MAPPING

public static java.util.HashMap MAPPING

PK_ATTRBUTES

public static java.util.ArrayList PK_ATTRBUTES

logger

public static com.bankframe.services.logger.ELogger logger
Constructor Detail

Currency

public Currency()
Method Detail

getCurrency

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

getCurrencyName

public java.lang.String getCurrencyName()
Returns currencyName
Returns:
the value of currencyName

getCurrencyDecimalPlaces

public java.lang.Double getCurrencyDecimalPlaces()
Returns currencyDecimalPlaces
Returns:
the value of currencyDecimalPlaces

setCurrency

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

setCurrencyName

public void setCurrencyName(java.lang.String currencyName)
Sets currencyName
Parameters:
currencyName - String

setCurrencyDecimalPlaces

public void setCurrencyDecimalPlaces(java.lang.Double currencyDecimalPlaces)
Sets currencyDecimalPlaces
Parameters:
currencyDecimalPlaces - 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 Currency
Specified by:
getTableName in interface Persisted
Returns:
the table name

toDataPacket

public com.bankframe.bo.DataPacket toDataPacket()
Creates dataPacket for Currency
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

getCurrencyDenominations

public java.util.Collection getCurrencyDenominations(java.lang.String currency)
                                              throws com.bankframe.ejb.ProcessingErrorException
Returns collection of CurrencyDenomination
Parameters:
currency - String
Returns:
the collection of CurrencyDenomination based on currency
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if Processing fails