Package org.dspace.supervision.dao.impl
Class SupervisionOrderDaoImpl
java.lang.Object
org.dspace.core.AbstractHibernateDAO<SupervisionOrder>
org.dspace.supervision.dao.impl.SupervisionOrderDaoImpl
- All Implemented Interfaces:
GenericDAO<SupervisionOrder>,SupervisionOrderDao
public class SupervisionOrderDaoImpl
extends AbstractHibernateDAO<SupervisionOrder>
implements SupervisionOrderDao
Hibernate implementation of the Database Access Object interface class for the SupervisionOrder object.
This class is responsible for all database calls for the SupervisionOrder object
and is autowired by spring
- Author:
- Mohamed Eskander (mohamed.eskander at 4science dot it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByItem(Context context, Item item) find all Supervision Orders related to the itemfindByItemAndGroup(Context context, Item item, Group group) find the Supervision Order related to the item and groupMethods 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
-
SupervisionOrderDaoImpl
public SupervisionOrderDaoImpl()
-
-
Method Details
-
findByItem
Description copied from interface:SupervisionOrderDaofind all Supervision Orders related to the item- Specified by:
findByItemin interfaceSupervisionOrderDao- Parameters:
context- The DSpace contextitem- the item- Returns:
- the Supervision Orders related to the item
- Throws:
SQLException- If something goes wrong in the database
-
findByItemAndGroup
public SupervisionOrder findByItemAndGroup(Context context, Item item, Group group) throws SQLException Description copied from interface:SupervisionOrderDaofind the Supervision Order related to the item and group- Specified by:
findByItemAndGroupin interfaceSupervisionOrderDao- Parameters:
context- The DSpace contextitem- the itemgroup- the group- Returns:
- the Supervision Order related to the item and group
- Throws:
SQLException- If something goes wrong in the database
-