public interface RatingDAO extends PersistentObjectDAO<Rating>
Modifier and Type | Method and Description |
---|---|
boolean |
findByDocIdAndUserId(long docId,
long userId)
Find the rating for the given user id and the given document id.
|
Rating |
findVotesByDocId(long docId)
Returns a rating that contains count and average of vote on the given
document.
|
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
Rating findVotesByDocId(long docId)
docId
- ID of the document.boolean findByDocIdAndUserId(long docId, long userId)
docId
- ID of the document.userId
- ID of the user.Copyright © 2008-2014 Logical Objects. All Rights Reserved.