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

se.fortnox.reactivewizard.db.transactions.Batchable Maven / Gradle / Ivy

There is a newer version: 24.6.0
Show newest version
package se.fortnox.reactivewizard.db.transactions;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * Batchable statement.
 */
public interface Batchable {
    /**
     * Check if this Batchable can be run in the same batch.
     * @param batchable Another batchable.
     * @return true if this instance may be run in same batch as batchable.
     */
    boolean sameBatch(Batchable batchable);

    /**
     * Execute the batch.
     */
    void execute(Connection connection) throws SQLException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy