public static int update(String table,W q,V values){
  if (table != null) {
    if (monitor != null) {
      monitor.query(table,q);
    }
    values.set("updated",System.currentTimeMillis());
    if (primary == DBType.MONGO) {
      return (int)MongoHelper.updateCollection(table,q.query(),values);
    }
 else     if (primary == DBType.RDS) {
      return RDSHelper.updateTable(table,q.where(),q.args(),values);
    }
 else {
      log.warn("no db configured, please configure the {giiwa}/giiwa.properites");
    }
  }
  return 0;
}

public static int update ( String table , W q , V values ) { if ( table != null ) { if ( monitor != null ) { monitor . query ( table , q ) ; } values . set ( "updated" , System . currentTimeMillis ( ) ) ; if ( primary == DBType . MONGO ) { return ( int ) MongoHelper . updateCollection ( table , q . query ( ) , values ) ; } else if ( primary == DBType . RDS ) { return RDSHelper . updateTable ( table , q . where ( ) , q . args ( ) , values ) ; } else { log . warn ( "no db configured, please configure the {giiwa}/giiwa.properites" ) ; } } return 0 ; }
update the table by the query with the values .
