Examples of ForceRollbackForWriteSkipException


Examples of org.springframework.batch.core.step.item.ForceRollbackForWriteSkipException

    Classifier<Throwable, Boolean> classifier = new BinaryExceptionClassifier(noRollbackExceptionClasses, false);

    // Try to avoid pathological cases where we cannot force a rollback
    // (should be pretty uncommon):
    if (!classifier.classify(new ForceRollbackForWriteSkipException("test", new RuntimeException()))
        || !classifier.classify(new ExhaustedRetryException("test"))) {

      final Classifier<Throwable, Boolean> binary = classifier;

      Collection<Class<? extends Throwable>> types = new HashSet<Class<? extends Throwable>>();
View Full Code Here

Examples of org.springframework.batch.core.step.item.ForceRollbackForWriteSkipException

           * If the exception is marked as no-rollback, we need to
           * override that, otherwise there's no way to write the
           * rest of the chunk or to honour the skip listener
           * contract.
           */
          throw new ForceRollbackForWriteSkipException(
              "Force rollback on skippable exception so that skipped item can be located.", e);
        }
        contribution.incrementWriteCount(chunk.size());
        return null;

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.