本文整理汇总了Java中org.greenrobot.greendao.annotation.Generated类的典型用法代码示例。如果您正苦于以下问题:Java Generated类的具体用法?Java Generated怎么用?Java Generated使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Generated类属于org.greenrobot.greendao.annotation包,在下文中一共展示了Generated类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getHelpful
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
@Generated(hash = 2081731991)
public BookHelpfulBean getHelpful() {
String __key = this._id;
if (helpful__resolvedKey == null || helpful__resolvedKey != __key) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BookHelpfulBeanDao targetDao = daoSession.getBookHelpfulBeanDao();
BookHelpfulBean helpfulNew = targetDao.load(__key);
synchronized (this) {
helpful = helpfulNew;
helpful__resolvedKey = __key;
}
}
return helpful;
}
示例2: NotNullThing
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 1109392169)
public NotNullThing(Long id, boolean nullableBoolean, int nullableInteger,
Boolean nullableWrappedBoolean, Integer nullableWrappedInteger,
boolean notNullBoolean, int notNullInteger,
@NotNull Boolean notNullWrappedBoolean,
@NotNull Integer notNullWrappedInteger) {
this.id = id;
this.nullableBoolean = nullableBoolean;
this.nullableInteger = nullableInteger;
this.nullableWrappedBoolean = nullableWrappedBoolean;
this.nullableWrappedInteger = nullableWrappedInteger;
this.notNullBoolean = notNullBoolean;
this.notNullInteger = notNullInteger;
this.notNullWrappedBoolean = notNullWrappedBoolean;
this.notNullWrappedInteger = notNullWrappedInteger;
}
示例3: Grade
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 568899968)
public Grade(Long id, Long subjectId, Long userId, String subject, String value,
String color, String symbol, String description, String weight,
String date, String teacher, String semester, boolean isNew,
boolean read) {
this.id = id;
this.subjectId = subjectId;
this.userId = userId;
this.subject = subject;
this.value = value;
this.color = color;
this.symbol = symbol;
this.description = description;
this.weight = weight;
this.date = date;
this.teacher = teacher;
this.semester = semester;
this.isNew = isNew;
this.read = read;
}
示例4: Accounting
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 2109571958)
public Accounting(Long id, int atype, double amount, String etype, String memo,
Date created, Date rdate, Date modified, int month, String sid,
long timestamp, int recyle, boolean synced) {
this.id = id;
this.atype = atype;
this.amount = amount;
this.etype = etype;
this.memo = memo;
this.created = created;
this.rdate = rdate;
this.modified = modified;
this.month = month;
this.sid = sid;
this.timestamp = timestamp;
this.recyle = recyle;
this.synced = synced;
}
示例5: BookTb
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 710856636)
public BookTb(String id, String name, String coverUrl, String describe, String author,
boolean isFinished, int readNumber, long latestReadTimestamp,
Integer latestReadSection, String latestReadSectionId, int latestReadPage,
boolean hasUpdate, Integer sectionCount, int sort, long createTimestamp,
long updateTimestamp) {
this.id = id;
this.name = name;
this.coverUrl = coverUrl;
this.describe = describe;
this.author = author;
this.isFinished = isFinished;
this.readNumber = readNumber;
this.latestReadTimestamp = latestReadTimestamp;
this.latestReadSection = latestReadSection;
this.latestReadSectionId = latestReadSectionId;
this.latestReadPage = latestReadPage;
this.hasUpdate = hasUpdate;
this.sectionCount = sectionCount;
this.sort = sort;
this.createTimestamp = createTimestamp;
this.updateTimestamp = updateTimestamp;
}
示例6: User
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 837043814)
public User(Long id, String userId, String account, String password,
String name, String gender, String nickname, String mobilePhone,
String birth, String avatarUrl, String area, String point,
String signature, String token) {
this.id = id;
this.userId = userId;
this.account = account;
this.password = password;
this.name = name;
this.gender = gender;
this.nickname = nickname;
this.mobilePhone = mobilePhone;
this.birth = birth;
this.avatarUrl = avatarUrl;
this.area = area;
this.point = point;
this.signature = signature;
this.token = token;
}
示例7: getMovie
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
@Generated(hash = 1289461985)
public MovieOverviewModel getMovie() {
long __key = this.movieId;
if (movie__resolvedKey == null || !movie__resolvedKey.equals(__key)) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
MovieOverviewModelDao targetDao = daoSession.getMovieOverviewModelDao();
MovieOverviewModel movieNew = targetDao.load(__key);
synchronized (this) {
movie = movieNew;
movie__resolvedKey = __key;
}
}
return movie;
}
示例8: getGenres
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
/**
* 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 = 1620741698)
public List<GenreModel> getGenres() {
if (genres == null) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
GenreModelDao targetDao = daoSession.getGenreModelDao();
List<GenreModel> genresNew = targetDao._queryMovieOverviewModel_Genres(id);
synchronized (this) {
if (genres == null) {
genres = genresNew;
}
}
}
return genres;
}
示例9: CollBookBean
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 757968961)
public CollBookBean(String _id, String title, String author, String shortIntro, String cover,
boolean hasCp, int latelyFollower, double retentionRatio, String updated, String lastRead,
int chaptersCount, String lastChapter, boolean isUpdate, boolean isLocal) {
this._id = _id;
this.title = title;
this.author = author;
this.shortIntro = shortIntro;
this.cover = cover;
this.hasCp = hasCp;
this.latelyFollower = latelyFollower;
this.retentionRatio = retentionRatio;
this.updated = updated;
this.lastRead = lastRead;
this.chaptersCount = chaptersCount;
this.lastChapter = lastChapter;
this.isUpdate = isUpdate;
this.isLocal = isLocal;
}
示例10: getMeasure
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
@Generated(hash = 1530824084)
public Measure getMeasure() {
long __key = this.measure_id;
if (measure__resolvedKey == null || !measure__resolvedKey.equals(__key)) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
MeasureDao targetDao = daoSession.getMeasureDao();
Measure measureNew = targetDao.load(__key);
synchronized (this) {
measure = measureNew;
measure__resolvedKey = __key;
}
}
return measure;
}
示例11: getDayList
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
/**
* 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 = 300459794)
public List<Day> getDayList() {
if (dayList == null) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
DayDao targetDao = daoSession.getDayDao();
List<Day> dayListNew = targetDao._queryAccount_DayList(id);
synchronized (this) {
if (dayList == null) {
dayList = dayListNew;
}
}
}
return dayList;
}
示例12: getCast
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
/**
* 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 = 150995885)
public List<CastRelationModel> getCast() {
if (cast == null) {
final DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
CastRelationModelDao targetDao = daoSession.getCastRelationModelDao();
List<CastRelationModel> castNew = targetDao._queryMovieOverviewModel_Cast(id);
synchronized (this) {
if (cast == null) {
cast = castNew;
}
}
}
return cast;
}
示例13: Question
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 103353390)
public Question(Long id, String questionText, String imgUrl, String createdAt,
String updatedAt) {
this.id = id;
this.questionText = questionText;
this.imgUrl = imgUrl;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
}
示例14: MoneyItem
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 673340660)
public MoneyItem(Long id, @NotNull String name, @NotNull String description, @NotNull Date date, double amount, @NotNull Long categoryID, @NotNull Long locationID) {
this.id = id;
this.name = name;
this.description = description;
this.date = date;
this.amount = amount;
this.categoryID = categoryID;
this.locationID = locationID;
}
示例15: Subject
import org.greenrobot.greendao.annotation.Generated; //导入依赖的package包/类
@Generated(hash = 396325764)
public Subject(Long id, Long userId, String name, String predictedRating,
String finalRating, String semester) {
this.id = id;
this.userId = userId;
this.name = name;
this.predictedRating = predictedRating;
this.finalRating = finalRating;
this.semester = semester;
}