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 Constructor Description SupervisionOrderDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SupervisionOrder>findByItem(Context context, Item item)find all Supervision Orders related to the itemSupervisionOrderfindByItemAndGroup(Context context, Item item, Group group)find the Supervision Order related to the item and 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, 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
-
findByItem
public List<SupervisionOrder> findByItem(Context context, Item item) throws SQLException
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
-
-