/** To-one relationship, resolved on first access. */ public RelationEntity getParent() { if (parent__resolvedKey == null || !parent__resolvedKey.equals(parentId)) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } RelationEntityDao targetDao = daoSession.getRelationEntityDao(); parent = targetDao.load(parentId); parent__resolvedKey = parentId; } return parent; }
/** To-one relationship, resolved on first access. */ public TestEntity getTestWithoutProperty() { if (testWithoutProperty != null || !testWithoutProperty__refreshed) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } TestEntityDao targetDao = daoSession.getTestEntityDao(); targetDao.refresh(testWithoutProperty); testWithoutProperty__refreshed = true; } return testWithoutProperty; }
/** To-one relationship, resolved on first access. */ public TestEntity getTestNotNull() { if (testNotNull__resolvedKey == null || !testNotNull__resolvedKey.equals(testIdNotNull)) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } TestEntityDao targetDao = daoSession.getTestEntityDao(); testNotNull = targetDao.load(testIdNotNull); testNotNull__resolvedKey = testIdNotNull; } return testNotNull; }
/** called by internal mechanisms, do not call yourself. */ public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getRelationEntityDao() : null; }