First page Back Continue Last page Graphics

Override postChanges() in ProductsImpl.java


Notes:

Override postChanges() in ProductsImpl.java

The code in the following slide tests whether the entity that is being posted is in the STATUS_NEW or STATUS_MODIFIED state. If it is, it retrieves the related product using the getSupplier() association accessor. If the related Suppliers row also has a post-state of STATUS_NEW, it first calls postChanges() on the related parent row before calling super.postChanges() to perform its own DML.