Java Code Examples for com.socks.greendao.FreshNewsCache#setId()
The following examples show how to use
com.socks.greendao.FreshNewsCache#setId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: JianDan_OkHttpWithVolley File: FreshNewsCacheDao.java License: Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, FreshNewsCache entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setResult(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setPage(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2)); entity.setTime(cursor.isNull(offset + 3) ? null : cursor.getLong(offset + 3)); }
Example 2
Source Project: JianDan File: FreshNewsCacheDao.java License: Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, FreshNewsCache entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setResult(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setPage(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2)); entity.setTime(cursor.isNull(offset + 3) ? null : cursor.getLong(offset + 3)); }
Example 3
Source Project: JianDanRxJava File: FreshNewsCacheDao.java License: Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, FreshNewsCache entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setResult(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setPage(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2)); entity.setTime(cursor.isNull(offset + 3) ? null : cursor.getLong(offset + 3)); }
Example 4
Source Project: JianDan_OkHttp File: FreshNewsCacheDao.java License: Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, FreshNewsCache entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setResult(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setPage(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2)); entity.setTime(cursor.isNull(offset + 3) ? null : cursor.getLong(offset + 3)); }
Example 5
Source Project: JianDan_OkHttpWithVolley File: FreshNewsCacheDao.java License: Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(FreshNewsCache entity, long rowId) { entity.setId(rowId); return rowId; }
Example 6
Source Project: JianDan File: FreshNewsCacheDao.java License: Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(FreshNewsCache entity, long rowId) { entity.setId(rowId); return rowId; }
Example 7
Source Project: JianDanRxJava File: FreshNewsCacheDao.java License: Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(FreshNewsCache entity, long rowId) { entity.setId(rowId); return rowId; }
Example 8
Source Project: JianDan_OkHttp File: FreshNewsCacheDao.java License: Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(FreshNewsCache entity, long rowId) { entity.setId(rowId); return rowId; }