org.zeroexchange.dao.collaboration
Class ContractDAOImpl
java.lang.Object
  
org.zeroexchange.dao.HibernateSessionHolder
      
org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
          
org.zeroexchange.dao.BaseIntegerPKDAO<Contract>
              
org.zeroexchange.dao.collaboration.ContractDAOImpl
- All Implemented Interfaces: 
 - ContractDAO, DAO<Integer,Contract>, IntegerPKDAO<Contract>
 
public class ContractDAOImpl
- extends BaseIntegerPKDAO<Contract>
- implements ContractDAO
  
The DAO manipulated with the contract objects.
- Author:
 
  - black
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
INVITATIONS_ALIAS
protected static final String INVITATIONS_ALIAS
- See Also:
 - Constant Field Values
 
EFFECTIVEUSERS_ALIAS
protected static final String EFFECTIVEUSERS_ALIAS
- See Also:
 - Constant Field Values
 
ContractDAOImpl
public ContractDAOImpl()
getEntityClass
public Class<Contract> getEntityClass()
- 
- Specified by:
 getEntityClass in class BaseHibernateDAO<Integer,Contract>
 
 
 
getAvailableContracts
public ProcessorAwareDataSet<Contract> getAvailableContracts(User viewer)
- Returns data set for iteration through the available contract.
- Specified by:
 getAvailableContracts in interface ContractDAO
 
- Parameters:
 viewer - TODO
 
 
getUsers
public Collection<User> getUsers(Integer contractId)
- Returns all users which resources are registered in the contract.
- Specified by:
 getUsers in interface ContractDAO
 
 
 
getAllAcceptedContractUsers
public Collection<User> getAllAcceptedContractUsers(Integer contractId)
- Returns all accepted contract users.
- Specified by:
 getAllAcceptedContractUsers in interface ContractDAO
 
 
 
getUserContractsNumber
public long getUserContractsNumber(Integer userId)
- Returns the number of contracts where the specified user
 is a participant.
- Specified by:
 getUserContractsNumber in interface ContractDAO
 
 
 
Copyright © 2013. All Rights Reserved.