All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zalando.fahrschein.jdbc.TransactionalBatchHandler Maven / Gradle / Ivy

There is a newer version: 0.21.1
Show newest version
package org.zalando.fahrschein.jdbc;

import org.springframework.transaction.annotation.Transactional;
import org.zalando.fahrschein.IORunnable;
import org.zalando.fahrschein.BatchHandler;

import java.io.IOException;

public class TransactionalBatchHandler implements BatchHandler {

    @Override
    @Transactional(rollbackFor = {Error.class, RuntimeException.class, IOException.class})
    public void processBatch(final IORunnable runnable) throws IOException {
        runnable.run();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy