/** To-one relationship, resolved on first access. */ public APCachedRequest getAPCachedRequest() { Long __key = this.apCachedRequestId; if (aPCachedRequest__resolvedKey == null || !aPCachedRequest__resolvedKey.equals(__key)) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } APCachedRequestDao targetDao = daoSession.getAPCachedRequestDao(); APCachedRequest aPCachedRequestNew = targetDao.load(__key); synchronized (this) { aPCachedRequest = aPCachedRequestNew; aPCachedRequest__resolvedKey = __key; } } return aPCachedRequest; }
/** called by internal mechanisms, do not call yourself. */ public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getUserDao() : null; }