Package org.adempiere.model
Class POWrapper
- java.lang.Object
-
- org.adempiere.model.POWrapper
-
- All Implemented Interfaces:
InvocationHandler
public class POWrapper extends Object implements InvocationHandler
Wrap a PO object to a given bean interface. Examplepublic interface I_C_Invoice_Customized { public int getCustomValue1(); public void setCustomValue1(int customValue1); public String getCustomString1(); public void setCustomString1(String customString1); } .... MInvoice invoice = ......; I_C_Invoice_Customized invoiceCustomized = POWrapper.create(invoice, I_C_Invoice_Customized.class); invoiceCustomized.setCustomValue1(12345); invoiceCustomized.setCustomString1("my test string"); invoice.saveEx();
- Author:
- Teo Sarca, teo.sarca@gmail.com