org.zeroexchange.dao.resource
Interface ResourceDAO

All Superinterfaces:
DAO<Integer,Resource>, IntegerPKDAO<Resource>
All Known Implementing Classes:
ResourceDAOImpl

public interface ResourceDAO
extends IntegerPKDAO<Resource>

The contract DAO.

Author:
black

Method Summary
 ProcessorAwareDataSet<Resource> getContractResources(Integer contractId)
          Returns contract's resources.
 ProcessorAwareDataSet<Resource> getUserRelatedResources(int userId)
          Return resources where the current user is the participant.
 Collection<Resource> getUserResources(int userId, Set<Integer> resourcesIds)
          Return resources belonging to the current user by the resources ids.
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Method Detail

getUserRelatedResources

ProcessorAwareDataSet<Resource> getUserRelatedResources(int userId)
Return resources where the current user is the participant.


getUserResources

Collection<Resource> getUserResources(int userId,
                                      Set<Integer> resourcesIds)
Return resources belonging to the current user by the resources ids.


getContractResources

ProcessorAwareDataSet<Resource> getContractResources(Integer contractId)
Returns contract's resources.



Copyright © 2013. All Rights Reserved.