Esempio n. 1
0
 /**
  * To-many relationship, resolved on first access (and after reset). Changes to to-many relations
  * are not persisted, make changes to the target entity.
  */
 public List<MatchData> getMatchDataList() {
   if (matchDataList == null) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     MatchDataDao targetDao = daoSession.getMatchDataDao();
     List<MatchData> matchDataListNew = targetDao._queryUser_MatchDataList(id);
     synchronized (this) {
       if (matchDataList == null) {
         matchDataList = matchDataListNew;
       }
     }
   }
   return matchDataList;
 }
Esempio n. 2
0
 /**
  * Convenient call for {@link AbstractDao#refresh(Object)}. Entity must attached to an entity
  * context.
  */
 public void refresh() {
   if (myDao == null) {
     throw new DaoException("Entity is detached from DAO context");
   }
   myDao.refresh(this);
 }
Esempio n. 3
0
 /**
  * Convenient call for {@link AbstractDao#update(Object)}. Entity must attached to an entity
  * context.
  */
 public void update() {
   if (myDao == null) {
     throw new DaoException("Entity is detached from DAO context");
   }
   myDao.update(this);
 }