There is an easy way to find whether a row has been modified/deleted/created in ADF framework, This works only for Entity based view objects which are based on entity object.
Iterator tbiter =
EmployeeEOImpl.getDefinitionObject().getAllEntityInstancesIterator(getDBTransaction());
while (tbiter.hasNext())
{
EmployeeEOImpl eoImpl = (EmployeeEOImpl) tbiter.next();
if (eoImpl.getEntityState() == Entity.STATUS_NEW ||
eoImpl.getEntityState() == Entity.STATUS_MODIFIED ||
eoImpl.getEntityState() == Entity.STATUS_DELETED)
{
// Add your logic here
}
No comments:
Post a Comment