Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * возращает кол-во объектов на сайте с заданным статусом если @param status
- * равен WorkflowConstants.STATUS_ANY - то работает как countByGroup
- */
- @Override
- public int countByGroupStatus(long groupId, int status) throws SystemException {
- if (status == WorkflowConstants.STATUS_ANY) {
- return petPersistence.filterCountByGroup(groupId);
- } else {
- return petPersistence.filterCountByGroupStatus(groupId, status);
- }
- }
- /**
- * возращает объекты сайта с заданным статусом если @param status равен
- * WorkflowConstants.STATUS_ANY - то работает как getByGroup
- */
- @Override
- public List<Pet> getByGroupStatus(long groupId, int status, int start, int end) throws SystemException {
- if (status == WorkflowConstants.STATUS_ANY) {
- return petPersistence.filterFindByGroup(groupId, start, end);
- } else {
- return petPersistence.filterFindByGroupStatus(groupId, status, start, end);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement