com.siebel.rf.offline.data.branch
Class BranchFactory
java.lang.Object
|
+--com.siebel.rf.offline.branch.datastore.PersistedFactory
|
+--com.siebel.rf.offline.data.branch.BranchFactory
- public class BranchFactory
- extends PersistedFactory
The BranchFactory class
Method Summary |
static java.util.Collection |
findByCompanyCode(java.lang.String companyCode)
Returns collection of Branch(s) |
static java.util.Collection |
findByCompanyCodeAndBranchCode(java.lang.String companyCode,
java.lang.String branchCode)
Returns collection of Branch(s) |
static Branch |
findByPrimaryKey(java.lang.String companyCode,
java.lang.String branchCode)
Returns Branch |
static Branch |
getBranch(java.lang.String companyCode,
java.lang.String branchCode)
Returns instance of the Branch |
static Persisted |
store(Persisted persisted)
Updates Branch |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BranchFactory
public BranchFactory()
findByPrimaryKey
public static Branch findByPrimaryKey(java.lang.String companyCode,
java.lang.String branchCode)
throws FinderException
- Returns Branch
- Parameters:
companyCode
- StringbranchCode
- String- Returns:
- the Branch based on primary key attributes
- Throws:
FinderException
- This exception is thrown if branch not found
getBranch
public static Branch getBranch(java.lang.String companyCode,
java.lang.String branchCode)
throws com.bankframe.ejb.ProcessingErrorException
- Returns instance of the Branch
- Parameters:
companyCode
- StringbranchCode
- String- Returns:
- an instance of Branch for a company based on companyCode and branchCode
- Throws:
com.bankframe.ejb.ProcessingErrorException
- This exception is thrown if processing fails.
findByCompanyCodeAndBranchCode
public static java.util.Collection findByCompanyCodeAndBranchCode(java.lang.String companyCode,
java.lang.String branchCode)
- Returns collection of Branch(s)
- Parameters:
companyCode
- StringbranchCode
- String- Returns:
- the collection of Branch(s) based on companyCode and branchCode
findByCompanyCode
public static java.util.Collection findByCompanyCode(java.lang.String companyCode)
- Returns collection of Branch(s)
- Parameters:
companyCode
- String- Returns:
- the collection of Branch(s) based on companyCode
store
public static Persisted store(Persisted persisted)
throws com.bankframe.validation.ValidationException
- Updates Branch
- Parameters:
persisted
- Persisted- Returns:
- Branch