Codota Logo
RecoverableDataAccessException.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.springframework.dao.RecoverableDataAccessException
constructor

Best Java code snippets using org.springframework.dao.RecoverableDataAccessException.<init> (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

return new RecoverableDataAccessException(buildMessage(task, sql, ex), ex);
origin: riotfamily/riot

@Override
public int getListSize(Object parent, ListParams params)
    throws DataAccessException {
  
  try {
    return listFilteredAndOrdered(parent, params).size();
  }
  catch (Exception e) {
    throw new RecoverableDataAccessException(e.getMessage(), e);
  }
}

origin: riotfamily/riot

@Override
public Collection<?> list(Object parent, ListParams params)
    throws DataAccessException {
  
  try {
    List<?> items = listFilteredAndOrdered(parent, params);
    if (params.getPageSize() > 0) {
      int end = params.getOffset() + params.getPageSize();
      if (end > items.size()) {
        end = items.size();
      }
      return items.subList(params.getOffset(), end);
    }
    return items;
  }
  catch (Exception e) {
    throw new RecoverableDataAccessException(e.getMessage(), e);
  }
}

origin: riotfamily/riot

protected List<?> listFilteredAndOrdered(Object parent, ListParams params)
    throws DataAccessException {
  
  try {
    Collection<?> items = listInternal(parent);
    List<Object> list = Generics.newArrayList(items.size());
    for (Object item : items) {
      if (filterMatches(item, params) && searchMatches(item, params)) {
        list.add(item);
      }
    }
    if (params.getOrder() != null && params.getOrder().size() > 0) {
      Order order = params.getOrder().get(0);
      PropertyComparator.sort(list, order);
    }
    return list;
  }
  catch (Exception e) {
    throw new RecoverableDataAccessException(e.getMessage(), e);
  }
}

origin: spring-projects/spring-data-aerospike

return new RecoverableDataAccessException(msg, cause);
origin: apache/servicemix-bundles

return new RecoverableDataAccessException(buildMessage(task, sql, ex), ex);
origin: org.springframework/org.springframework.jdbc

return new RecoverableDataAccessException(buildMessage(task, sql, ex), ex);
org.springframework.daoRecoverableDataAccessException<init>

Javadoc

Constructor for RecoverableDataAccessException.

Popular methods of RecoverableDataAccessException

  • getCause

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now