/** * Updates all the records matched the where expression with all the fields. */ public final int updateAll(String whereExpression,Object... args) { return thisQuery().where(whereExpression,args).update(getUpdateFields()); }
@Instrument public static int updateAll(Map<String, Object> fields, String whereExpression, Object... args) { return query().where(whereExpression,args).update(fields); }
/** * Updates all the records matched the where expression with all the fields. */ public final int updateAll(String whereExpression) { _init(); return thisQuery().where(whereExpression).update(getUpdateFields()); }
/** * Updates all the records matched the where expression with all the fields. */ @SuppressWarnings("rawtypes") public final int updateAll(String whereExpression,Map<String, Object> params) { CriteriaQuery q = ((CriteriaQuery)thisQuery()); q.where(whereExpression).params(params); return q.update(getUpdateFields()); }