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

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

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

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

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

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

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

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

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

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

public IdentifiedList<T2Reference> getList(T2Reference id)
    throws ListServiceException {
  checkDao();
  try {
    return listDao.get(id);
  } catch (DaoException de) {
    throw new ListServiceException(de);
  }
}
origin: net.sf.taverna.t2/t2reference-impl

public IdentifiedList<T2Reference> getList(T2Reference id)
    throws ListServiceException {
  checkDao();
  try {
    return listDao.get(id);
  } catch (DaoException de) {
    throw new ListServiceException(de);
  }
}
origin: net.sf.taverna.t2/reference-impl

public IdentifiedList<T2Reference> getList(T2Reference id)
    throws ListServiceException {
  checkDao();
  try {
    return listDao.get(id);
  } catch (DaoException de) {
    throw new ListServiceException(de);
  }
}
origin: net.sf.taverna.t2.core/reference-impl

public IdentifiedList<T2Reference> registerEmptyList(int depth, ReferenceContext context)
    throws ListServiceException {
  if (depth < 1) {
    throw new ListServiceException("Can't register empty lists of depth " + depth);
  }
  checkDao();
  checkGenerator();
  T2ReferenceImpl newReference = T2ReferenceImpl
      .getAsImpl(t2ReferenceGenerator.nextListReference(false, depth, context));
  T2ReferenceListImpl newList = new T2ReferenceListImpl();
  newList.setTypedId(newReference);
  try {
    listDao.store(newList);
    return newList;
  } catch (DaoException de) {
    throw new ListServiceException(de);
  }
}
origin: net.sf.taverna.t2.core/reference-impl

checkGenerator();
if (items.isEmpty()) {
  throw new ListServiceException(
      "Can't register an empty list with this method,"
          + " use the registerEmptyList instead");
  throw new ListServiceException("Can't register list of depth less than 1, but first item " + items.get(0) + " has depth " + depth);
for (T2Reference ref : items) {
  if (ref.getDepth() != depth) {
    throw new ListServiceException(
        "Mismatched depths in list registration; reference at index '"
            + counter + "' has depth " + ref.getDepth()
  return newList;
} catch (Throwable t) {
  throw new ListServiceException(t);
origin: net.sf.taverna.t2/t2reference-impl

checkGenerator();
if (items.isEmpty()) {
  throw new ListServiceException(
      "Can't register an empty list with this method,"
          + " use the registerEmptyList instead");
for (T2Reference ref : items) {
  if (ref.getDepth() != depth) {
    throw new ListServiceException(
        "Mismatched depths in list registration; reference at index '"
            + counter + "' has depth " + ref.getDepth()
  return newList;
} catch (Throwable t) {
  throw new ListServiceException(t);
origin: net.sf.taverna.t2/reference-impl

context = EmptyReferenceContext.checkContext(context);
if (items.isEmpty()) {
  throw new ListServiceException(
      "Can't register an empty list with this method,"
          + " use the registerEmptyList instead");
for (T2Reference ref : items) {
  if (ref.getDepth() != depth) {
    throw new ListServiceException(
        "Mismatched depths in list registration; reference at index '"
            + counter + "' has depth " + ref.getDepth()
  return newList;
} catch (Throwable t) {
  throw new ListServiceException(t);
origin: net.sf.taverna.t2/t2reference-impl

public IdentifiedList<T2Reference> registerEmptyList(int depth)
    throws ListServiceException {
  checkDao();
  checkGenerator();
  T2ReferenceImpl newReference = T2ReferenceImpl
      .getAsImpl(t2ReferenceGenerator.nextListReference(false, depth));
  T2ReferenceListImpl newList = new T2ReferenceListImpl();
  newList.setTypedId(newReference);
  try {
    listDao.store(newList);
    return newList;
  } catch (DaoException de) {
    throw new ListServiceException(de);
  }
}
origin: net.sf.taverna.t2/reference-impl

public IdentifiedList<T2Reference> registerEmptyList(int depth,
    ReferenceContext context) throws ListServiceException {
  checkDao();
  checkGenerator();
  context = EmptyReferenceContext.checkContext(context);
  T2ReferenceImpl newReference = T2ReferenceImpl.getAsImpl(getGenerator(
      context).nextListReference(false, depth));
  T2ReferenceListImpl newList = new T2ReferenceListImpl();
  newList.setTypedId(newReference);
  try {
    listDao.store(newList);
    return newList;
  } catch (DaoException de) {
    throw new ListServiceException(de);
  }
}
net.sf.taverna.t2.referenceListServiceException<init>

Popular methods of ListServiceException

    Popular in Java

    • Running tasks concurrently on multiple threads
    • setScale (BigDecimal)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • setContentView (Activity)
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • InetAddress (java.net)
      An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
    • Connection (java.sql)
      A connection represents a link from a Java application to a database. All SQL statements and results
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • TreeMap (java.util)
      Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
    • JList (javax.swing)
    • From CI to AI: The AI layer in your organization
    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