|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.dao.HibernateSessionHolder org.zeroexchange.dao.BaseHibernateDAO<Integer,T> org.zeroexchange.dao.BaseIntegerPKDAO<T> org.zeroexchange.dao.resource.ResourceTenderDAOImpl<T>
public abstract class ResourceTenderDAOImpl<T extends ResourceTender>
Nested Class Summary | |
---|---|
protected class |
ResourceTenderDAOImpl.TendersDataSet
|
Constructor Summary | |
---|---|
ResourceTenderDAOImpl()
|
Method Summary | |
---|---|
T |
getFirstAcceptedTender(Integer resourceId)
Returns accepted tender (if any) of the specified type. |
T |
getFirstAcceptedTender(Integer resourceId,
Integer userId)
Returns accepted tender (if any) owned by the specified user. |
Long |
getTotalTenders(Resource resource,
User excludedUser)
|
T |
getUserTender(Integer userId,
Integer resourceId)
Returns the tender for the specified resource and user. |
Long |
getVisitedTendersCount(Resource resource,
User user)
Returns number of unvisited tenders. |
boolean |
isUserHasTender(Integer resourceId,
Integer userId,
Boolean isAccepted)
Returns true if the user have the tenders for the specified resource. |
void |
remove(Integer userId,
Integer resourceId)
Removes tender by its user and resource. |
Methods inherited from class org.zeroexchange.dao.BaseHibernateDAO |
---|
getById, getEntityClass, removeById, save |
Methods inherited from class org.zeroexchange.dao.HibernateSessionHolder |
---|
getSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.zeroexchange.dao.DAO |
---|
getById, removeById, save |
Constructor Detail |
---|
public ResourceTenderDAOImpl()
Method Detail |
---|
public boolean isUserHasTender(Integer resourceId, Integer userId, Boolean isAccepted)
isUserHasTender
in interface ResourceTenderDAO<T extends ResourceTender>
public T getFirstAcceptedTender(Integer resourceId, Integer userId)
getFirstAcceptedTender
in interface ResourceTenderDAO<T extends ResourceTender>
public T getFirstAcceptedTender(Integer resourceId)
getFirstAcceptedTender
in interface ResourceTenderDAO<T extends ResourceTender>
public T getUserTender(Integer userId, Integer resourceId)
getUserTender
in interface ResourceTenderDAO<T extends ResourceTender>
public void remove(Integer userId, Integer resourceId)
remove
in interface ResourceTenderDAO<T extends ResourceTender>
public Long getVisitedTendersCount(Resource resource, User user)
getVisitedTendersCount
in interface ResourceTenderDAO<T extends ResourceTender>
user
- TODOpublic Long getTotalTenders(Resource resource, User excludedUser)
getTotalTenders
in interface ResourceTenderDAO<T extends ResourceTender>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |