Class TestDoubleQuery<T>
- All Implemented Interfaces:
- ValqueriesGroupQuery<T>,- ValqueriesQuery<T>,- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- 
Field SummaryFields inherited from class io.ran.TestDoubleQuerydelayLimit, filters, index, indexLookups, limit, offset, sorts, storeFields inherited from class io.ran.CrudRepoBaseQueryclazz, genericFactory, instance, queryWrapper, typeDescriber
- 
Constructor SummaryConstructorsConstructorDescriptionTestDoubleQuery(Class<T> modelType, GenericFactory genericFactory, MappingHelper mappingHelper, TestDoubleDb testDoubleDb) 
- 
Method SummaryModifier and TypeMethodDescriptionAllows to perform aggregations without grouping by any columns.concat(BiConsumer<T, ?> field, String separator) Add an aggregation that concatenates the values of a field as a string.Add an aggregation that concatenates the values of a field as a string.count(BiConsumer<T, ?> field) Add an aggregation that counts non-NULL values of a field.Add an aggregation that counts non-NULL values of a field.delete()Delete all entries that match the query.eq(Property.PropertyValue<?> propertyValue) execute()Execute the query and return the results as aStream.freetext(Property.PropertyValue<String> propertyValue) freetext(BiConsumer<T, String> field, String value) protected ValqueriesQuery<T>protected <X> XgroupBy(BiConsumer<T, ?>... fields) Create a group by query.Create a group by query.Execute the query.<X extends Comparable<? super X>>
 ValqueriesQuery<T>gt(Property.PropertyValue<X> propertyValue) in(Property.PropertyValueList<?> propertyValues) <X> ValqueriesQuery<T>in(BiConsumer<T, X> field, Collection<X> value) Match if the value of a field equals any of the specified values.<X> ValqueriesQuery<T>in(BiConsumer<T, X> field, X... value) Match if the value of a field equals any of the specified values.<X> ValqueriesQuery<T>in(Function<T, X> field, Collection<X> value) Match if the value of a field equals any of the specified values.<X> ValqueriesQuery<T>Match if the value of a field equals any of the specified values.isNotNull(BiConsumer<T, ?> field) Match if the value of a field is not null.Match if the value of a field is not null.like(Property.PropertyValue<String> propertyValue) like(BiConsumer<T, String> field, String value) Match if the value of a field islikethe specified value.Match if the value of a field islikethe specified value.<X extends Comparable<? super X>>
 ValqueriesQuery<T>lt(Property.PropertyValue<X> propertyValue) <X extends Comparable<? super X>>
 ValqueriesGroupQuery<T>max(BiConsumer<T, X> field) Add an aggregation that calculates the maximum value of a field.<X extends Comparable<? super X>>
 ValqueriesGroupQuery<T>Add an aggregation that calculates the maximum value of a field.<X extends Comparable<? super X>>
 ValqueriesGroupQuery<T>min(BiConsumer<T, X> field) Add an aggregation that calculates the minimum value of a field.<X extends Comparable<? super X>>
 ValqueriesGroupQuery<T>Add an aggregation that calculates the minimum value of a field.notEq(Property.PropertyValue<?> propertyValue) notIn(Property.PropertyValueList<?> propertyValues) <X> ValqueriesQuery<T>notIn(BiConsumer<T, X> field, Collection<X> value) Match if the value of a field does not equal any of the specified values.<X> ValqueriesQuery<T>notIn(BiConsumer<T, X> field, X... value) Match if the value of a field does not equal any of the specified values.<X> ValqueriesQuery<T>notIn(Function<T, X> field, Collection<X> value) Match if the value of a field does not equal any of the specified values.<X> ValqueriesQuery<T>Match if the value of a field does not equal any of the specified values.notLike(Property.PropertyValue<String> propertyValue) notLike(BiConsumer<T, String> field, String value) Match if the value of a field is notlikethe specified value.Match if the value of a field is notlikethe specified value.<X,Z extends CrudRepository.InlineQuery<X, Z>> 
 ValqueriesQuery<T>subQuery(RelationDescriber relationDescriber, Consumer<Z> consumer) <X> ValqueriesQuery<T>subQuery(BiConsumer<T, X> field, Consumer<ValqueriesQuery<X>> subQuery) Perform further queries on a related model.<X> ValqueriesQuery<T>subQuery(Function<T, X> field, Consumer<ValqueriesQuery<X>> subQuery) Perform further queries on a related model.<X> ValqueriesQuery<T>subQueryList(RelationDescriber relationDescriber, Consumer<ValqueriesQuery<X>> subQuery) <X> ValqueriesQuery<T>subQueryList(BiConsumer<T, ? extends Collection<X>> field, Consumer<ValqueriesQuery<X>> subQuery) Perform further queries on a related model which has a one-to-many relation.<X> ValqueriesQuery<T>subQueryList(Function<T, ? extends Collection<X>> field, Consumer<ValqueriesQuery<X>> subQuery) Perform further queries on a related model which has a one-to-many relation.sum(BiConsumer<T, ? extends Number> field) Add an aggregation that sums the values of a field.Add an aggregation that sums the values of a field.update(Consumer<ValqueriesUpdate<T>> updaterConsumer) withEager(RelationDescriber relationDescriber) Methods inherited from class io.ran.TestDoubleQueryand, count, distinct, executeInternal, gte, limit, limit, lte, or, selectField, sortAscending, sortDescendingMethods inherited from class io.ran.CrudRepoBaseQuerydistinct, eq, eq, gt, gt, gte, gte, isNull, isNull, lt, lt, lte, lte, notEq, notEq, selectField, sortAscending, sortAscending, sortDescending, sortDescending, withEager, withEagerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ran.CrudRepository.InlineQueryand, count, distinct, distinct, eq, eq, gt, gt, gte, gte, gte, isNull, isNull, limit, limit, lt, lt, lte, lte, lte, notEq, notEq, or, selectField, selectField, sortAscending, sortAscending, sortAscending, sortDescending, sortDescending, sortDescending, withEager, withEager
