/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, VedioDownload entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } String vedioid = entity.getVedioid(); if (vedioid != null) { stmt.bindString(2, vedioid); } String vedioName = entity.getVedioName(); if (vedioName != null) { stmt.bindString(3, vedioName); } String VUri = entity.getVUri(); if (VUri != null) { stmt.bindString(4, VUri); } String projId = entity.getProjId(); if (projId != null) { stmt.bindString(5, projId); } String instruction = entity.getInstruction(); if (instruction != null) { stmt.bindString(6, instruction); } String author = entity.getAuthor(); if (author != null) { stmt.bindString(7, author); } String pubDate = entity.getPubDate(); if (pubDate != null) { stmt.bindString(8, pubDate); } String VPickUri = entity.getVPickUri(); if (VPickUri != null) { stmt.bindString(9, VPickUri); } String flag = entity.getFlag(); if (flag != null) { stmt.bindString(10, flag); } }
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, VedioDownload entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setVedioid(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setVedioName(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); entity.setVUri(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3)); entity.setProjId(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4)); entity.setInstruction(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5)); entity.setAuthor(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6)); entity.setPubDate(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7)); entity.setVPickUri(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8)); entity.setFlag(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9)); }
/** @inheritdoc */ @Override public Long getKey(VedioDownload entity) { if (entity != null) { return entity.getId(); } else { return null; } }
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(VedioDownload entity, long rowId) { entity.setId(rowId); return rowId; }