Package com.valqueries.automapper
Interface ValqueriesUpsertUpdate<T>
- All Superinterfaces:
ValqueriesUpdate<T>
- All Known Implementing Classes:
ValqueriesUpsertUpdateImpl
-
Method Summary
Modifier and TypeMethodDescription<X> void
incrementByObjectValue
(Function<T, X> field) Increment the field by the value in the object being upserted.<X> void
setObjectValue
(Function<T, X> field) Set the field to the value in the object being upserted.Methods inherited from interface com.valqueries.automapper.ValqueriesUpdate
increment, set
-
Method Details
-
setObjectValue
Set the field to the value in the object being upserted. This is what a usual upsert would do for all the fields.- Type Parameters:
X
- the type of the field- Parameters:
field
- the field to set
-
incrementByObjectValue
Increment the field by the value in the object being upserted. This is useful for counter fields, etc.- Type Parameters:
X
- the type of the field- Parameters:
field
- the field to increment
-