/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
- package org.osforce.connect.dao.commons;
- import org.osforce.connect.entity.commons.VoteRecord;
- import org.osforce.spring4me.dao.BaseDao;
- /**
- *
- * @author <a href="mailto:haozhonghu@hotmail.com">gavin</a>
- * @since 1.1.1
- * @create Jun 3, 2011 - 10:02:20 AM
- * <a href="http://www.opensourceforce.org">????</a>
- */
- public interface VoteRecordDao extends BaseDao<VoteRecord> {
- /**
- * Find vote record by linked id and entity and userId
- * @param linkedId
- * @param entity
- * @param id
- * @return
- */
- VoteRecord findVoteRecord(Long linkedId, String entity, Long userId);
- /**
- * Count vote record by code , linkd id and entity
- * @param codeUseful
- * @param linkedId
- * @param entity
- * @return
- */
- Long countVoteRecords(String code, Long linkedId, String entity);
- }