Module io.github.mmm.orm
Package io.github.mmm.orm.statement
Interface SetFragment<E extends EntityBean,C extends DbClause>
- All Known Implementing Classes:
SetClause,UpdateClause,UpdateSet
public interface SetFragment<E extends EntityBean,C extends DbClause>
Interface for a fragment or clause to
set assignments.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionset(io.github.mmm.property.criteria.PropertyAssignment<?> assignment) default <V> Cset(io.github.mmm.value.PropertyPath<V> property) Convenience method forset(PropertyAssignment.ofValue(property)).default <V> Cset(io.github.mmm.value.PropertyPath<V> property, io.github.mmm.value.PropertyPath<V> valueProperty) Convenience method forset(PropertyAssignment.(property, valueProperty)).invalid reference
ofdefault <V> Cset(io.github.mmm.value.PropertyPath<V> property, V value) Convenience method forset(PropertyAssignment.of(property, value)).setAll(io.github.mmm.property.criteria.PropertyAssignment<?>... assignments)
-
Method Details
-
set
- Parameters:
assignment- thePropertyAssignmentto add.- Returns:
- the
DbClausefor fluent API calls.
-
set
Convenience method forset(PropertyAssignment.ofValue(property)).- Type Parameters:
V- type of thevalue.- Parameters:
property- thepropertyto set.- Returns:
- the
DbClausefor fluent API calls.
-
set
Convenience method forset(PropertyAssignment.of(property, value)).- Type Parameters:
V- type of thevalue.- Parameters:
property- thepropertyto set.value- theLiteralvalue to insert (assign thepropertyto).- Returns:
- the
DbClausefor fluent API calls.
-
set
default <V> C set(io.github.mmm.value.PropertyPath<V> property, io.github.mmm.value.PropertyPath<V> valueProperty) Convenience method forset(PropertyAssignment.(property, valueProperty)).invalid reference
of- Type Parameters:
V- type of thevalue.- Parameters:
property- thepropertyto set.valueProperty- thepropertyfrom where to read the value to set.- Returns:
- the
UpdateSetfor fluent API.
-
setAll
- Parameters:
assignments- thePropertyAssignments to add.- Returns:
- the
DbClausefor fluent API calls.
-