コード例 #1
0
 /**
  * @see
  *     net.frontlinesms.data.repository.KeywordActionDao#getActions(net.frontlinesms.data.domain.Keyword)
  */
 public List<KeywordAction> getActions(Keyword keyword) {
   DetachedCriteria criteria = super.getCriterion();
   criteria.add(Restrictions.eq(KeywordAction.Field.KEYWORD.getFieldName(), keyword));
   return super.getList(criteria);
 }
コード例 #2
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);
 }