public class ItemDAOImpl extends AbstractHibernateDSODAO<Item> implements ItemDAO
| Modifier | Constructor and Description |
|---|---|
protected |
ItemDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
countItems(Context context,
boolean includeArchived,
boolean includeWithdrawn)
Count number of items based on specific status flags
|
int |
countItems(Context context,
Collection collection,
boolean includeArchived,
boolean includeWithdrawn)
Count number of items in a given collection
|
int |
countItems(Context context,
List<Collection> collections,
boolean includeArchived,
boolean includeWithdrawn)
Count number of unique items across several collections at once.
|
int |
countRows(Context context)
Count total number of items (rows in item table)
|
Iterator<Item> |
findAll(Context context,
boolean archived) |
Iterator<Item> |
findAll(Context context,
boolean archived,
boolean withdrawn) |
Iterator<Item> |
findAll(Context context,
boolean archived,
boolean withdrawn,
boolean discoverable,
Date lastModified)
Get all Items installed or withdrawn, discoverable, and modified since a Date.
|
Iterator<Item> |
findAllByCollection(Context context,
Collection collection) |
Iterator<Item> |
findArchivedByCollection(Context context,
Collection collection,
Integer limit,
Integer offset) |
Iterator<Item> |
findByAuthorityValue(Context context,
MetadataField metadataField,
String authority,
boolean inArchive) |
Iterator<Item> |
findByLastModifiedSince(Context context,
Date since)
Find all Items modified since a Date.
|
Iterator<Item> |
findByMetadataField(Context context,
MetadataField metadataField,
String value,
boolean inArchive) |
Iterator<Item> |
findByMetadataQuery(Context context,
List<List<MetadataField>> listFieldList,
List<String> query_op,
List<String> query_val,
List<UUID> collectionUuids,
String regexClause,
int offset,
int limit) |
Iterator<Item> |
findBySubmitter(Context context,
EPerson eperson) |
Iterator<Item> |
findBySubmitter(Context context,
EPerson eperson,
MetadataField metadataField,
int limit) |
addMetadataLeftJoin, addMetadataSortQuery, addMetadataValueWhereQuery, findByLegacyIdcount, count, countLong, create, createCriteria, createCriteria, createQuery, delete, findAll, findByID, findByID, findMany, findMany, findUnique, getHibernateSession, iterate, list, list, save, singleResult, singleResult, uniqueResult, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindByLegacyIdcreate, delete, findAll, findByID, findByID, findMany, findUnique, savepublic Iterator<Item> findAll(Context context, boolean archived) throws SQLException
findAll in interface ItemDAOSQLExceptionpublic Iterator<Item> findAll(Context context, boolean archived, boolean withdrawn) throws SQLException
findAll in interface ItemDAOSQLExceptionpublic Iterator<Item> findAll(Context context, boolean archived, boolean withdrawn, boolean discoverable, Date lastModified) throws SQLException
ItemDAOfindAll in interface ItemDAOcontext - contextarchived - whether to find archivedwithdrawn - whether to find withdrawndiscoverable - whether to find discoverablelastModified - earliest interesting last-modified date.SQLException - if database errorpublic Iterator<Item> findBySubmitter(Context context, EPerson eperson) throws SQLException
findBySubmitter in interface ItemDAOSQLExceptionpublic Iterator<Item> findBySubmitter(Context context, EPerson eperson, MetadataField metadataField, int limit) throws SQLException
findBySubmitter in interface ItemDAOSQLExceptionpublic Iterator<Item> findByMetadataField(Context context, MetadataField metadataField, String value, boolean inArchive) throws SQLException
findByMetadataField in interface ItemDAOSQLExceptionpublic Iterator<Item> findByMetadataQuery(Context context, List<List<MetadataField>> listFieldList, List<String> query_op, List<String> query_val, List<UUID> collectionUuids, String regexClause, int offset, int limit) throws SQLException
findByMetadataQuery in interface ItemDAOSQLExceptionpublic Iterator<Item> findByAuthorityValue(Context context, MetadataField metadataField, String authority, boolean inArchive) throws SQLException
findByAuthorityValue in interface ItemDAOSQLExceptionpublic Iterator<Item> findArchivedByCollection(Context context, Collection collection, Integer limit, Integer offset) throws SQLException
findArchivedByCollection in interface ItemDAOSQLExceptionpublic Iterator<Item> findAllByCollection(Context context, Collection collection) throws SQLException
findAllByCollection in interface ItemDAOSQLExceptionpublic int countItems(Context context, Collection collection, boolean includeArchived, boolean includeWithdrawn) throws SQLException
ItemDAOcountItems in interface ItemDAOcontext - contextcollection - the collectionincludeArchived - whether to include archived items in countincludeWithdrawn - whether to include withdrawn items in countSQLException - if database errorpublic int countItems(Context context, List<Collection> collections, boolean includeArchived, boolean includeWithdrawn) throws SQLException
ItemDAOCommunityService.getAllCollections(Context,Community)
to determine the unique number of items in a Community.countItems in interface ItemDAOcontext - contextcollections - the list of collectionsincludeArchived - whether to include archived items in countincludeWithdrawn - whether to include withdrawn items in countSQLException - if database errorpublic Iterator<Item> findByLastModifiedSince(Context context, Date since) throws SQLException
ItemDAOfindByLastModifiedSince in interface ItemDAOcontext - Contextsince - Earliest interesting last-modified date.SQLException - if database errorpublic int countRows(Context context) throws SQLException
ItemDAOcountRows in interface ItemDAOcontext - contextSQLException - if database errorpublic int countItems(Context context, boolean includeArchived, boolean includeWithdrawn) throws SQLException
ItemDAOcountItems in interface ItemDAOcontext - contextincludeArchived - whether to include archived items in countincludeWithdrawn - whether to include withdrawn items in countSQLException - if database errorCopyright © 2016 DuraSpace. All rights reserved.