Exemplo n.º 1
0
 /** 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;
 }
Exemplo n.º 2
0
 /** 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;
 }
Exemplo n.º 3
0
 /** 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;
 }
Exemplo n.º 4
0
 /** called by internal mechanisms, do not call yourself. */
 public void __setDaoSession(DaoSession daoSession) {
   this.daoSession = daoSession;
   myDao = daoSession != null ? daoSession.getRelationEntityDao() : null;
 }