示例#1
0
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, Feeling entity, int offset) {
   entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setContent(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
   entity.setServerId(cursor.isNull(offset + 2) ? null : cursor.getLong(offset + 2));
   entity.setStatusFlag(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3));
   entity.setLocationId(cursor.getLong(offset + 4));
 }
示例#2
0
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(Feeling entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }