Skip to content

Commit

Permalink
Revert "Add Support to Upsert/Insert Ignore on PDB"
Browse files Browse the repository at this point in the history
This reverts commit 1688f06.
  • Loading branch information
victorcmg-fdz committed Jul 4, 2023
1 parent ab4958f commit 23817e8
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("This method needs to be explicitly implemented ");
}
void flushUpsert() throws DatabaseEngineException;

/**
* Commits the current transaction. You should only call this method if you've previously called
Expand Down Expand Up @@ -399,18 +394,12 @@ default AbstractBatch createBatch(final int batchSize, final long batchTimeout,

/**
* Adds an entry to the batch upserting duplicate entries.
*
* @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("This method needs to be explicitly implemented ");
}
void addBatchUpsert(final String name, final EntityEntry entry) throws DatabaseEngineException;

/**
* Executes the given query.
Expand Down

0 comments on commit 23817e8

Please sign in to comment.