public CompanyInfo getAdminRouteInfo() { if (adminRouteInfo__resolvedKey == null || adminRouteInfo__resolvedKey != adminRouteId) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } AdminRouteInfoDao targetDao = daoSession.getAdminRouteInfoDao(); adminRouteInfo = targetDao.load(adminRouteId); adminRouteInfo__resolvedKey = adminRouteId; } return companyInfo; }
/** To-one relationship, resolved on first access. */ public CompanyInfo getCompanyInfo() { if (companyInfo__resolvedKey == null || companyInfo__resolvedKey != companyId) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } CompanyInfoDao targetDao = daoSession.getCompanyInfoDao(); companyInfo = targetDao.load(companyId); companyInfo__resolvedKey = companyId; } return companyInfo; }
/** called by internal mechanisms, do not call yourself. */ public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getBrandInfoDao() : null; }