Академический Документы
Профессиональный Документы
Культура Документы
Practical Example
1. Create a table as follows:
2. Create Internal Business Service Object (J55TBLE)
Follow all step as we have created published VO (last wizard from looks like as below)
d. Select all needed parameters and generate accessors.
d. Generate the accessors for the for the members ( right click on white space and select
"Generate Accessors")
e. Select members for which you want to build accessors ( I selected all):
The file becomes:
The difference is: Right side shows new code for getters and setters functions, whereas there are not
such functions on left side.
f. Now pass value from published VO members to internal VO members.
The mapping between the published value object and the internal value object takes place in the
published value object. You create a method for mapping fields from the published value object to the
corresponding fields of the internal value object.
If you call the Formatter utility or a business service utility when mapping data from published to
internal value objects, Oracle recommends that you create a method named mapFromPublished that
returns an E1MessageList. The mapFromPublished method takes at a minimum the internal value object
as a parameter. This method holds all of the mappings between the published value object and the
internal value object. If a message could be returned to the published business service, you should
create a method for mappings. You should always create a method to return messages when you call a
business service utility or the Formatter utility during mapping. If no messages would be returned from
mappings, you can have the method return void.
Write the follow code in "Published VO" and import all required libraries:
if (this.getDocumentOrderInvoiceE()!= null)
internalVO.setF55TBLE_DOCO(new
MathNumeric(this.getDocumentOrderInvoiceE()));
internalVO.setF55TBLE_KCOO(this.getCompanyKeyOrderNo());
internalVO.setF55TBLE_DCTO(this.getOrderType());
internalVO.setF55TBLE_URCD(this.getUserReservedCode());
if(this.getUserReservedNumber()!=null)
internalVO.setF55TBLE_URAB(new MathNumeric
(this.getUserReservedNumber()));
if(this.getUserReservedAmount()!=null)
internalVO.setF55TBLE_URAT(new MathNumeric
(this.getUserReservedAmount()));
internalVO.setF55TBLE_EV01(this.getEverestEventPoint01());
return (message);
Imported statements:
import oracle.e1.bssv.J55TBLE.valueobject.AddF55TBLEInternal;
import oracle.e1.bssvfoundation.base.IContext;
import oracle.e1.bssvfoundation.util.E1MessageList;
import oracle.e1.bssvfoundation.util.MathNumeric;
5. Create Business Service class under J55TBLE Project in JDeveloper.