Skip to content

Commit

Permalink
Revert "Change Template repository with new two delete methods"
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed Aug 22, 2023
1 parent 400b460 commit b6cef2a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
8 changes: 0 additions & 8 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version

== [Unreleased]

=== Added

* Add Delete by entity at Template

=== Changed

* Change the KeyValueTemplate method to use deleteByKey

== [1.0.0-b7] - 2023-06-22

=== Added
Expand Down
16 changes: 0 additions & 16 deletions api/nosql-core/src/main/java/jakarta/nosql/Template.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,22 +190,6 @@ public interface Template {
*/
<T, K> void delete(Class<T> type, K id);

/**
* Deletes a given entity. Deletion is performed by matching the Id.
*
* @param entity must not be {@literal null}.
* @throws NullPointerException when the entity is null
*/
<T> void delete(T entity);

/**
* Deletes the given entities. Deletion of each entity is performed by matching the Id.
*
* @param entities must not be {@literal null}. Must not contain {@literal null} elements.
* @throws NullPointerException when either the iterable is null or contains null elements
*/
<T> void delete(Iterable<? extends T> entities);

/**
* It starts a query using the fluent-API journey. It is a mutable and non-thread-safe instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ default <T> Iterable<T> put(Iterable<T> entities, Duration ttl) {
* @param <K> the key type
* @throws NullPointerException when the key is null
*/
<K> void deleteByKey(K key);
<K> void delete(K key);

/**
* Removes entities from keys
Expand All @@ -192,6 +192,6 @@ default <T> Iterable<T> put(Iterable<T> entities, Duration ttl) {
* @param <K> the key type
* @throws NullPointerException when the key is null
*/
<K> void deleteByKey(Iterable<K> keys);
<K> void delete(Iterable<K> keys);

}

0 comments on commit b6cef2a

Please sign in to comment.