下面列出了怎么用org.greenrobot.greendao.annotation.Generated的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* To-one relationship, resolved on first access.
*/
@Generated(hash = 1387996076)
public TmdbKino getKino() {
long __key = this.tmdb_id;
if (kino__resolvedKey == null || !kino__resolvedKey.equals(__key)) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
TmdbKinoDao targetDao = daoSession.getTmdbKinoDao();
TmdbKino kinoNew = targetDao.load(__key);
synchronized (this) {
kino = kinoNew;
kino__resolvedKey = __key;
}
}
return kino;
}
@Generated(hash = 337890066)
public SearchBookBean(String noteUrl, String coverUrl, String name, String author, String tag, String kind,
String origin, String lastChapter, String introduce, String chapterUrl, Long addTime, Long upTime,
String variable) {
this.noteUrl = noteUrl;
this.coverUrl = coverUrl;
this.name = name;
this.author = author;
this.tag = tag;
this.kind = kind;
this.origin = origin;
this.lastChapter = lastChapter;
this.introduce = introduce;
this.chapterUrl = chapterUrl;
this.addTime = addTime;
this.upTime = upTime;
this.variable = variable;
}
@Generated(hash = 228430457)
public BookShelfBean(String noteUrl, Integer durChapter, Integer durChapterPage, Long finalDate, Boolean hasUpdate, Integer newChapters,
String tag, Integer serialNumber, Long finalRefreshData, Integer group, String durChapterName, String lastChapterName,
Integer chapterListSize, Boolean updateOff, String variableString) {
this.noteUrl = noteUrl;
this.durChapter = durChapter;
this.durChapterPage = durChapterPage;
this.finalDate = finalDate;
this.hasUpdate = hasUpdate;
this.newChapters = newChapters;
this.tag = tag;
this.serialNumber = serialNumber;
this.finalRefreshData = finalRefreshData;
this.group = group;
this.durChapterName = durChapterName;
this.lastChapterName = lastChapterName;
this.chapterListSize = chapterListSize;
this.updateOff = updateOff;
this.variableString = variableString;
}
/**
* To-one relationship, resolved on first access.
*/
@Generated(hash = 1066672592)
public VideoResult getVideoResult() {
long __key = this.videoResultId;
if (videoResult__resolvedKey == null || !videoResult__resolvedKey.equals(__key)) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
VideoResultDao targetDao = daoSession.getVideoResultDao();
VideoResult videoResultNew = targetDao.load(__key);
synchronized (this) {
videoResult = videoResultNew;
videoResult__resolvedKey = __key;
}
}
return videoResult;
}
@Generated(hash = 223952739)
public UserBean(Long id, String wallet_uid, String wallet_name, String wallet_img,
String wallet_weixin, String wallet_qq, String wallet_main_account,
String wallet_main_account_img, String wallet_phone, String wallet_shapwd,
String password_check, String account_info) {
this.id = id;
this.wallet_uid = wallet_uid;
this.wallet_name = wallet_name;
this.wallet_img = wallet_img;
this.wallet_weixin = wallet_weixin;
this.wallet_qq = wallet_qq;
this.wallet_main_account = wallet_main_account;
this.wallet_main_account_img = wallet_main_account_img;
this.wallet_phone = wallet_phone;
this.wallet_shapwd = wallet_shapwd;
this.password_check = password_check;
this.account_info = account_info;
}
/**
* To-many relationship, resolved on first access (and after reset).
* Changes to to-many relations are not persisted, make changes to the target entity.
*/
@Generated(hash = 465103477)
public List<NotePicture> getPictures() {
if (pictures == null) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
NotePictureDao targetDao = daoSession.getNotePictureDao();
List<NotePicture> picturesNew = targetDao._queryNote_Pictures(id);
synchronized (this) {
if (pictures == null) {
pictures = picturesNew;
}
}
}
return pictures;
}
@Generated(hash = 1557299270)
public VideoResult(Long id, String videoUrl, String videoId, String ownerId, String authorId,
String thumbImgUrl, String videoName, String ownerName, String addDate,
String userOtherInfo, String uvId, int uid) {
this.id = id;
this.videoUrl = videoUrl;
this.videoId = videoId;
this.ownerId = ownerId;
this.authorId = authorId;
this.thumbImgUrl = thumbImgUrl;
this.videoName = videoName;
this.ownerName = ownerName;
this.addDate = addDate;
this.userOtherInfo = userOtherInfo;
this.uvId = uvId;
this.uid = uid;
}
@Generated(hash = 247502747)
public V9PornItem(Long id, String viewKey, String title, String imgUrl, String duration, String info, long videoResultId, int downloadId, int progress, long speed,
int soFarBytes, int totalFarBytes, int status, Date addDownloadDate, Date finishedDownloadDate, Date viewHistoryDate) {
this.id = id;
this.viewKey = viewKey;
this.title = title;
this.imgUrl = imgUrl;
this.duration = duration;
this.info = info;
this.videoResultId = videoResultId;
this.downloadId = downloadId;
this.progress = progress;
this.speed = speed;
this.soFarBytes = soFarBytes;
this.totalFarBytes = totalFarBytes;
this.status = status;
this.addDownloadDate = addDownloadDate;
this.finishedDownloadDate = finishedDownloadDate;
this.viewHistoryDate = viewHistoryDate;
}
/**
* To-one relationship, resolved on first access.
*/
@Generated(hash = 1066672592)
public VideoResult getVideoResult() {
long __key = this.videoResultId;
if (videoResult__resolvedKey == null || !videoResult__resolvedKey.equals(__key)) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
VideoResultDao targetDao = daoSession.getVideoResultDao();
VideoResult videoResultNew = targetDao.load(__key);
synchronized (this) {
videoResult = videoResultNew;
videoResult__resolvedKey = __key;
}
}
return videoResult;
}
/** To-one relationship, resolved on first access. */
@Generated(hash = 1090761680)
public TmdbSerie getSerie() {
long __key = this.tmdb_id;
if (serie__resolvedKey == null || !serie__resolvedKey.equals(__key)) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
TmdbSerieDao targetDao = daoSession.getTmdbSerieDao();
TmdbSerie serieNew = targetDao.load(__key);
synchronized (this) {
serie = serieNew;
serie__resolvedKey = __key;
}
}
return serie;
}
@Generated(hash = 1331046581)
public ETHWallet(Long id, String address, String name, String password,
String keystorePath, String mnemonic, boolean isCurrent,
boolean isBackup) {
this.id = id;
this.address = address;
this.name = name;
this.password = password;
this.keystorePath = keystorePath;
this.mnemonic = mnemonic;
this.isCurrent = isCurrent;
this.isBackup = isBackup;
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
* Entity must attached to an entity context.
*/
@Generated(hash = 128553479)
public void delete() {
if (myDao == null) {
throw new DaoException("Entity is detached from DAO context");
}
myDao.delete(this);
}
@Generated(hash = 906814482)
public BookInfoBean(String name, String tag, String noteUrl, String chapterUrl, long finalRefreshData, String coverUrl, String author, String introduce,
String origin, String charset, String bookSourceType) {
this.name = name;
this.tag = tag;
this.noteUrl = noteUrl;
this.chapterUrl = chapterUrl;
this.finalRefreshData = finalRefreshData;
this.coverUrl = coverUrl;
this.author = author;
this.introduce = introduce;
this.origin = origin;
this.charset = charset;
this.bookSourceType = bookSourceType;
}
@Generated(hash = 1332384894)
public RecommendBookListBean(Long id, String name, String author, String url,
int num) {
this.id = id;
this.name = name;
this.author = author;
this.url = url;
this.num = num;
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
* Entity must attached to an entity context.
*/
@Generated(hash = 128553479)
public void delete() {
if (myDao == null) {
throw new DaoException("Entity is detached from DAO context");
}
myDao.delete(this);
}
@Generated(hash = 1628495135)
public RecommendIndexBean(Long id, String title, String author, String url) {
this.id = id;
this.title = title;
this.author = author;
this.url = url;
}
@Generated(hash = 62660570)
public ReplaceRuleBean(Long id, String replaceSummary, String regex, String replacement,
String useTo, Boolean enable, int serialNumber, Boolean isRegex) {
this.id = id;
this.replaceSummary = replaceSummary;
this.regex = regex;
this.replacement = replacement;
this.useTo = useTo;
this.enable = enable;
this.serialNumber = serialNumber;
this.isRegex = isRegex;
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
* Entity must attached to an entity context.
*/
@Generated(hash = 128553479)
public void delete() {
if (myDao == null) {
throw new DaoException("Entity is detached from DAO context");
}
myDao.delete(this);
}
@Generated(hash = 82595838)
public BookSpecStyleBean(Long id, String bookName, String bookAuthor,
String styleJson) {
this.id = id;
this.bookName = bookName;
this.bookAuthor = bookAuthor;
this.styleJson = styleJson;
}
@Generated(hash = 571999590)
public RecommendBookBean(Long id, String title, String comment, String author,
String star, String wordCount, String chapterNum, String status) {
this.id = id;
this.title = title;
this.comment = comment;
this.author = author;
this.star = star;
this.wordCount = wordCount;
this.chapterNum = chapterNum;
this.status = status;
}
@Generated(hash = 695554675)
public BookContentBean(String noteUrl, String durChapterUrl,
Integer durChapterIndex, String durChapterContent, String tag,
Long timeMillis) {
this.noteUrl = noteUrl;
this.durChapterUrl = durChapterUrl;
this.durChapterIndex = durChapterIndex;
this.durChapterContent = durChapterContent;
this.tag = tag;
this.timeMillis = timeMillis;
}
@Generated(hash = 1158187111)
public VideoResult(Long id, String videoUrl, String videoId, String ownerId, String authorId,
String thumbImgUrl, String videoName, String ownerName, String addDate,
String userOtherInfo) {
this.id = id;
this.videoUrl = videoUrl;
this.videoId = videoId;
this.ownerId = ownerId;
this.authorId = authorId;
this.thumbImgUrl = thumbImgUrl;
this.videoName = videoName;
this.ownerName = ownerName;
this.addDate = addDate;
this.userOtherInfo = userOtherInfo;
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
* Entity must attached to an entity context.
*/
@Generated(hash = 128553479)
public void delete() {
if (myDao == null) {
throw new DaoException("Entity is detached from DAO context");
}
myDao.delete(this);
}
@Generated(hash = 579119384)
public AutoCompleteEntity(Long id, String name, int useTime, int type,
Date addDate, Date updateDate) {
this.id = id;
this.name = name;
this.useTime = useTime;
this.type = type;
this.addDate = addDate;
this.updateDate = updateDate;
}
@Generated(hash = 2141312454)
public SuiDao(Long id, String ip, String port, String type, String link,
String name, String user, String time) {
this.id = id;
this.ip = ip;
this.port = port;
this.type = type;
this.link = link;
this.name = name;
this.user = user;
this.time = time;
}
@Generated(hash = 2053796790)
public WishlistMovie(Long wishlist_movie_id, long tmdb_id, String title, String comment) {
this.wishlist_movie_id = wishlist_movie_id;
this.tmdb_id = tmdb_id;
this.title = title;
this.comment = comment;
}
@Generated(hash = 1853112924)
public SmsCodeRule(Long id, String company, @NotNull String codeKeyword,
@NotNull String codeRegex) {
this.id = id;
this.company = company;
this.codeKeyword = codeKeyword;
this.codeRegex = codeRegex;
}
@Generated(hash = 895463876)
public Category(Long id, int categoryType, String categoryName,
String categoryValue, String categoryUrl, Integer sortId,
boolean isShow) {
this.id = id;
this.categoryType = categoryType;
this.categoryName = categoryName;
this.categoryValue = categoryValue;
this.categoryUrl = categoryUrl;
this.sortId = sortId;
this.isShow = isShow;
}
@Generated(hash = 193728723)
public LocalKino(Long id, long tmdb_id, @NotNull String title, Date review_date, String review, Float rating, Integer maxRating) {
this.id = id;
this.tmdb_id = tmdb_id;
this.title = title;
this.review_date = review_date;
this.review = review;
this.rating = rating;
this.maxRating = maxRating;
}