com.siebel.rf.offline.data.negotiableinstrument
Class NegotiableInstrumentFactory

java.lang.Object
  |
  +--com.siebel.rf.offline.branch.datastore.PersistedFactory
        |
        +--com.siebel.rf.offline.data.negotiableinstrument.NegotiableInstrumentFactory

public class NegotiableInstrumentFactory
extends PersistedFactory

The NegotiableInstrumentFactory class


Constructor Summary
NegotiableInstrumentFactory()
           
 
Method Summary
static java.util.Collection findByBranchCodeAccountNumberNegotiableInstrumentTypeAndInstrumentStatus(java.lang.String issuingBranchCode, java.lang.String issuingAccountNumber, java.lang.String negotiableInstrumentType, java.lang.String instrumentStatus)
          Returns collection of NegotiableInstruments
static java.util.Collection findByBranchCodeIssuingAccountNumberNegotiableInstrumentTypeAndEffectiveDateRange(java.lang.String branchCode, java.lang.String issuingAccountNumber, java.lang.String negotiableInstrumentType, java.lang.String effectiveDate)
          Returns collection of NegotiableInstruments
static java.util.Collection findByCompanyCodeAndBranchCodeAndNegotiableInstrumentBoxId(java.lang.String companyCode, java.lang.String branchCode, java.lang.String negotiableInstrumentBoxId)
          Returns collection of NegotiableInstruments
static java.util.Collection findByCompanyCodeBranchCodeCashBoxIdBatchIdAndLodgedDate(java.lang.String companyCode, java.lang.String branchCode, java.lang.String cashBoxId, java.lang.String batchId, java.lang.String lodgedDate)
          Returns collection of NegotiableInstruments
static java.util.Collection findByIssuingBranchCodeAndIssuingAccountNumberAndChequebookNumberAndInstrumentStatus(java.lang.String issuingBranchCode, java.lang.String issuingAccountNumber, java.lang.String chequebookNumber, java.lang.String instrumentStatus)
          Returns collection of NegotiableInstruments
static java.util.Collection findByIssuingBranchCodeAndIssuingAccountNumberAndNegotiableInstrumentTypeAndSerialNumber(java.lang.String issuingBranchCode, java.lang.String issuingAccountNumber, java.lang.String negotiableInstrumentType, java.lang.String serialNumber)
          Returns collection of NegotiableInstruments
static java.util.Collection findByIssuingBranchCodeIssuingAccountNumberNegotiableInstrumentTypeAndCheckRange(java.lang.String issuingBranchCode, java.lang.String issuingAccountNumber, java.lang.String negotiableInstrumentType, java.lang.String chequebookNumber)
          Returns collection of NegotiableInstruments
static NegotiableInstrument findByPrimaryKey(java.lang.String companyCode, java.lang.String serialNumber, java.lang.String issuingBranchCode, java.lang.String issuingAccountNumber)
          Returns NegotiableInstrument
static NegotiableInstrument getNegotiableInstrument(java.lang.String companyCode, java.lang.String serialNumber, java.lang.String issuingBranchCode, java.lang.String issuingAccountNumber)
          Returns NegotiableInstrument
static Persisted store(Persisted persisted)
          Updates the NegotiableInstrument
 
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

NegotiableInstrumentFactory

public NegotiableInstrumentFactory()
Method Detail

findByPrimaryKey

public static NegotiableInstrument findByPrimaryKey(java.lang.String companyCode,
                                                    java.lang.String serialNumber,
                                                    java.lang.String issuingBranchCode,
                                                    java.lang.String issuingAccountNumber)
                                             throws FinderException
Returns NegotiableInstrument
Parameters:
companyCode - String
serialNumber - String
issuingBranchCode - String
issuingAccountNumber - String
Returns:
NegotiableInstrument based on primary key attributes
Throws:
FinderException - This exception is thrown if NegotiableInstrument not found

getNegotiableInstrument

public static NegotiableInstrument getNegotiableInstrument(java.lang.String companyCode,
                                                           java.lang.String serialNumber,
                                                           java.lang.String issuingBranchCode,
                                                           java.lang.String issuingAccountNumber)
                                                    throws com.bankframe.ejb.ProcessingErrorException
Returns NegotiableInstrument
Parameters:
companyCode - String
serialNumber - String
issuingBranchCode - String
issuingAccountNumber - String
Returns:
NegotiableInstrument based on companyCode, serialNumber, issuingBranchCode and issuingAccountNumber
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails

findByIssuingBranchCodeAndIssuingAccountNumberAndNegotiableInstrumentTypeAndSerialNumber

public static java.util.Collection findByIssuingBranchCodeAndIssuingAccountNumberAndNegotiableInstrumentTypeAndSerialNumber(java.lang.String issuingBranchCode,
                                                                                                                            java.lang.String issuingAccountNumber,
                                                                                                                            java.lang.String negotiableInstrumentType,
                                                                                                                            java.lang.String serialNumber)
Returns collection of NegotiableInstruments
Parameters:
issuingBranchCode - String
issuingAccountNumber - String
negotiableInstrumentType - String
serialNumber - String
Returns:
collection of NegotiableInstruments based on issuingBranchCode, issuingAccountNumber, negotiableInstrumentType and serialNumber

findByCompanyCodeBranchCodeCashBoxIdBatchIdAndLodgedDate

public static java.util.Collection findByCompanyCodeBranchCodeCashBoxIdBatchIdAndLodgedDate(java.lang.String companyCode,
                                                                                            java.lang.String branchCode,
                                                                                            java.lang.String cashBoxId,
                                                                                            java.lang.String batchId,
                                                                                            java.lang.String lodgedDate)
Returns collection of NegotiableInstruments
Parameters:
companyCode - String
branchCode - String
cashBoxId - String
batchId - String
lodgedDate - String
Returns:
collection of NegotiableInstruments based on companyCode, branchCode, cashBoxId, batchId and lodgedDate

findByBranchCodeIssuingAccountNumberNegotiableInstrumentTypeAndEffectiveDateRange

public static java.util.Collection findByBranchCodeIssuingAccountNumberNegotiableInstrumentTypeAndEffectiveDateRange(java.lang.String branchCode,
                                                                                                                     java.lang.String issuingAccountNumber,
                                                                                                                     java.lang.String negotiableInstrumentType,
                                                                                                                     java.lang.String effectiveDate)
Returns collection of NegotiableInstruments
Parameters:
branchCode - String
issuingAccountNumber - String
negotiableInstrumentType - String
effectiveDate - String
Returns:
collection of NegotiableInstruments based on branchCode, issuingAccountNumber, negotiableInstrumentType and effectiveDate

findByIssuingBranchCodeIssuingAccountNumberNegotiableInstrumentTypeAndCheckRange

public static java.util.Collection findByIssuingBranchCodeIssuingAccountNumberNegotiableInstrumentTypeAndCheckRange(java.lang.String issuingBranchCode,
                                                                                                                    java.lang.String issuingAccountNumber,
                                                                                                                    java.lang.String negotiableInstrumentType,
                                                                                                                    java.lang.String chequebookNumber)
Returns collection of NegotiableInstruments
Parameters:
issuingBranchCode - String
issuingAccountNumber - String
negotiableInstrumentType - String
chequebookNumber - String
Returns:
collection of NegotiableInstruments based on issuingBranchCode, issuingAccountNumber, negotiableInstrumentType and chequebookNumber

findByIssuingBranchCodeAndIssuingAccountNumberAndChequebookNumberAndInstrumentStatus

public static java.util.Collection findByIssuingBranchCodeAndIssuingAccountNumberAndChequebookNumberAndInstrumentStatus(java.lang.String issuingBranchCode,
                                                                                                                        java.lang.String issuingAccountNumber,
                                                                                                                        java.lang.String chequebookNumber,
                                                                                                                        java.lang.String instrumentStatus)
Returns collection of NegotiableInstruments
Parameters:
issuingBranchCode - String
issuingAccountNumber - String
chequebookNumber - String
instrumentStatus - String
Returns:
collection of NegotiableInstruments based on issuingBranchCode, issuingAccountNumber, chequebookNumber and instrumentStatus

findByBranchCodeAccountNumberNegotiableInstrumentTypeAndInstrumentStatus

public static java.util.Collection findByBranchCodeAccountNumberNegotiableInstrumentTypeAndInstrumentStatus(java.lang.String issuingBranchCode,
                                                                                                            java.lang.String issuingAccountNumber,
                                                                                                            java.lang.String negotiableInstrumentType,
                                                                                                            java.lang.String instrumentStatus)
Returns collection of NegotiableInstruments
Parameters:
issuingBranchCode - String
issuingAccountNumber - String
negotiableInstrumentType - String
instrumentStatus - String
Returns:
collection of NegotiableInstruments based on issuingBranchCode, issuingAccountNumber, negotiableInstrumentType and instrumentStatus

findByCompanyCodeAndBranchCodeAndNegotiableInstrumentBoxId

public static java.util.Collection findByCompanyCodeAndBranchCodeAndNegotiableInstrumentBoxId(java.lang.String companyCode,
                                                                                              java.lang.String branchCode,
                                                                                              java.lang.String negotiableInstrumentBoxId)
Returns collection of NegotiableInstruments
Parameters:
companyCode - String
branchCode - String
negotiableInstrumentBoxId - String
Returns:
collection of NegotiableInstruments based on companyCode, branchCode and negotiableInstrumentBoxId

store

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