public static int update(W q,V v){
  String passwd=(String)v.value("password");
  if (!X.isEmpty(passwd)) {
    passwd=encrypt(passwd);
    v.set("password",passwd,true);
  }
 else {
    v.remove("password");
  }
  return Helper.update(q,v.set("updated",System.currentTimeMillis()),User.class);
}

public static int update ( W q , V v ) { String passwd = ( String ) v . value ( "password" ) ; if ( ! X . isEmpty ( passwd ) ) { passwd = encrypt ( passwd ) ; v . set ( "password" , passwd , true ) ; } else { v . remove ( "password" ) ; } return Helper . update ( q , v . set ( "updated" , System . currentTimeMillis ( ) ) , User . class ) ; }
update the user by query
