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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByCollection(Context context, Collection collection) findByCollection(Context context, Collection collection) findByCollectionAndRole(Context context, Collection collection, String role) findByGroup(Context context, Group group) Methods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Constructor Details
-
CollectionRoleDAOImpl
protected CollectionRoleDAOImpl()
-
-
Method Details
-
findByCollection
public List<CollectionRole> findByCollection(Context context, Collection collection) throws SQLException - Specified by:
findByCollectionin interfaceCollectionRoleDAO- Throws:
SQLException
-
findByGroup
- 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
- Specified by:
deleteByCollectionin interfaceCollectionRoleDAO- Throws:
SQLException
-