Pending Operation

You can manage the pending state.

Customer customer = Customer.findById(101);
if (errorHappened) {
	customer.cancelPending();
}
else {
	customer.submitPending();
}
You can group multiple operations into a single transaction for improved performance:
// load the customer MBO with customer ID 100
Customer customer = Customer.findByPrimaryKey(100);
        
// Change phone number of that customer
customer.setPhone("8005551212");
        
// use one transaction to do save and submitPending
com.sybase.persistence.LocalTransaction tx = MyPackageDB.beginTransaction();
try
{
  customer.save();
  customer.submitPending();
  tx.commit();
}
catch (Exception e)
{
  tx.rollback();
}