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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CashBoxFactory
public CashBoxFactory()
findByPrimaryKey
public static CashBox findByPrimaryKey(java.lang.String companyCode,
java.lang.String cashBoxId,
java.lang.String branchCode)
throws FinderException
- Returns CashBox
- Parameters:
companyCode
- StringcashBoxId
- StringbranchCode
- 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
- StringbranchCode
- 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
- StringbranchCode
- StringcashBoxStatusIndicator
- StringcashBoxType
- StringcashBoxOpen
- 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
- StringbranchCode
- StringcashBoxType
- StringcashBoxOpen
- 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
- StringbranchCode
- StringcashBoxStatusIndicator
- StringcashBoxType
- 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
- StringcashBoxId
- StringbranchCode
- 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