com.siebel.rf.offline.data.cashbox
Class CashBoxFactory

java.lang.Object
  |
  +--com.siebel.rf.offline.branch.datastore.PersistedFactory
        |
        +--com.siebel.rf.offline.data.cashbox.CashBoxFactory

public class CashBoxFactory
extends PersistedFactory

The CashBoxFactory class


Constructor Summary
CashBoxFactory()
           
 
Method Summary
static java.util.Collection findByCompanyCodeAndBranchCode(java.lang.String companyCode, java.lang.String branchCode)
          Returns collection of CashBox(s)
static java.util.Collection findByCompanyCodeAndBranchCodeAndCashBoxStatusIndicatorAndCashBoxTypeAndCashBoxMode(java.lang.String companyCode, java.lang.String branchCode, java.lang.String cashBoxStatusIndicator, java.lang.String cashBoxType, java.lang.String cashBoxMode)
          Returns collection of CashBox(s)
static java.util.Collection findByCompanyCodeAndBranchCodeAndCashBoxTypeAndCashBoxOpen(java.lang.String companyCode, java.lang.String branchCode, java.lang.String cashBoxType, java.lang.String cashBoxOpen)
          Returns collection of CashBox(s)
static java.util.Collection findByCompanyCodeBranchCodeCashBoxStatusIndicatorAndCashBoxType(java.lang.String companyCode, java.lang.String branchCode, java.lang.String cashBoxStatusIndicator, java.lang.String cashBoxType)
          Returns collection of CashBox(s)
static CashBox findByPrimaryKey(java.lang.String companyCode, java.lang.String cashBoxId, java.lang.String branchCode)
          Returns CashBox
static CashBox getCashBox(java.lang.String companyCode, java.lang.String cashBoxId, java.lang.String branchCode)
          Returns CashBox
static Persisted store(Persisted persisted)
          Updates CashBox
 
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

CashBoxFactory

public CashBoxFactory()
Method Detail

findByPrimaryKey

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

findByCompanyCodeAndBranchCode

public static java.util.Collection findByCompanyCodeAndBranchCode(java.lang.String companyCode,
                                                                  java.lang.String branchCode)
Returns collection of CashBox(s)
Parameters:
companyCode - String
branchCode - String
Returns:
the collection of CashBox(s) based on companyCode & branchCode

findByCompanyCodeAndBranchCodeAndCashBoxStatusIndicatorAndCashBoxTypeAndCashBoxMode

public static java.util.Collection findByCompanyCodeAndBranchCodeAndCashBoxStatusIndicatorAndCashBoxTypeAndCashBoxMode(java.lang.String companyCode,
                                                                                                                       java.lang.String branchCode,
                                                                                                                       java.lang.String cashBoxStatusIndicator,
                                                                                                                       java.lang.String cashBoxType,
                                                                                                                       java.lang.String cashBoxMode)
Returns collection of CashBox(s)
Parameters:
companyCode - String
branchCode - String
cashBoxStatusIndicator - String
cashBoxType - String
cashBoxOpen - String
Returns:
the collection of CashBox(s) based on companyCode, branchCode, cashBoxStatusIndicator, cashBoxType & cashBoxOpen

findByCompanyCodeAndBranchCodeAndCashBoxTypeAndCashBoxOpen

public static java.util.Collection findByCompanyCodeAndBranchCodeAndCashBoxTypeAndCashBoxOpen(java.lang.String companyCode,
                                                                                              java.lang.String branchCode,
                                                                                              java.lang.String cashBoxType,
                                                                                              java.lang.String cashBoxOpen)
Returns collection of CashBox(s)
Parameters:
companyCode - String
branchCode - String
cashBoxType - String
cashBoxOpen - String
Returns:
the collection of CashBox(s) based on companyCode, branchCode, cashBoxType & cashBoxOpen

findByCompanyCodeBranchCodeCashBoxStatusIndicatorAndCashBoxType

public static java.util.Collection findByCompanyCodeBranchCodeCashBoxStatusIndicatorAndCashBoxType(java.lang.String companyCode,
                                                                                                   java.lang.String branchCode,
                                                                                                   java.lang.String cashBoxStatusIndicator,
                                                                                                   java.lang.String cashBoxType)
Returns collection of CashBox(s)
Parameters:
companyCode - String
branchCode - String
cashBoxStatusIndicator - String
cashBoxType - String
Returns:
the collection of CashBox(s) based on companyCode, branchCode, cashBoxStatusIndicator, cashBoxType & cashBoxOpen

getCashBox

public static CashBox getCashBox(java.lang.String companyCode,
                                 java.lang.String cashBoxId,
                                 java.lang.String branchCode)
                          throws com.bankframe.ejb.ProcessingErrorException
Returns CashBox
Parameters:
companyCode - String
cashBoxId - String
branchCode - String
Returns:
an instance of the CashBox for a User
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails

store

public static Persisted store(Persisted persisted)
                       throws com.bankframe.validation.ValidationException
Updates CashBox
Parameters:
persisted - Persisted
Returns:
the CashBox
Throws:
com.bankframe.validation.ValidationException - This exception is thrown if validation fails