public synchronized void store(ErrorDocument theDoc) throws DaoException { store.put(theDoc.getId(), theDoc); }
public synchronized boolean delete(ErrorDocument theDoc) throws DaoException { return store.remove(theDoc.getId())!=null; }
public synchronized void store(ErrorDocument theDoc) throws DaoException { store.put(theDoc.getId(), theDoc); }
public synchronized void store(ErrorDocument theDoc) throws DaoException { store.put(theDoc.getId(), theDoc); }
@DeleteIdentifiedOperation public boolean delete(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { sessionFactory.getCurrentSession().delete(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } return true; }
@PutIdentifiedOperation public void store(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { sessionFactory.getCurrentSession().save(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } } }
@PutIdentifiedOperation public void store(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { sessionFactory.getCurrentSession().save(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } } }
@PutIdentifiedOperation public void store(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { sessionFactory.getCurrentSession().save(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } }
ErrorDocument doc = errorDocumentService.registerError( (Throwable) o, currentDepth, context); return doc.getId(); } catch (ErrorDocumentServiceException edse) { throw new ReferenceServiceException(edse);
ComponentException newException = createUnexpectedComponentException(exceptionMessage); T2Reference replacement = errorService.registerError( exceptionMessage, newException, depth, context).getId(); exceptions.add(errorService.registerError(exceptionMessage, newException, 0, context).getId()); return replacement; T2Reference replacement = errorService.registerError( exceptionReplacement.getReplacementMessage(), newException, depth, context).getId(); exceptions.add(errorService.registerError( exceptionReplacement.getReplacementMessage(), newException, 0, context).getId()); return replacement;
@DeleteIdentifiedOperation public boolean delete(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { getHibernateTemplate().delete(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } return true; }
@PutIdentifiedOperation public void store(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { getHibernateTemplate().save(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } } }
@PutIdentifiedOperation public void store(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { getHibernateTemplate().save(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } } }
@PutIdentifiedOperation public void store(ErrorDocument theDocument) throws DaoException { if (theDocument.getId() == null) { throw new DaoException( "Supplied error document set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (theDocument.getId().getReferenceType().equals( T2ReferenceType.ErrorDocument) == false) { throw new DaoException("Strangely the list ID doesn't have type " + "T2ReferenceType.ErrorDocument, something has probably " + "gone badly wrong somewhere earlier!"); } if (theDocument instanceof ErrorDocumentImpl) { try { getHibernateTemplate().save(theDocument); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied ErrorDocument not an instance of ErrorDocumentImpl"); } }
ErrorDocument doc = errorDocumentService.registerError( (Throwable) o, currentDepth); return doc.getId(); } catch (ErrorDocumentServiceException edse) { throw new ReferenceServiceException(edse);
ErrorDocument doc = errorDocumentService.registerError( (Throwable) o, currentDepth, context); return doc.getId(); } catch (ErrorDocumentServiceException edse) { throw new ReferenceServiceException(edse);