??????????????????????
???????????? ???????[ 2014/1/26 9:12:50 ] ????????????? ??? ??????
????????д??????????????á????????????????????????????????????????????漰????????????????????????????
????????????????????????????
????1. ?????????????С??????????????????????????????????????????????????????????????????????????
????2. ???????????????????????????????飬???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????2???????????????±???????????????????????????????????????????????????????????????????????????????????
????3. ???????????????????????????????????????????????????????
????????????????????????????????????????????????
??????????????????????????????Ρ?
????????????????
public abstract class ServerBaseModel {
public long userId; /* Global unique user id */
public long id; /* Model id. Unique for user */
public long lastmodified; /* Last modified server time stamp */
public boolean deleted; /* delete flag */
}
?????????????
public abstract class ClientBaseModel {
public long userId; <span style="font-family: Arial?? Helvetica?? sans-serif;">/* Global unique user id */</span>
public long id; /* Model id. Unique for user */
public long lastmodified; /* Last modified server time stamp */
public boolean deleted; /* delete flag */
public boolean dirty; /* Local dirty flag */
}
??????????
??????????????????????id
????1. ???auto increment?????????У????????????????????id????????????????ɡ???????auto increment??????????????????????????????????????????????????????????????????????????????????
????2. ???UUID????????????У????????????????????????????UUID??????????????????????????????????????UUID????????ò???????????????????вο???
????3. ???????????userId??????????model id?????????????model id??????????userId?£??????????userId???????????????????????model id??????????е???????????????????????????
????4. ???????????????????????
????????????????ж???????????????????
????????????洢???last modified???????????????????????????????????????????lastmodifiedС??????????lastmodified?????ж?????????????
????????????????
?????????????????????dirty?????dirty?????????????????????????????Щ?????????????????????????????
??????δ??????????
???????????last modified??dirty??ε??????????????????????????????????????????????£????????????????deleted???????????????????????
??????????????????????????????????????????????????????????????????????
??????????????????????????????????????????д??
???????????
????1. ??????????????????
????2. ?????????????????
????android?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11