-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41c5a65
commit 9d4ccc5
Showing
20 changed files
with
170 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/PanacheUpdate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package io.quarkus.mongodb.panache.common; | ||
|
||
import java.util.Map; | ||
|
||
import io.quarkus.panache.common.Parameters; | ||
|
||
/** | ||
* Interface representing an update query. | ||
* | ||
* Use one of its methods to perform the update query. | ||
*/ | ||
public interface PanacheUpdate extends io.quarkus.mongodb.panache.PanacheUpdate { | ||
|
||
/** | ||
* Execute the update query with the update document. | ||
* | ||
* @param query a {@link io.quarkus.mongodb.panache query string} | ||
* @param params params optional sequence of indexed parameters | ||
* @return the number of entities updated. | ||
*/ | ||
public long where(String query, Object... params); | ||
|
||
/** | ||
* Execute the update query with the update document. | ||
* | ||
* @param query a {@link io.quarkus.mongodb.panache query string} | ||
* @param params {@link Map} of named parameters | ||
* @return the number of entities updated. | ||
*/ | ||
public long where(String query, Map<String, Object> params); | ||
|
||
/** | ||
* Execute the update query with the update document. | ||
* | ||
* @param query a {@link io.quarkus.mongodb.panache query string} | ||
* @param params {@link Parameters} of named parameters | ||
* @return the number of entities updated. | ||
*/ | ||
public long where(String query, Parameters params); | ||
|
||
/** | ||
* Execute an update on all documents with the update document. | ||
* | ||
* @return the number of entities updated. | ||
*/ | ||
public long all(); | ||
} |
47 changes: 47 additions & 0 deletions
47
...ntime/src/main/java/io/quarkus/mongodb/panache/common/reactive/ReactivePanacheUpdate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package io.quarkus.mongodb.panache.common.reactive; | ||
|
||
import java.util.Map; | ||
|
||
import io.quarkus.panache.common.Parameters; | ||
import io.smallrye.mutiny.Uni; | ||
|
||
/** | ||
* Interface representing an update query. | ||
* | ||
* Use one of its methods to perform the update query. | ||
*/ | ||
public interface ReactivePanacheUpdate extends io.quarkus.mongodb.panache.reactive.ReactivePanacheUpdate { | ||
/** | ||
* Execute the update query with the update document. | ||
* | ||
* @param query a {@link io.quarkus.mongodb.panache query string} | ||
* @param params params optional sequence of indexed parameters | ||
* @return the number of entities updated. | ||
*/ | ||
public Uni<Long> where(String query, Object... params); | ||
|
||
/** | ||
* Execute the update query with the update document. | ||
* | ||
* @param query a {@link io.quarkus.mongodb.panache query string} | ||
* @param params {@link Map} of named parameters | ||
* @return the number of entities updated. | ||
*/ | ||
public Uni<Long> where(String query, Map<String, Object> params); | ||
|
||
/** | ||
* Execute the update query with the update document. | ||
* | ||
* @param query a {@link io.quarkus.mongodb.panache query string} | ||
* @param params {@link Parameters} of named parameters | ||
* @return the number of entities updated. | ||
*/ | ||
public Uni<Long> where(String query, Parameters params); | ||
|
||
/** | ||
* Execute an update on all documents with the update document. | ||
* | ||
* @return the number of entities updated. | ||
*/ | ||
public Uni<Long> all(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rc/main/java/io/quarkus/mongodb/panache/kotlin/deployment/KotlinImperativeTypeBundle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...otlin/io/quarkus/mongodb/panache/kotlin/reactive/runtime/KotlinReactiveMongoOperations.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.