public synchronized void update(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
public synchronized boolean delete(ReferenceSet refSet) throws DaoException { return store.remove(refSet.getId())!=null; }
public synchronized void update(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
public synchronized void store(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
public synchronized void update(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
public synchronized void store(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
public synchronized void store(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
@DeleteIdentifiedOperation public boolean delete(ReferenceSet rs) throws DaoException { if (rs.getId() == null) { throw new DaoException( "Supplied reference set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (rs.getId().getReferenceType().equals( T2ReferenceType.ReferenceSet) == false) { throw new DaoException( "Strangely the reference set ID doesn't have type " + "T2ReferenceType.ReferenceSet, something has probably " + "gone badly wrong somewhere earlier!"); } if (rs instanceof ReferenceSetImpl) { try { sessionFactory.getCurrentSession().delete(rs); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied reference set not an instance of ReferenceSetImpl"); } return true; }
@DeleteIdentifiedOperation public boolean delete(ReferenceSet rs) throws DaoException { if (rs.getId() == null) { throw new DaoException( "Supplied reference set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (rs.getId().getReferenceType().equals( T2ReferenceType.ReferenceSet) == false) { throw new DaoException( "Strangely the reference set ID doesn't have type " + "T2ReferenceType.ReferenceSet, something has probably " + "gone badly wrong somewhere earlier!"); } if (rs instanceof ReferenceSetImpl) { try { getHibernateTemplate().delete(rs); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied reference set not an instance of ReferenceSetImpl"); } return true; }