- 
Constructor Details- 
TestDoubleQuerypublic TestDoubleQuery(Class<T> modelType, GenericFactory genericFactory, MappingHelper mappingHelper, TestDoubleDb testDoubleDb) 
 
- 
- 
Method Details- 
eq- Specified by:
- eqin interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- eqin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
notEq- Specified by:
- notEqin interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- notEqin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
gtpublic <X extends Comparable<? super X>> ValqueriesQuery<T> gt(Property.PropertyValue<X> propertyValue) - Specified by:
- gtin interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- gtin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
ltpublic <X extends Comparable<? super X>> ValqueriesQuery<T> lt(Property.PropertyValue<X> propertyValue) - Specified by:
- ltin interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- ltin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
isNull- Specified by:
- isNullin interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- isNullin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
isNotNull- Specified by:
- isNotNullin interface- ValqueriesQuery<T>
 
- 
in- Specified by:
- inin interface- ValqueriesQuery<T>
 
- 
notIn- Specified by:
- notInin interface- ValqueriesQuery<T>
 
- 
like- Specified by:
- likein interface- ValqueriesQuery<T>
 
- 
notLike- Specified by:
- notLikein interface- ValqueriesQuery<T>
 
- 
freetext- Specified by:
- freetextin interface- ValqueriesQuery<T>
 
- 
withEager- Specified by:
- withEagerin interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- withEagerin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
subQuerypublic <X,Z extends CrudRepository.InlineQuery<X, ValqueriesQuery<T> subQueryZ>> (RelationDescriber relationDescriber, Consumer<Z> consumer) - Specified by:
- subQueryin interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- subQueryin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
getQuery- Specified by:
- getQueryin class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
 
- 
getValue
- 
inDescription copied from interface:ValqueriesQueryMatch if the value of a field equals any of the specified values.Example: query.in(Person::getName, List.of("Bob", "Frank"))This will match people with the name "Bob" or "Frank". Null values are never in, but if a mix of null and non-null values are passed, the null values will be ignored due to the OR nature of theinoperation.- Specified by:
- inin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the getter of the field to match
- value- the values to match, in an OR fashion
- Returns:
- the query, for chaining
 
