Exemple #1
0
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(FiveElements entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }
Exemple #2
0
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, FiveElements entity, int offset) {
   entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setName(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
 }