Package com.portal.app.cc.comp
Class PCCUtilBeanImpl
java.lang.Object
com.portal.app.cc.comp.PCCUtilBeanImpl
General utility controller class
The following opcodes are used by this controller:
PortalOp.CUST_FIND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendModelHandle
(PModelHandle mhExisting, PModelHandle mhAdd) getAccount
(String accNum) Obtain the account poid using PCM_OP_CUST_FIND, given the account numberRetrieve the bill poid, given the bill numbergetBillInfo
(PModelHandle model) getObject
(PModelHandle poidHandle, boolean asPinFldResults) Retrieves an object, given the object poid by using the READ_OBJ opcode.getRecords
(PModelHandle mh, Object[] fields) Extracts the fields inside an FList specified by the pmodel handle and stores each record of data (set of fields) in a vector, and each vector in an array list that is finally returned.getWholeObject
(PModelHandle poidHandle, boolean asPinFldResults) Retrieve an entire object, given the object poid.
-
Constructor Details
-
PCCUtilBeanImpl
public PCCUtilBeanImpl()
-
-
Method Details
-
getAccount
Obtain the account poid using PCM_OP_CUST_FIND, given the account number- Parameters:
accNum
- account number- Throws:
PInfranetException
-
getBill
Retrieve the bill poid, given the bill number- Parameters:
billNum
- bill number- Throws:
PInfranetException
-
getObject
public PModelHandle getObject(PModelHandle poidHandle, boolean asPinFldResults) throws PInfranetException Retrieves an object, given the object poid by using the READ_OBJ opcode.- Parameters:
poidHandle
- PModelHandle for the poidisPinFldResults
-true
if return type is as the pmodel handle of PinFldResults enclosing the opcode outputfalse
if return type as the pmodel handle of opcode output.- Throws:
PInfranetException
-
getWholeObject
public PModelHandle getWholeObject(PModelHandle poidHandle, boolean asPinFldResults) throws PInfranetException Retrieve an entire object, given the object poid.- Parameters:
poidHandle
- PModelHandle for the poidasPinFldResults
-true
if return type is as the pmodel handle of PinFldResults,false
if return type as the pmodel handle of opcode output.- Throws:
PInfranetException
-
getRecords
Extracts the fields inside an FList specified by the pmodel handle and stores each record of data (set of fields) in a vector, and each vector in an array list that is finally returned. This api is useful to append the PIASpecSpreadSheet with data.- Parameters:
mh
- model handlefields
- interested fields for display in the table
-
getBillInfo
- Throws:
RemoteException
-
appendModelHandle
public PModelHandle appendModelHandle(PModelHandle mhExisting, PModelHandle mhAdd) throws RemoteException - Throws:
RemoteException
-