/** @inheritdoc */ @Override public void readEntity(Cursor cursor, Firsatlarim entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setFirsat_id(cursor.isNull(offset + 1) ? null : cursor.getLong(offset + 1)); entity.setSure(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2)); entity.setYararlanildi_mi(cursor.isNull(offset + 3) ? null : cursor.getShort(offset + 3) != 0); }
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(Firsatlarim entity, long rowId) { entity.setId(rowId); return rowId; }