congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ReferenceSetServiceException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
net.sf.taverna.t2.reference.ReferenceSetServiceException
constructor

Best Java code snippets using net.sf.taverna.t2.reference.ReferenceSetServiceException.<init> (Showing top 20 results out of 315)

origin: net.sf.taverna.t2.core/reference-impl

/**
 * Check that the reference set dao is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the dao is still null
 */
protected final void checkDao() throws ReferenceSetServiceException {
  if (referenceSetDao == null) {
    throw new ReferenceSetServiceException(
        "ReferenceSetDao not initialized, reference set "
            + "service operations are not available");
  }
}
origin: net.sf.taverna.t2/t2reference-impl

/**
 * Check that the t2reference generator is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the generator is still null
 */
protected final void checkGenerator() throws ReferenceSetServiceException {
  if (t2ReferenceGenerator == null) {
    throw new ReferenceSetServiceException(
        "T2ReferenceGenerator not initialized, reference "
            + "set service operations not available");
  }
}
origin: net.sf.taverna.t2/t2reference-impl

/**
 * Check that the reference set dao is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the dao is still null
 */
protected final void checkDao() throws ReferenceSetServiceException {
  if (referenceSetDao == null) {
    throw new ReferenceSetServiceException(
        "ReferenceSetDao not initialized, reference set "
            + "service operations are not available");
  }
}
origin: net.sf.taverna.t2/reference-impl

/**
 * Check that the reference set dao is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the dao is still null
 */
protected final void checkDao() throws ReferenceSetServiceException {
  if (referenceSetDao == null) {
    throw new ReferenceSetServiceException(
        "ReferenceSetDao not initialized, reference set "
            + "service operations are not available");
  }
}
origin: net.sf.taverna.t2.core/reference-impl

/**
 * Check that the t2reference generator is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the generator is still null
 */
protected final void checkGenerator() throws ReferenceSetServiceException {
  if (t2ReferenceGenerator == null) {
    throw new ReferenceSetServiceException(
        "T2ReferenceGenerator not initialized, reference "
            + "set service operations not available");
  }
}
origin: net.sf.taverna.t2/t2reference-impl

/**
 * Check that the reference set augmentor is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the reference set augmentor is still null
 */
protected final void checkAugmentor() throws ReferenceSetServiceException {
  if (referenceSetAugmentor == null) {
    throw new ReferenceSetServiceException(
        "ReferenceSetAugmentor not initialized, reference "
            + "set service operations not available");
  }
}
origin: net.sf.taverna.t2/reference-impl

/**
 * Check that the reference set augmentor is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the reference set augmentor is still null
 */
protected final void checkAugmentor() throws ReferenceSetServiceException {
  if (referenceSetAugmentor == null) {
    throw new ReferenceSetServiceException(
        "ReferenceSetAugmentor not initialized, reference "
            + "set service operations not available");
  }
}
origin: net.sf.taverna.t2.core/reference-impl

/**
 * Check that the reference set augmentor is configured
 * 
 * @throws ReferenceSetServiceException
 *             if the reference set augmentor is still null
 */
protected final void checkAugmentor() throws ReferenceSetServiceException {
  if (referenceSetAugmentor == null) {
    throw new ReferenceSetServiceException(
        "ReferenceSetAugmentor not initialized, reference "
            + "set service operations not available");
  }
}
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

/**
 * {@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 getReferenceSet(T2Reference id)
    throws ReferenceSetServiceException {
  checkDao();
  try {
    return referenceSetDao.get(id);
  } catch (DaoException de) {
    throw 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));
    }
  }
};
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.core/reference-impl

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

throw new ReferenceSetServiceException(rsae);
origin: net.sf.taverna.t2.core/reference-impl

throw new ReferenceSetServiceException(rsae);
origin: net.sf.taverna.t2/t2reference-impl

throw new ReferenceSetServiceException(rsae);
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/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);
    }
  }
}
net.sf.taverna.t2.referenceReferenceSetServiceException<init>

Popular methods of ReferenceSetServiceException

    Popular in Java

    • Finding current android device location
    • findViewById (Activity)
    • addToBackStack (FragmentTransaction)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • ObjectMapper (com.fasterxml.jackson.databind)
      ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
    • Color (java.awt)
      The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • JFrame (javax.swing)
    • JTable (javax.swing)
    • Top 12 Jupyter Notebook extensions
    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