- 
inDescription copied from interface:ValqueriesQueryMatch if the value of a field equals any of the specified values.Example: query.in(Person::setName, List.of("Bob", "Frank"))This will match people with the name "Bob" or "Frank". Null values are never in, but if a mix of null and non-null values are passed, the null values will be ignored due to the OR nature of theinoperation.If you wish to match both null and non-null values you can use .or(or -> or.isNull(field).in(field, value).- Specified by:
- inin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the setter of the field to match
- value- the values to match, in an OR fashion
- Returns:
- the query, for chaining
 
- 
inDescription copied from interface:ValqueriesQueryMatch if the value of a field equals any of the specified values.Example: query.in(Person::getName, "Bob", "Frank")This will match people with the name "Bob" or "Frank". Null values are never in, but if a mix of null and non-null values are passed, the null values will be ignored due to the OR nature of theinoperation.If you wish to match both null and non-null values you can use .or(or -> or.isNull(field).in(field, value).- Specified by:
- inin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the getter of the field to match
- value- the values to match, in an OR fashion
- Returns:
- the query, for chaining
 
- 
inDescription copied from interface:ValqueriesQueryMatch if the value of a field equals any of the specified values.Example: query.in(Person::setName, "Bob", "Frank")This will match people with the name "Bob" or "Frank". Null values are never in, but if a mix of null and non-null values are passed, the null values will be ignored due to the OR nature of theinoperation.If you wish to match both null and non-null values you can use .or(or -> or.isNull(field).in(field, value).- Specified by:
- inin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the setter of the field to match
- value- the values to match, in an OR fashion
- Returns:
- the query, for chaining
 
- 
notInDescription copied from interface:ValqueriesQueryMatch if the value of a field does not equal any of the specified values.Example: query.notIn(Person::getName, List.of("Bob", "Frank"))This will match people with a name other than "Bob" or "Frank", but not people with a null name. If the passed values include a null value, no match will be made. The empty list is a valid argument, and will match all values. This is equivalent to not having the condition at all. - Specified by:
- notInin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the getter of the field to match
- value- the values to match, in an AND fashion
- Returns:
- the query, for chaining
 
- 
notInDescription copied from interface:ValqueriesQueryMatch if the value of a field does not equal any of the specified values.Example: query.notIn(Person::setName, List.of("Bob", "Frank"))This will match people with a name other than "Bob" or "Frank", but not people with a null name. If the passed values include a null value, no match will be made. The empty list is a valid argument, and will match all values. This is equivalent to not having the condition at all. - Specified by:
- notInin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the setter of the field to match
- value- the values to match, in an AND fashion
- Returns:
- the query, for chaining
 
- 
notInDescription copied from interface:ValqueriesQueryMatch if the value of a field does not equal any of the specified values.Example: query.notIn(Person::getName, "Bob", "Frank")This will match people with a name other than "Bob" or "Frank", but not people with a null name. If the passed values include a null value, no match will be made. The empty list is a valid argument, and will match all values. This is equivalent to not having the condition at all. - Specified by:
- notInin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the getter of the field to match
- value- the values to match, in an AND fashion
- Returns:
- the query, for chaining
 
- 
notInDescription copied from interface:ValqueriesQueryMatch if the value of a field does not equal any of the specified values.Example: query.notIn(Person::setName, "Bob", "Frank")This will match people with a name other than "Bob" or "Frank", but not people with a null name. If the passed values include a null value, no match will be made. The empty list is a valid argument, and will match all values. This is equivalent to not having the condition at all. - Specified by:
- notInin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the field and value
- Parameters:
- field- a method reference to the setter of the field to match
- value- the values to match, in an AND fashion
- Returns:
- the query, for chaining
 
- 
likeDescription copied from interface:ValqueriesQueryMatch if the value of a field islikethe specified value.Like uses a simplified version of SQL LIKE, where the value can contain the SQL wildcards % and _. The % wildcard matches any number of characters, including zero. The _ wildcard matches exactly one character. Example: query.like(Person::getName, "Bob%")This will match people with a name starting with "Bob". Secondary example: query.like(Person::getName, "%Bob%")This will match people with a name containing "Bob" anywhere in the name. Tertiary example: query.like(Person::getName, "B_b")This will match people with a name containing "B", followed by any letter, then followed by "b", exactly. likewill never match null values in the database, additionally if a null value is passed, no match will be made even against non-null values.- Specified by:
- likein interface- ValqueriesQuery<T>
- Parameters:
- field- a method reference to the getter of the field to match
- value- the value to match
- Returns:
- the query, for chaining
 
- 
likeDescription copied from interface:ValqueriesQueryMatch if the value of a field islikethe specified value.Like uses a simplified version of SQL LIKE, where the value can contain the SQL wildcards % and _. The % wildcard matches any number of characters, including zero. The _ wildcard matches exactly one character. Example: query.like(Person::setName, "Bob%")This will match people with a name starting with "Bob". Secondary example: query.like(Person::setName, "%Bob%")This will match people with a name containing "Bob" anywhere in the name. Tertiary example: query.like(Person::setName, "B_b")This will match people with a name containing "B", followed by any letter, then followed by "b", exactly. likewill never match null values in the database, additionally if a null value is passed, no match will be made even against non-null values.- Specified by:
- likein interface- ValqueriesQuery<T>
- Parameters:
- field- a method reference to the setter of the field to match
- value- the value to match
- Returns:
- the query, for chaining
 
- 
notLikeDescription copied from interface:ValqueriesQueryMatch if the value of a field is notlikethe specified value.Like uses a simplified version of SQL LIKE, where the value can contain the SQL wildcards % and _. The % wildcard matches any number of characters, including zero. The _ wildcard matches exactly one character. Example: query.notLike(Person::getName, "Bob%")This will match people with a name not starting with "Bob". Secondary example: query.notLike(Person::getName, "%Bob%")This will match people with a name not containing "Bob" anywhere in the name. Tertiary example: query.notLike(Person::getName, "B_b")This will match people with a name that is not "B", followed by any letter, then followed by "b", exactly. For example it will match "Frank" or "Bubba", but not "Bob". notLikewill never match null values in the database, additionally if a null value is passed, no match will be made even against non-null values.- Specified by:
- notLikein interface- ValqueriesQuery<T>
- Parameters:
- field- a method reference to the getter of the field to match
- value- the value to match
- Returns:
- the query, for chaining
 
- 
notLikeDescription copied from interface:ValqueriesQueryMatch if the value of a field is notlikethe specified value.Like uses a simplified version of SQL LIKE, where the value can contain the SQL wildcards % and _. The % wildcard matches any number of characters, including zero. The _ wildcard matches exactly one character. Example: query.notLike(Person::setName, "Bob%")This will match people with a name not starting with "Bob". Secondary example: query.notLike(Person::setName, "%Bob%")This will match people with a name not containing "Bob" anywhere in the name. Tertiary example: query.notLike(Person::setName, "B_b")This will match people with a name that is not "B", followed by any letter, then followed by "b", exactly. For example, it will match "Frank" or "Bubba", but not "Bob". notLikewill never match null values in the database, additionally if a null value is passed, no match will be made even against non-null values.- Specified by:
- notLikein interface- ValqueriesQuery<T>
- Parameters:
- field- a method reference to the setter of the field to match
- value- the value to match
- Returns:
- the query, for chaining
 
- 
freetext- Specified by:
- freetextin interface- ValqueriesQuery<T>
 
- 
freetext- Specified by:
- freetextin interface- ValqueriesQuery<T>
 
- 
isNotNullDescription copied from interface:ValqueriesQueryMatch if the value of a field is not null.Example: query.isNotNull(Person::getEmail)This will match people whose email is not null. Note: if the model class has fields of primitive type, they won't be null, even if the database contains NULL values. In this case isNotNull will still match correctly based on the values in the database. - Specified by:
- isNotNullin interface- ValqueriesQuery<T>
- Parameters:
- field- a method reference to the getter of the field to match
- Returns:
- the query, for chaining
 
- 
isNotNullDescription copied from interface:ValqueriesQueryMatch if the value of a field is not null.Example: query.isNotNull(Person::setEmail)This will match people whose email is not null. Note: if the model class has fields of primitive type, they won't be null, even if the database contains NULL values. In this case isNotNull will still match correctly based on the values in the database. - Specified by:
- isNotNullin interface- ValqueriesQuery<T>
- Parameters:
- field- a method reference to the setter of the field to match
- Returns:
- the query, for chaining
 
- 
subQueryDescription copied from interface:ValqueriesQueryPerform further queries on a related model.A related model is one that is referenced by a field in the current model and which is mapped via a Relationannotation.Example: query.subQuery(Person::getAddress, subQuery -> subQuery.eq(Address::getCity, "Stockholm"))This will match people whose address has the city "Stockholm". The subQuery is not executed until the main query is executed. The subQuery is executed in the same transaction as the main query. - Specified by:
- subQueryin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the sub-object
- Parameters:
- field- a method reference to the getter of the field to match
- subQuery- a consumer that will be called with the subQuery
- Returns:
- the query, for chaining
 
- 
subQuerypublic <X> ValqueriesQuery<T> subQuery(BiConsumer<T, X> field, Consumer<ValqueriesQuery<X>> subQuery) Description copied from interface:ValqueriesQueryPerform further queries on a related model.A related model is one that is referenced by a field in the current model and which is mapped via a Relationannotation.Example: query.subQuery(Person::setAddress, subQuery -> subQuery.eq(Address::setCity, "Stockholm"))This will match people whose address has the city "Stockholm". The subQuery is not executed until the main query is executed. The subQuery is executed in the same transaction as the main query. - Specified by:
- subQueryin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the sub-object
- Parameters:
- field- a method reference to the setter of the field to match
- subQuery- a consumer that will be called with the subQuery
- Returns:
- the query, for chaining
 
- 
subQueryListpublic <X> ValqueriesQuery<T> subQueryList(Function<T, ? extends Collection<X>> field, Consumer<ValqueriesQuery<X>> subQuery) Description copied from interface:ValqueriesQueryPerform further queries on a related model which has a one-to-many relation.A related model is one that is referenced by a field in the current model and which is mapped via a Relationannotation.Example: Assume that Person object has a list of Address objects, and that the Address object has a field called "city". query.subQueryList(Person::getAddresses, subQuery -> subQuery.eq(Address::getCity, "Stockholm"))This will match people who have any addresses where the city is "Stockholm". The subQuery is not executed until the main query is executed. The subQuery is executed in the same transaction as the main query. - Specified by:
- subQueryListin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the sub-object
- subQuery- a consumer that will be called with the subQuery
- Returns:
- the query, for chaining
 
- 
subQueryListpublic <X> ValqueriesQuery<T> subQueryList(BiConsumer<T, ? extends Collection<X>> field, Consumer<ValqueriesQuery<X>> subQuery) Description copied from interface:ValqueriesQueryPerform further queries on a related model which has a one-to-many relation.A related model is one that is referenced by a field in the current model and which is mapped via a Relationannotation.Example: Assume that Person object has a list of Address objects, and that the Address object has a field called "city". query.subQueryList(Person::setAddresses, subQuery -> subQuery.eq(Address::setCity, "Stockholm"))This will match people who have any address(es) where the city is "Stockholm". The subQuery is not executed until the main query is executed. The subQuery is executed in the same transaction as the main query. - Specified by:
- subQueryListin interface- ValqueriesQuery<T>
- Type Parameters:
- X- the type of the sub-object
- subQuery- a consumer that will be called with the subQuery
- Returns:
- the query, for chaining
 
- 
subQueryListpublic <X> ValqueriesQuery<T> subQueryList(RelationDescriber relationDescriber, Consumer<ValqueriesQuery<X>> subQuery) - Specified by:
- subQueryListin interface- ValqueriesQuery<T>
 
- 
update- Specified by:
- updatein interface- ValqueriesQuery<T>
 
- 
groupByDescription copied from interface:ValqueriesQueryCreate a group by query.- Specified by:
- groupByin interface- ValqueriesQuery<T>
- Parameters:
- fields- Getters of the fields to group by. The values of- ValqueriesGroupResultRow.groupByValues()will be in the same order.
- Returns:
- the group by query that allows adding aggregations.
 
- 
groupByDescription copied from interface:ValqueriesQueryCreate a group by query.- Specified by:
- groupByin interface- ValqueriesQuery<T>
- Parameters:
- fields- Setters of the fields to group by. The values of- ValqueriesGroupResultRow.groupByValues()will be in the same order.
- Returns:
- the group by query that allows adding aggregations.
 
- 
aggregateAllDescription copied from interface:ValqueriesQueryAllows to perform aggregations without grouping by any columns. The result will be a single row with emptyValqueriesGroupResultRow.groupByValues().- Specified by:
- aggregateAllin interface- ValqueriesQuery<T>
- Returns:
- the query that allows adding aggregations.
 
- 
countDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that counts non-NULL values of a field. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- countin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Getter of the field to count
- Returns:
- this query, for chaining
 
- 
countDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that counts non-NULL values of a field.- Specified by:
- countin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Setter of the field to count
- Returns:
- this query, for chaining
 
- 
sumDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that sums the values of a field. ForFloatandDoublefields the result will beDouble, forBigIntegerandBigDecimalthe result will be the same, for all other fields the result will beLong. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- sumin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Getter of the field to sum
- Returns:
- this query, for chaining
 
- 
sumDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that sums the values of a field. ForFloatandDoublefields the result will beDouble, forBigIntegerandBigDecimalthe result will be the same, for all other fields the result will beLong. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- sumin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Setter of the field to sum
- Returns:
- this query, for chaining
 
- 
maxDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that calculates the maximum value of a field. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- maxin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Getter of the field to calculate the maximum of. (If the type is not comparable in Java, but it is comparable in the database, cast the argument to a raw type)
- Returns:
- this query, for chaining
 
- 
maxDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that calculates the maximum value of a field. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- maxin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Setter of the field to calculate the maximum of. (If the type is not comparable in Java, but it is comparable in the database, cast the argument to a raw type)
- Returns:
- this query, for chaining
 
- 
minDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that calculates the minimum value of a field. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- minin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Getter of the field to calculate the minimum of. (If the type is not comparable in Java, but it is comparable in the database, cast the argument to a raw type)
- Returns:
- this query, for chaining
 
- 
minDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that calculates the minimum value of a field. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- minin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Setter of the field to calculate the minimum of. (If the type is not comparable in Java, but it is comparable in the database, cast the argument to a raw type)
- Returns:
- this query, for chaining
 
- 
concatDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that concatenates the values of a field as a string. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- concatin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Getter of the field to concatenate
- separator- The separator to use between values
- Returns:
- this query, for chaining
 
- 
concatDescription copied from interface:ValqueriesGroupQueryAdd an aggregation that concatenates the values of a field as a string. The values inValqueriesGroupResultRow.aggregationValues()will be in the order aggregations were added to the query.- Specified by:
- concatin interface- ValqueriesGroupQuery<T>
- Parameters:
- field- Setter of the field to concatenate
- separator- The separator to use between values
- Returns:
- this query, for chaining
 
- 
groupByExecuteDescription copied from interface:ValqueriesGroupQueryExecute the query.- Specified by:
- groupByExecutein interface- ValqueriesGroupQuery<T>
- Returns:
- A stream of rows, each containing the values of the fields that were grouped by and the values of the aggregations, both in the same order they were queried.
 
- 
executeDescription copied from interface:CrudRepository.InlineQueryExecute the query and return the results as aStream.This is a terminal operation. As such, the query should not be reused after this method is called. The resulting Streamfrom the operation may be a lazy stream, meaning that the results are not fetched from the database until they are accessed. As such it is important that a terminal operation is performed on the stream within a reasonable time frame to avoid holding database connections open.- Specified by:
- executein interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- executein class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
- Returns:
- a Streamof the results
 
- 
deleteDescription copied from interface:CrudRepository.InlineQueryDelete all entries that match the query.This is a terminal operation. As such, the query should not be reused after this method is called. WARNING: If you invoke no query methods prior to this, all rows in the table with be deleted. - Specified by:
- deletein interface- CrudRepository.InlineQuery<T,- ValqueriesQuery<T>> 
- Overrides:
- deletein class- TestDoubleQuery<T,- ValqueriesQuery<T>> 
- Returns:
- a CrudRepository.CrudUpdateResultwith the number of rows affected
- See Also:
 
 
-