/** @inheritdoc */ @Override public void readEntity(Cursor cursor, ItemFlagProse entity, int offset) { entity.setItemFlagId(cursor.getLong(offset + 0)); entity.setLocalLanguageId(cursor.getLong(offset + 1)); entity.setName(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); entity.setDescription(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3)); }
/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, ItemFlagProse entity) { stmt.clearBindings(); stmt.bindLong(1, entity.getItemFlagId()); stmt.bindLong(2, entity.getLocalLanguageId()); String Name = entity.getName(); if (Name != null) { stmt.bindString(3, Name); } String Description = entity.getDescription(); if (Description != null) { stmt.bindString(4, Description); } }
protected ItemFlagProse loadCurrentDeep(Cursor cursor, boolean lock) { ItemFlagProse entity = loadCurrent(cursor, 0, lock); int offset = getAllColumns().length; ItemFlags ItemFlags = loadCurrentOther(daoSession.getItemFlagsDao(), cursor, offset); if (ItemFlags != null) { entity.setItemFlags(ItemFlags); } offset += daoSession.getItemFlagsDao().getAllColumns().length; Languages Languages = loadCurrentOther(daoSession.getLanguagesDao(), cursor, offset); if (Languages != null) { entity.setLanguages(Languages); } return entity; }
/** @inheritdoc */ @Override public Long getKey(ItemFlagProse entity) { if (entity != null) { return entity.getItemFlagId(); } else { return null; } }
@Override protected void attachEntity(ItemFlagProse entity) { super.attachEntity(entity); entity.__setDaoSession(daoSession); }
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(ItemFlagProse entity, long rowId) { entity.setItemFlagId(rowId); return rowId; }