コード例 #1
0
  /** @inheritdoc */
  @Override
  protected void bindValues(SQLiteStatement stmt, ThirdGameDownInfo entity) {
    stmt.clearBindings();

    Long id = entity.getId();
    if (id != null) {
      stmt.bindLong(1, id);
    }

    String gameURLId = entity.getGameURLId();
    if (gameURLId != null) {
      stmt.bindString(2, gameURLId);
    }

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

    Integer downToken = entity.getDownToken();
    if (downToken != null) {
      stmt.bindLong(4, downToken);
    }

    String remark = entity.getRemark();
    if (remark != null) {
      stmt.bindString(5, remark);
    }

    String logoUrl = entity.getLogoUrl();
    if (logoUrl != null) {
      stmt.bindString(6, logoUrl);
    }
    stmt.bindString(7, entity.getGameId());
  }
コード例 #2
0
 /** @inheritdoc */
 @Override
 public Long getKey(ThirdGameDownInfo entity) {
   if (entity != null) {
     return entity.getId();
   } else {
     return null;
   }
 }