From fa6d04610185ba8e62bf315678e85728cfd3fc74 Mon Sep 17 00:00:00 2001 From: Victor Camargo Date: Mon, 3 Jul 2023 15:01:47 +0100 Subject: [PATCH] Revert "Add Support to Upsert/Insert Ignore on PDB (#388)" This reverts commit d4f7c4e0be586bfb77839fec8ddd143697950eb3. --- .../sql/abstraction/engine/DatabaseEngine.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/feedzai/commons/sql/abstraction/engine/DatabaseEngine.java b/src/main/java/com/feedzai/commons/sql/abstraction/engine/DatabaseEngine.java index cd51eb81..8adceac1 100644 --- a/src/main/java/com/feedzai/commons/sql/abstraction/engine/DatabaseEngine.java +++ b/src/main/java/com/feedzai/commons/sql/abstraction/engine/DatabaseEngine.java @@ -190,14 +190,9 @@ public interface DatabaseEngine extends AutoCloseable { /** * Flushes the batches for all the registered entities upserting duplicated entries. * - * @implNote The default implementation of this method throws an {@link UnsupportedOperationException} - * for backward-compatibility reasons. If this method is supposed to be called, it must be explicitly overridden. - * * @throws DatabaseEngineException If something goes wrong while persisting data. */ - default void flushUpsert() throws DatabaseEngineException { - throw new UnsupportedOperationException("Method not implemented."); - } + void flushUpsert() throws DatabaseEngineException; /** * Commits the current transaction. You should only call this method if you've previously called @@ -402,15 +397,9 @@ default AbstractBatch createBatch(final int batchSize, final long batchTimeout, * * @param name The entity name. * @param entry The entry to persist. - * - * @implNote The default implementation of this method throws an {@link UnsupportedOperationException} - * for backward-compatibility reasons. If this method is supposed to be called, it must be explicitly overridden. - * * @throws DatabaseEngineException If something goes wrong while persisting data. */ - default void addBatchUpsert(final String name, final EntityEntry entry) throws DatabaseEngineException { - throw new UnsupportedOperationException("Method not implemented."); - } + void addBatchUpsert(final String name, final EntityEntry entry) throws DatabaseEngineException; /** * Executes the given query.