/connect-dao/src/main/java/org/osforce/connect/dao/commons/VoteRecordDao.java

http://focus-sns.googlecode.com/ · Java · 33 lines · 7 code · 5 blank · 21 comment · 0 complexity · 7a6f7336bd5bca37503167bddce4e2d1 MD5 · raw file

  1. package org.osforce.connect.dao.commons;
  2. import org.osforce.connect.entity.commons.VoteRecord;
  3. import org.osforce.spring4me.dao.BaseDao;
  4. /**
  5. *
  6. * @author <a href="mailto:haozhonghu@hotmail.com">gavin</a>
  7. * @since 1.1.1
  8. * @create Jun 3, 2011 - 10:02:20 AM
  9. * <a href="http://www.opensourceforce.org">????</a>
  10. */
  11. public interface VoteRecordDao extends BaseDao<VoteRecord> {
  12. /**
  13. * Find vote record by linked id and entity and userId
  14. * @param linkedId
  15. * @param entity
  16. * @param id
  17. * @return
  18. */
  19. VoteRecord findVoteRecord(Long linkedId, String entity, Long userId);
  20. /**
  21. * Count vote record by code , linkd id and entity
  22. * @param codeUseful
  23. * @param linkedId
  24. * @param entity
  25. * @return
  26. */
  27. Long countVoteRecords(String code, Long linkedId, String entity);
  28. }