Exemple #1
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);
 }
Exemple #2
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);
 }