/** @see net.frontlinesms.data.repository.KeywordActionDao#incrementCounter(KeywordAction) */ public void incrementCounter(KeywordAction action) { String incrementCounterQuery = "UPDATE " + KeywordAction.TABLE_NAME + " as action" + " SET " + KeywordAction.Field.COUNTER + "=" + KeywordAction.Field.COUNTER + "+1" + " WHERE action=?"; super.getHibernateTemplate().bulkUpdate(incrementCounterQuery, action); action.incrementCounter(); }
/** @see KeywordActionDao#updateKeywordAction(KeywordAction) */ public synchronized void updateKeywordAction(KeywordAction action) { super.updateWithoutDuplicateHandling(action); }
public void deleteForEmailAccount(EmailAccount emailAccount) { super.getHibernateTemplate() .bulkUpdate("DELETE FROM KeywordAction WHERE emailAccount=?", emailAccount); }
/** @see KeywordActionDao#saveKeywordAction(KeywordAction) */ public void saveKeywordAction(KeywordAction action) { super.saveWithoutDuplicateHandling(action); }
/** @see KeywordActionDao#deleteKeywordAction(KeywordAction) */ public void deleteKeywordAction(KeywordAction action) { super.delete(action); }