Exemple #1
0
  /** @inheritdoc */
  @Override
  protected void bindValues(SQLiteStatement stmt, User entity) {
    stmt.clearBindings();
    stmt.bindString(1, entity.getUsername());
    stmt.bindString(2, entity.getPassword());

    String full_name = entity.getFull_name();
    if (full_name != null) {
      stmt.bindString(3, full_name);
    }

    String gender = entity.getGender();
    if (gender != null) {
      stmt.bindString(4, gender);
    }

    Integer age = entity.getAge();
    if (age != null) {
      stmt.bindLong(5, age);
    }

    String location = entity.getLocation();
    if (location != null) {
      stmt.bindString(6, location);
    }

    String about = entity.getAbout();
    if (about != null) {
      stmt.bindString(7, about);
    }

    Long joined = entity.getJoined();
    if (joined != null) {
      stmt.bindLong(8, joined);
    }

    Long last_login = entity.getLast_login();
    if (last_login != null) {
      stmt.bindLong(9, last_login);
    }

    String avatar = entity.getAvatar();
    if (avatar != null) {
      stmt.bindString(10, avatar);
    }

    String url = entity.getUrl();
    if (url != null) {
      stmt.bindString(11, url);
    }

    String share_text_watched = entity.getShare_text_watched();
    if (share_text_watched != null) {
      stmt.bindString(12, share_text_watched);
    }

    String share_text_watching = entity.getShare_text_watching();
    if (share_text_watching != null) {
      stmt.bindString(13, share_text_watching);
    }
  }