First page Back Continue Last page Text

oracle adf workshop

Notes:


Code to Override the refreshFKInNewContainees() Method

// In SuppliersImpl.java

protected void refreshFKInNewContainees() {

if (newProductsBeforePost != null) {

Number newSupplierId = getSupplierId().getSequenceNumber();

/* Process the rowset of products that referenced the new supplier prior to posting, and update their SupplierId attribute to reflect the refreshed SupplierId value that was assigned by a database sequence during posting.*/

while (newProductsBeforePost.hasNext()) {

ProductsBaseImpl product =

(ProductsBaseImpl)newProductsBeforePost.next();

product.setSupplierId(newSupplierId);

}

closeNewProductRowSet();

}

}