|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceTenderDAO<T extends ResourceTender>
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 id,
Integer id2)
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 currentUserId,
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 interface org.zeroexchange.dao.DAO |
---|
getById, removeById, save |
Method Detail |
---|
boolean isUserHasTender(Integer resourceId, Integer currentUserId, Boolean isAccepted)
T getFirstAcceptedTender(Integer resourceId, Integer userId)
T getFirstAcceptedTender(Integer resourceId)
T getUserTender(Integer id, Integer id2)
void remove(Integer userId, Integer resourceId)
Long getVisitedTendersCount(Resource resource, User user)
user
- TODOLong getTotalTenders(Resource resource, User excludedUser)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |