Esempio n. 1
0
 public void changePassword(User user, String password) throws TypedSqlException {
   try {
     db.callInTransaction(
         () -> db.getDao(User.class).queryForId(user.id()).password(password).save());
   } catch (SQLException e) {
     throw new TypedSqlException(e, TypedSqlException.Type.UNKNOWN);
   }
 }