org.zeroexchange.dao.resource
Class ResourceDAOImpl
java.lang.Object
org.zeroexchange.dao.HibernateSessionHolder
org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
org.zeroexchange.dao.BaseIntegerPKDAO<Resource>
org.zeroexchange.dao.resource.ResourceDAOImpl
- All Implemented Interfaces:
- DAO<Integer,Resource>, IntegerPKDAO<Resource>, ResourceDAO
public class ResourceDAOImpl
- extends BaseIntegerPKDAO<Resource>
- implements ResourceDAO
Implementation of the resource DAO.
- Author:
- black
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceDAOImpl
public ResourceDAOImpl()
getEntityClass
public Class<Resource> getEntityClass()
-
- Specified by:
getEntityClass
in class BaseHibernateDAO<Integer,Resource>
getUserRelatedResources
public ProcessorAwareDataSet<Resource> getUserRelatedResources(int userId)
- Return resources where the current user is the participant.
- Specified by:
getUserRelatedResources
in interface ResourceDAO
getUserResources
public Collection<Resource> getUserResources(int userId,
Set<Integer> resourcesIds)
- Return resources belonging to the current user by the resources ids.
- Specified by:
getUserResources
in interface ResourceDAO
getContractResources
public ProcessorAwareDataSet<Resource> getContractResources(Integer contractId)
- Description copied from interface:
ResourceDAO
- Returns contract's resources.
- Specified by:
getContractResources
in interface ResourceDAO
Copyright © 2013. All Rights Reserved.