Skip to content

Commit

Permalink
Revert "Add Support to Upsert/Insert Ignore on PDB (#388)"
Browse files Browse the repository at this point in the history
This reverts commit d4f7c4e.
  • Loading branch information
victorcmg-fdz committed Jul 3, 2023
1 parent 23a8eff commit fa6d046
Showing 1 changed file with 2 additions and 13 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("Method not implemented.");
}
void flushUpsert() throws DatabaseEngineException;

/**
* Commits the current transaction. You should only call this method if you've previously called
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit fa6d046

Please sign in to comment.