Package org.dspace.eperson.dao.impl
Class SubscriptionDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<Subscription>
-
- org.dspace.eperson.dao.impl.SubscriptionDAOImpl
-
- All Implemented Interfaces:
GenericDAO<Subscription>,SubscriptionDAO
public class SubscriptionDAOImpl extends AbstractHibernateDAO<Subscription> implements SubscriptionDAO
Hibernate implementation of the Database Access Object interface class for the Subscription object. This class is responsible for all database calls for the Subscription object and is autowired by spring This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubscriptionDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteByCollection(Context context, Collection collection)voiddeleteByCollectionAndEPerson(Context context, Collection collection, EPerson eperson)voiddeleteByEPerson(Context context, EPerson eperson)List<Subscription>findAllOrderedByEPerson(Context context)SubscriptionfindByCollectionAndEPerson(Context context, EPerson eperson, Collection collection)List<Subscription>findByEPerson(Context context, EPerson eperson)-
Methods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findByEPerson
public List<Subscription> findByEPerson(Context context, EPerson eperson) throws SQLException
- Specified by:
findByEPersonin interfaceSubscriptionDAO- Throws:
SQLException
-
findByCollectionAndEPerson
public Subscription findByCollectionAndEPerson(Context context, EPerson eperson, Collection collection) throws SQLException
- Specified by:
findByCollectionAndEPersonin interfaceSubscriptionDAO- Throws:
SQLException
-
deleteByCollection
public void deleteByCollection(Context context, Collection collection) throws SQLException
- Specified by:
deleteByCollectionin interfaceSubscriptionDAO- Throws:
SQLException
-
deleteByEPerson
public void deleteByEPerson(Context context, EPerson eperson) throws SQLException
- Specified by:
deleteByEPersonin interfaceSubscriptionDAO- Throws:
SQLException
-
deleteByCollectionAndEPerson
public void deleteByCollectionAndEPerson(Context context, Collection collection, EPerson eperson) throws SQLException
- Specified by:
deleteByCollectionAndEPersonin interfaceSubscriptionDAO- Throws:
SQLException
-
findAllOrderedByEPerson
public List<Subscription> findAllOrderedByEPerson(Context context) throws SQLException
- Specified by:
findAllOrderedByEPersonin interfaceSubscriptionDAO- Throws:
SQLException
-
-