/** * {@inheritDoc} */ public ReferenceSet getReferenceSet(T2Reference id) throws ReferenceSetServiceException { checkDao(); try { return referenceSetDao.get(id); } catch (DaoException de) { throw new ReferenceSetServiceException(de); } }
public void deleteReferenceSetsForWorkflowRun(String workflowRunId) throws ReferenceServiceException { checkDao(); referenceSetDao.deleteReferenceSetsForWFRun(workflowRunId); } }
referenceSetDao.store(rsi); return rsi; } catch (DaoException de) {
"Can't add new references back into existing reference set instance"); referenceSetDao.update(rs);
/** * {@inheritDoc} */ public ReferenceSet registerReferenceSet( Set<ExternalReferenceSPI> references) throws ReferenceSetServiceException { checkDao(); checkGenerator(); ReferenceSetImpl rsi = new ReferenceSetImpl(); rsi .setExternalReferences(new HashSet<ExternalReferenceSPI>( references)); T2Reference id = t2ReferenceGenerator.nextReferenceSetReference(); rsi.setTypedId(T2ReferenceImpl.getAsImpl(id)); try { referenceSetDao.store(rsi); return rsi; } catch (DaoException de) { throw new ReferenceSetServiceException(de); } } }
"Can't add new references back into existing reference set instance"); referenceSetDao.update(rs);
/** * {@inheritDoc} */ public ReferenceSet getReferenceSet(T2Reference id) throws ReferenceSetServiceException { checkDao(); try { return referenceSetDao.get(id); } catch (DaoException de) { throw new ReferenceSetServiceException(de); } }
/** * {@inheritDoc} */ public ReferenceSet registerReferenceSet( Set<ExternalReferenceSPI> references, ReferenceContext context) throws ReferenceSetServiceException { checkDao(); checkGenerator(); context = EmptyReferenceContext.checkContext(context); ReferenceSetImpl rsi = new ReferenceSetImpl(); rsi .setExternalReferences(new HashSet<ExternalReferenceSPI>( references)); T2Reference id = getGenerator(context).nextReferenceSetReference(); rsi.setTypedId(T2ReferenceImpl.getAsImpl(id)); try { referenceSetDao.store(rsi); return rsi; } catch (DaoException de) { throw new ReferenceSetServiceException(de); } } }
"Can't add new references back into existing reference set instance"); referenceSetDao.update(rs);
/** * {@inheritDoc} */ public ReferenceSet getReferenceSet(T2Reference id) throws ReferenceSetServiceException { checkDao(); try { return referenceSetDao.get(id); } catch (DaoException de) { throw new ReferenceSetServiceException(de); } }
public void run() { try { ReferenceSet rs = referenceSetDao.get(id); callback.referenceSetRetrieved(rs); } catch (DaoException de) { callback .referenceSetRetrievalFailed(new ReferenceSetServiceException( de)); } } };
public void run() { try { ReferenceSet rs = referenceSetDao.get(id); callback.referenceSetRetrieved(rs); } catch (DaoException de) { callback .referenceSetRetrievalFailed(new ReferenceSetServiceException( de)); } } };
public void run() { try { ReferenceSet rs = referenceSetDao.get(id); callback.referenceSetRetrieved(rs); } catch (DaoException de) { callback .referenceSetRetrievalFailed(new ReferenceSetServiceException( de)); } } };