コード例 #1
0
 /**
  * @see
  *     net.frontlinesms.data.repository.KeywordActionDao#getAction(net.frontlinesms.data.domain.Keyword,
  *     KeywordAction.Type)
  */
 public KeywordAction getAction(Keyword keyword, KeywordAction.Type actionType) {
   DetachedCriteria criteria = super.getCriterion();
   criteria.add(Restrictions.eq(KeywordAction.Field.KEYWORD.getFieldName(), keyword));
   criteria.add(Restrictions.eq(KeywordAction.Field.TYPE.getFieldName(), actionType));
   return super.getUnique(criteria);
 }
コード例 #2
0
 /** @see KeywordActionDao#getReplyActions() */
 public Collection<KeywordAction> getReplyActions() {
   DetachedCriteria criteria = super.getCriterion();
   criteria.add(
       Restrictions.eq(KeywordAction.Field.TYPE.getFieldName(), KeywordAction.Type.REPLY));
   return super.getList(criteria);
 }