Sample Code from AM:
public void findModifiedRow(){
Iterator itr = EmpEOImpl.getDefinitionObject().getAllEntityInstancesIterator(getDBTransaction());
while (itr.hasNext()) {
EmpEOImpl eEOImpl = (EmpEOImpl) itr.next();
if (eEOImpl.getEntityState() == Entity.STATUS_NEW){
System.out.println("Emp "+eEOImpl.getEmpId()+"is a new Row");
}
if(eEOImpl.getEntityState() == Entity.STATUS_MODIFIED ){
System.out.println("Emp "+eEOImpl.getEmpId()+"is a modified Row");
}
if(eEOImpl.getEntityState() == Entity.STATUS_DELETED){
System.out.println("Emp "+eEOImpl.getEmpId()+"is a deleted Row");
}
}
}
public void findModifiedRow(){
Iterator itr = EmpEOImpl.getDefinitionObject().getAllEntityInstancesIterator(getDBTransaction());
while (itr.hasNext()) {
EmpEOImpl eEOImpl = (EmpEOImpl) itr.next();
if (eEOImpl.getEntityState() == Entity.STATUS_NEW){
System.out.println("Emp "+eEOImpl.getEmpId()+"is a new Row");
}
if(eEOImpl.getEntityState() == Entity.STATUS_MODIFIED ){
System.out.println("Emp "+eEOImpl.getEmpId()+"is a modified Row");
}
if(eEOImpl.getEntityState() == Entity.STATUS_DELETED){
System.out.println("Emp "+eEOImpl.getEmpId()+"is a deleted Row");
}
}
}