public OfBizListIterator findListIteratorByCondition( final String entityType, final EntityCondition condition) { try { return new DefaultOfBizListIterator( delegatorInterface.findListIteratorByCondition(entityType, condition, null, null)); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
/** * Always close the iterator returned from this method when finished. * * @return OfBizListIterator */ public OfBizListIterator findListIteratorByCondition( final String entityName, final EntityCondition whereEntityCondition, final EntityCondition havingEntityCondition, final Collection fieldsToSelect, final List orderBy, final EntityFindOptions entityFindOptions) { try { return new DefaultOfBizListIterator( delegatorInterface.findListIteratorByCondition( entityName, whereEntityCondition, havingEntityCondition, fieldsToSelect, orderBy, entityFindOptions)); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }