Class POWrapper

  • All Implemented Interfaces:
    InvocationHandler

    public class POWrapper
    extends Object
    implements InvocationHandler
    Wrap a PO object to a given bean interface. Example
     public 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