mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 05:23:14 +00:00
moving queries to DAOs
This commit is contained in:
@@ -1152,4 +1152,19 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
|
||||
{
|
||||
return itemDAO.findByLastModifiedSince(context, last);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countTotal(Context context) throws SQLException {
|
||||
return itemDAO.countRows(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getNotArchivedItemsCount(Context context) throws SQLException {
|
||||
return itemDAO.countNotArchived(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countWithdrawnItems(Context context) throws SQLException {
|
||||
return itemDAO.countWithdrawn(context);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user