com.siebel.rf.offline.data.currencybox
Class CurrencyBoxFactory

java.lang.Object
  |
  +--com.siebel.rf.offline.branch.datastore.PersistedFactory
        |
        +--com.siebel.rf.offline.data.currencybox.CurrencyBoxFactory

public class CurrencyBoxFactory
extends PersistedFactory

The CurrencyBoxFactory class


Constructor Summary
CurrencyBoxFactory()
           
 
Method Summary
static java.util.Collection findByCompanyCodeAndBranchCodeAndCashBoxIdAndCurrency(java.lang.String companyCode, java.lang.String branchCode, java.lang.String cashBoxId, java.lang.String currency)
          Returns collection of CurrencyBox
static java.util.Collection findByCompanyCodeBranchCodeAndCashBoxId(java.lang.String companyCode, java.lang.String branchCode, java.lang.String cashBoxId)
          Returns collection of CurrencyBox
static CurrencyBox findByPrimaryKey(java.lang.String companyCode, java.lang.String branchCode, java.lang.String currencyBoxId, java.lang.String cashBoxId)
          Returns CurrencyBox
static CurrencyBox getCurrencyBox(java.lang.String companyCode, java.lang.String branchCode, java.lang.String currencyBoxId, java.lang.String cashBoxId)
          Returns CurrencyBox
static Persisted store(Persisted persisted)
          Updates CurrencyBox
 
Methods inherited from class com.siebel.rf.offline.branch.datastore.PersistedFactory
remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyBoxFactory

public CurrencyBoxFactory()
Method Detail

findByPrimaryKey

public static CurrencyBox findByPrimaryKey(java.lang.String companyCode,
                                           java.lang.String branchCode,
                                           java.lang.String currencyBoxId,
                                           java.lang.String cashBoxId)
                                    throws FinderException
Returns CurrencyBox
Parameters:
companyCode - String
branchCode - String
currencyBoxId - String
cashBoxId - String
Returns:
the CurrencyBox based on primary key attributes
Throws:
FinderException - This exception is thrown if CurrencyBox not founds.

getCurrencyBox

public static CurrencyBox getCurrencyBox(java.lang.String companyCode,
                                         java.lang.String branchCode,
                                         java.lang.String currencyBoxId,
                                         java.lang.String cashBoxId)
                                  throws com.bankframe.ejb.ProcessingErrorException
Returns CurrencyBox
Returns:
CurrencyBox based on companyCode, branchCode, currencyBoxId & cashBoxId
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.

findByCompanyCodeAndBranchCodeAndCashBoxIdAndCurrency

public static java.util.Collection findByCompanyCodeAndBranchCodeAndCashBoxIdAndCurrency(java.lang.String companyCode,
                                                                                         java.lang.String branchCode,
                                                                                         java.lang.String cashBoxId,
                                                                                         java.lang.String currency)
Returns collection of CurrencyBox
Parameters:
companyCode - String
branchCode - String
cashBoxId - String
currency - String
Returns:
the collection of CurrencyBox based on companyCode, branchCode, cashBoxId & currency

findByCompanyCodeBranchCodeAndCashBoxId

public static java.util.Collection findByCompanyCodeBranchCodeAndCashBoxId(java.lang.String companyCode,
                                                                           java.lang.String branchCode,
                                                                           java.lang.String cashBoxId)
Returns collection of CurrencyBox
Parameters:
companyCode - String
branchCode - String
cashBoxId - String
Returns:
the collection of CurrencyBox based on companyCode, branchCode & cashBoxId

store

public static Persisted store(Persisted persisted)
                       throws com.bankframe.validation.ValidationException
Updates CurrencyBox
Parameters:
persisted - Persisted
Returns:
CurrencyBox