/** @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); }
protected Firsatlarim loadCurrentDeep(Cursor cursor, boolean lock) { Firsatlarim entity = loadCurrent(cursor, 0, lock); int offset = getAllColumns().length; Firsat firsat = loadCurrentOther(daoSession.getFirsatDao(), cursor, offset); entity.setFirsat(firsat); return entity; }
/** @inheritdoc */ @Override public Long getKey(Firsatlarim entity) { if (entity != null) { return entity.getId(); } else { return null; } }
/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, Firsatlarim entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } Long firsat_id = entity.getFirsat_id(); if (firsat_id != null) { stmt.bindLong(2, firsat_id); } Integer sure = entity.getSure(); if (sure != null) { stmt.bindLong(3, sure); } Boolean yararlanildi_mi = entity.getYararlanildi_mi(); if (yararlanildi_mi != null) { stmt.bindLong(4, yararlanildi_mi ? 1l : 0l); } }
@Override protected void attachEntity(Firsatlarim entity) { super.attachEntity(entity); entity.__setDaoSession(daoSession); }
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(Firsatlarim entity, long rowId) { entity.setId(rowId); return rowId; }