コード例 #1
0
ファイル: NewsJumpBeanDao.java プロジェクト: samterer/MyNews
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, NewsJumpBean entity, int offset) {
   entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setUrl(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
   entity.setContent(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
 }
コード例 #2
0
ファイル: NewsJumpBeanDao.java プロジェクト: samterer/MyNews
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(NewsJumpBean entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }