Class CollectionRoleDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<CollectionRole>
-
- org.dspace.xmlworkflow.storedcomponents.dao.impl.CollectionRoleDAOImpl
-
- All Implemented Interfaces:
GenericDAO<CollectionRole>,CollectionRoleDAO
public class CollectionRoleDAOImpl extends AbstractHibernateDAO<CollectionRole> implements CollectionRoleDAO
Hibernate implementation of the Database Access Object interface class for the CollectionRole object. This class is responsible for all database calls for the CollectionRole object and is autowired by spring This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCollectionRoleDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteByCollection(Context context, Collection collection)List<CollectionRole>findByCollection(Context context, Collection collection)CollectionRolefindByCollectionAndRole(Context context, Collection collection, String role)List<CollectionRole>findByGroup(Context context, Group group)-
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, 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
-
findByCollection
public List<CollectionRole> findByCollection(Context context, Collection collection) throws SQLException
- Specified by:
findByCollectionin interfaceCollectionRoleDAO- Throws:
SQLException
-
findByGroup
public List<CollectionRole> findByGroup(Context context, Group group) throws SQLException
- Specified by:
findByGroupin interfaceCollectionRoleDAO- Parameters:
context- DSpace contextgroup- EPerson Group- Returns:
- the list of CollectionRole assigned to the specified group
- Throws:
SQLException
-
findByCollectionAndRole
public CollectionRole findByCollectionAndRole(Context context, Collection collection, String role) throws SQLException
- Specified by:
findByCollectionAndRolein interfaceCollectionRoleDAO- Throws:
SQLException
-
deleteByCollection
public void deleteByCollection(Context context, Collection collection) throws SQLException
- Specified by:
deleteByCollectionin interfaceCollectionRoleDAO- Throws:
SQLException
-
-