CheckListItem.java

  1. package net.cattaka.android.fastchecklist.model;

  2. import net.cattaka.util.cathandsgendroid.annotation.DataModel;
  3. import net.cattaka.util.cathandsgendroid.annotation.DataModelAttrs;

  4. @DataModel(
  5.         find={"id","entryId:sort+"},
  6.         query={"MaxSort:select max(sort) as sort from checkListItem where entryId=?"}
  7.     )
  8. public class CheckListItem {
  9.     @DataModelAttrs(primaryKey=true)
  10.     private Long id;
  11.     private Long entryId;
  12.     private Long sort;
  13.     private String label;
  14.    
  15.     public Long getId() {
  16.         return id;
  17.     }
  18.     public void setId(Long id) {
  19.         this.id = id;
  20.     }
  21.     public Long getEntryId() {
  22.         return entryId;
  23.     }
  24.     public void setEntryId(Long entryId) {
  25.         this.entryId = entryId;
  26.     }
  27.     public String getLabel() {
  28.         return label;
  29.     }
  30.     public void setLabel(String label) {
  31.         this.label = label;
  32.     }
  33.     public Long getSort() {
  34.         return sort;
  35.     }
  36.     public void setSort(Long sort) {
  37.         this.sort = sort;
  38.     }
  39. }