/** * 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); }
/** * 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); }