/* * Copyright (C) 2021 B3Partners B.V. * * SPDX-License-Identifier: MIT */ package nl.b3p.brmo.sql; import java.sql.SQLException; public interface QueryBatch extends AutoCloseable { boolean addBatch(Object[] params) throws Exception; void executeBatch() throws Exception; void close() throws SQLException; default void closeQuietly() { try { close(); } catch (SQLException ignored) { } } }