Tabnine Logo
RecoverableDataAccessException.<init>
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • BoxLayout (javax.swing)
  • JComboBox (javax.swing)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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