@@ -35,7 +35,7 @@ public interface QueryByExampleExecutor<T> {
35
35
/**
36
36
* Returns a single entity matching the given {@link Example} or {@literal null} if none was found.
37
37
*
38
- * @param example can be {@literal null}.
38
+ * @param example must not be {@literal null}.
39
39
* @return a single entity matching the given {@link Example} or {@link Optional#empty()} if none was found.
40
40
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException if the Example yields more than one result.
41
41
*/
@@ -45,7 +45,7 @@ public interface QueryByExampleExecutor<T> {
45
45
* Returns all entities matching the given {@link Example}. In case no match could be found an empty {@link Iterable}
46
46
* is returned.
47
47
*
48
- * @param example can be {@literal null}.
48
+ * @param example must not be {@literal null}.
49
49
* @return all entities matching the given {@link Example}.
50
50
*/
51
51
<S extends T > Iterable <S > findAll (Example <S > example );
@@ -54,7 +54,7 @@ public interface QueryByExampleExecutor<T> {
54
54
* Returns all entities matching the given {@link Example} applying the given {@link Sort}. In case no match could be
55
55
* found an empty {@link Iterable} is returned.
56
56
*
57
- * @param example can be {@literal null}.
57
+ * @param example must not be {@literal null}.
58
58
* @param sort the {@link Sort} specification to sort the results by, must not be {@literal null}.
59
59
* @return all entities matching the given {@link Example}.
60
60
* @since 1.10
@@ -65,7 +65,7 @@ public interface QueryByExampleExecutor<T> {
65
65
* Returns a {@link Page} of entities matching the given {@link Example}. In case no match could be found, an empty
66
66
* {@link Page} is returned.
67
67
*
68
- * @param example can be {@literal null}.
68
+ * @param example must not be {@literal null}.
69
69
* @param pageable can be {@literal null}.
70
70
* @return a {@link Page} of entities matching the given {@link Example}.
71
71
*/
@@ -74,15 +74,15 @@ public interface QueryByExampleExecutor<T> {
74
74
/**
75
75
* Returns the number of instances matching the given {@link Example}.
76
76
*
77
- * @param example the {@link Example} to count instances for, can be {@literal null}.
77
+ * @param example the {@link Example} to count instances for. Must not be {@literal null}.
78
78
* @return the number of instances matching the {@link Example}.
79
79
*/
80
80
<S extends T > long count (Example <S > example );
81
81
82
82
/**
83
83
* Checks whether the data store contains elements that match the given {@link Example}.
84
84
*
85
- * @param example the {@link Example} to use for the existence check, can be {@literal null}.
85
+ * @param example the {@link Example} to use for the existence check. Must not be {@literal null}.
86
86
* @return {@literal true} if the data store contains elements that match the given {@link Example}.
87
87
*/
88
88
<S extends T > boolean exists (Example <S > example );
0 commit comments