Interface QueryMapper.MapperUpdateWhere
- All Superinterfaces:
-
QueryMapper.MapperUpdateQueryBuild
- Enclosing interface:
-
QueryMapper
Represents the conditional composition step of the fluent update
API.
This step allows combining multiple update conditions using logical operators before executing the update operation.
@Inject
Template template;
template.update(Book.class)
.set("published").to(true)
.where("author").eq("Ada")
.and("publishedYear").gte(2020)
.execute();
The returned instance is mutable and not thread-safe. Support for
logical operators depends on the capabilities of the underlying
NoSQL database.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionAdds an AND condition using the specified column name.Adds an OR condition using the specified column name.Methods inherited from interface QueryMapper.MapperUpdateQueryBuild
execute
-
Method Details
-
and
Adds an AND condition using the specified column name.template.update(Book.class) .set("published").to(true) .where("author").eq("Ada") .and("publishedYear").gte(2020) .execute();- Parameters:
-
name- the column name for the condition - Returns:
-
the
QueryMapper.MapperUpdateNameCondition - Throws:
-
NullPointerException- when name is null
-
or
Adds an OR condition using the specified column name.template.update(Book.class) .set("featured").to(true) .where("author").eq("Ada") .or("author").eq("Hermann") .execute();- Parameters:
-
name- the column name for the condition - Returns:
-
the
QueryMapper.MapperUpdateNameCondition - Throws:
-
NullPointerException- when name is null
-