/** To-one relationship, resolved on first access. */ @Generated public TestEntity getTestWithoutProperty() { if (testWithoutProperty != null || !testWithoutProperty__refreshed) { __throwIfDetached(); TestEntityDao targetDao = daoSession.getTestEntityDao(); targetDao.refresh(testWithoutProperty); testWithoutProperty__refreshed = true; } return testWithoutProperty; }
protected TreeEntity loadCurrentDeep(Cursor cursor, boolean lock) { TreeEntity entity = loadCurrent(cursor, 0, lock); int offset = getAllColumns().length; TreeEntity parent = loadCurrentOther(daoSession.getTreeEntityDao(), cursor, offset); entity.setParent(parent); return entity; }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}. * Entity must attached to an entity context. */ @Generated public void delete() { __throwIfDetached(); myDao.delete(this); }
/** * WARNING: Drops all table on Upgrade! Use only during development. * Convenience method using a {@link DevOpenHelper}. */ public static DaoSession newDevSession(Context context, String name) { Database db = new DevOpenHelper(context, name).getWritableDb(); DaoMaster daoMaster = new DaoMaster(db); return daoMaster.newSession(); }
/** 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 public List<ToManyTargetEntity> getToManyDescList() { if (toManyDescList == null) { __throwIfDetached(); ToManyTargetEntityDao targetDao = daoSession.getToManyTargetEntityDao(); List<ToManyTargetEntity> toManyDescListNew = targetDao._queryToManyEntity_ToManyDescList(id); synchronized (this) { if(toManyDescList == null) { toManyDescList = toManyDescListNew; } } } return toManyDescList; }
/** 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 public List<ToManyTargetEntity> getToManyJoinTwo() { if (toManyJoinTwo == null) { __throwIfDetached(); ToManyTargetEntityDao targetDao = daoSession.getToManyTargetEntityDao(); List<ToManyTargetEntity> toManyJoinTwoNew = targetDao._queryToManyEntity_ToManyJoinTwo(id, sourceJoinProperty); synchronized (this) { if(toManyJoinTwo == null) { toManyJoinTwo = toManyJoinTwoNew; } } } return toManyJoinTwo; }
/** 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 public List<DateEntity> getDateEntityList() { if (dateEntityList == null) { __throwIfDetached(); DateEntityDao targetDao = daoSession.getDateEntityDao(); List<DateEntity> dateEntityListNew = targetDao._queryToManyEntity_DateEntityList(id); synchronized (this) { if(dateEntityList == null) { dateEntityList = dateEntityListNew; } } } return dateEntityList; }
/** 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 public List<TreeEntity> getChildren() { if (children == null) { __throwIfDetached(); TreeEntityDao targetDao = daoSession.getTreeEntityDao(); List<TreeEntity> childrenNew = targetDao._queryTreeEntity_Children(id); synchronized (this) { if(children == null) { children = childrenNew; } } } return children; }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}. * Entity must attached to an entity context. */ @Generated public void update() { __throwIfDetached(); myDao.update(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}. * Entity must attached to an entity context. */ @Generated public void update() { __throwIfDetached(); myDao.update(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}. * Entity must attached to an entity context. */ @Generated public void delete() { __throwIfDetached(); myDao.delete(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}. * Entity must attached to an entity context. */ @Generated public void refresh() { __throwIfDetached(); myDao.refresh(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}. * Entity must attached to an entity context. */ @Generated public void delete() { __throwIfDetached(); myDao.delete(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}. * Entity must attached to an entity context. */ @Generated public void refresh() { __throwIfDetached(); myDao.refresh(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}. * Entity must attached to an entity context. */ @Generated public void delete() { __throwIfDetached(); myDao.delete(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}. * Entity must attached to an entity context. */ @Generated public void refresh() { __throwIfDetached(); myDao.refresh(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}. * Entity must attached to an entity context. */ @Generated public void update() { __throwIfDetached(); myDao.update(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}. * Entity must attached to an entity context. */ @Generated public void update() { __throwIfDetached(); myDao.update(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}. * Entity must attached to an entity context. */ @Generated public void refresh() { __throwIfDetached(); myDao.refresh(this); }
/** called by internal mechanisms, do not call yourself. */ @Generated public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getAnActiveEntityDao() : null; }