congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ReferenceSetDao
Code IndexAdd Tabnine to your IDE (free)

How to use
ReferenceSetDao
in
net.sf.taverna.t2.reference

Best Java code snippets using net.sf.taverna.t2.reference.ReferenceSetDao (Showing top 16 results out of 315)

origin: net.sf.taverna.t2/t2reference-impl

/**
 * {@inheritDoc}
 */
public ReferenceSet getReferenceSet(T2Reference id)
    throws ReferenceSetServiceException {
  checkDao();
  try {
    return referenceSetDao.get(id);
  } catch (DaoException de) {
    throw new ReferenceSetServiceException(de);
  }
}
origin: net.sf.taverna.t2.core/reference-impl

public boolean delete(T2Reference reference)
    throws ReferenceServiceException {
  checkDao();
  ReferenceSet set=referenceSetDao.get(reference);
  if (set==null) return false;
  return referenceSetDao.delete(set);
}
origin: net.sf.taverna.t2.core/reference-impl

  public void deleteReferenceSetsForWorkflowRun(String workflowRunId)
      throws ReferenceServiceException {
    checkDao();
    referenceSetDao.deleteReferenceSetsForWFRun(workflowRunId);
  }
}
origin: net.sf.taverna.t2/t2reference-impl

ReferenceSetImpl rs = new ReferenceSetImpl(
    new HashSet<ExternalReferenceSPI>(), id);
o.store(rs);
ReferenceSet returnedset = o.get(newReference);
System.out.println(returnedset);
origin: net.sf.taverna.t2.core/reference-impl

  referenceSetDao.store(rsi);
  return rsi;
} catch (DaoException de) {
origin: net.sf.taverna.t2/reference-impl

      "Can't add new references back into existing reference set instance");
referenceSetDao.update(rs);
origin: net.sf.taverna.t2/reference-impl

ReferenceSetImpl rs = new ReferenceSetImpl(
    new HashSet<ExternalReferenceSPI>(), id);
o.store(rs);
ReferenceSet returnedset = o.get(newReference);
System.out.println(returnedset);
origin: net.sf.taverna.t2/t2reference-impl

  /**
   * {@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);
    }
  }
}
origin: net.sf.taverna.t2.core/reference-impl

      "Can't add new references back into existing reference set instance");
referenceSetDao.update(rs);
origin: net.sf.taverna.t2.core/reference-impl

/**
 * {@inheritDoc}
 */
public ReferenceSet getReferenceSet(T2Reference id)
    throws ReferenceSetServiceException {
  checkDao();
  try {
    return referenceSetDao.get(id);
  } catch (DaoException de) {
    throw new ReferenceSetServiceException(de);
  }
}
origin: net.sf.taverna.t2/reference-impl

  /**
   * {@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);
    }
  }
}
origin: net.sf.taverna.t2/t2reference-impl

      "Can't add new references back into existing reference set instance");
referenceSetDao.update(rs);
origin: net.sf.taverna.t2/reference-impl

/**
 * {@inheritDoc}
 */
public ReferenceSet getReferenceSet(T2Reference id)
    throws ReferenceSetServiceException {
  checkDao();
  try {
    return referenceSetDao.get(id);
  } catch (DaoException de) {
    throw new ReferenceSetServiceException(de);
  }
}
origin: net.sf.taverna.t2.core/reference-impl

  public void run() {
    try {
      ReferenceSet rs = referenceSetDao.get(id);
      callback.referenceSetRetrieved(rs);
    } catch (DaoException de) {
      callback
          .referenceSetRetrievalFailed(new ReferenceSetServiceException(
              de));
    }
  }
};
origin: net.sf.taverna.t2/t2reference-impl

  public void run() {
    try {
      ReferenceSet rs = referenceSetDao.get(id);
      callback.referenceSetRetrieved(rs);
    } catch (DaoException de) {
      callback
          .referenceSetRetrievalFailed(new ReferenceSetServiceException(
              de));
    }
  }
};
origin: net.sf.taverna.t2/reference-impl

  public void run() {
    try {
      ReferenceSet rs = referenceSetDao.get(id);
      callback.referenceSetRetrieved(rs);
    } catch (DaoException de) {
      callback
          .referenceSetRetrievalFailed(new ReferenceSetServiceException(
              de));
    }
  }
};
net.sf.taverna.t2.referenceReferenceSetDao

Javadoc

Data Access Object interface for ReferenceSet. Used by the ReferenceSetService to store and retrieve implementations of reference set to and from the database. Client code should use the reference set service rather than using this Dao directly.

All methods throw DaoException, and nothing else. Where a deeper error is propagated it is wrapped in a DaoException and passed on to the caller.

Most used methods

  • get
    Fetch a reference set by id
  • store
    Store the specified new reference set
  • update
    Update a pre-existing entry in the database
  • delete
  • deleteReferenceSetsForWFRun

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now