forked from spring-attic/spring-data-aerospike
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add CombinedQueryParam, add validation for query methods
- Loading branch information
Showing
12 changed files
with
457 additions
and
236 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/org/springframework/data/aerospike/query/CombinedQueryParam.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,19 @@ | ||
package org.springframework.data.aerospike.query; | ||
|
||
import lombok.Getter; | ||
|
||
/** | ||
* This class stores arguments passed to each part of a combined repository query, | ||
* e.g., repository.findByNameAndEmail(CombinedQueryParam.of("John"), CombinedQueryParam.of("[email protected]")) | ||
*/ | ||
public record CombinedQueryParam(@Getter Object[] arguments) { | ||
|
||
/** | ||
* This method is required to pass arguments to each part of a combined query | ||
* @param arguments necessary objects | ||
* @return instance of {@link CombinedQueryParam} | ||
*/ | ||
public static CombinedQueryParam of(Object... arguments) { | ||
return new CombinedQueryParam(arguments); | ||
} | ||
} |
246 changes: 166 additions & 80 deletions
246
src/main/java/org/springframework/data/aerospike/repository/query/AerospikeQueryCreator.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.