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