Java Code Examples for com.socks.greendao.SisterCache#setId()
The following examples show how to use
com.socks.greendao.SisterCache#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 File: SisterCacheDao.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, SisterCache 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 File: SisterCacheDao.java From JianDan with Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, SisterCache 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 File: SisterCacheDao.java From JianDanRxJava with Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, SisterCache 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 File: SisterCacheDao.java From JianDan_OkHttp with Apache License 2.0 | 5 votes |
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, SisterCache 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 File: SisterCacheDao.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(SisterCache entity, long rowId) { entity.setId(rowId); return rowId; }
Example 6
Source File: SisterCacheDao.java From JianDan with Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(SisterCache entity, long rowId) { entity.setId(rowId); return rowId; }
Example 7
Source File: SisterCacheDao.java From JianDanRxJava with Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(SisterCache entity, long rowId) { entity.setId(rowId); return rowId; }
Example 8
Source File: SisterCacheDao.java From JianDan_OkHttp with Apache License 2.0 | 4 votes |
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(SisterCache entity, long rowId) { entity.setId(rowId); return rowId; }