/** @inheritdoc */ @Override public void readEntity(Cursor cursor, Address entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setUsername(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setMobileNo(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); entity.setArea(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3)); entity.setStreet(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4)); entity.setDetail(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5)); entity.setIsDefault(cursor.isNull(offset + 6) ? null : cursor.getShort(offset + 6) != 0); }
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(Address entity, long rowId) { entity.setId(rowId); return rowId; }