Saturday 18 June 2011

How to delete a record using Access Bean in WCS

Suppose you have to delete an order item from a order and you wana to do it by using acces bean then use the following code

OrderItemAccessBean orderItemAb = new OrderItemAccessBean();
orderItemAb.setInt_Key(orderItemId);
orderItemAb.getEJBRef().remove();

No comments:

Post a Comment

How to customize java.util.logging.Logger class to write logs in separate file than System.out.log in Websphere commerce/ HCL commerce)

/** * This method updated the passed in java.util.logging.Logger object with * custom file handler to write logs data form that class ...