Ejemplo n.º 1
0
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(StaffsTasks entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }
Ejemplo n.º 2
0
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, StaffsTasks entity, int offset) {
   entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setStaff_id(cursor.getLong(offset + 1));
   entity.setTask_id(cursor.getLong(offset + 2));
 }