Package com.valqueries.automapper
Class ValqueriesUpsertUpdateImpl<T>
java.lang.Object
com.valqueries.automapper.ValqueriesUpdateImpl<T>
com.valqueries.automapper.ValqueriesUpsertUpdateImpl<T>
- All Implemented Interfaces:
ValqueriesUpdate<T>
,ValqueriesUpsertUpdate<T>
public class ValqueriesUpsertUpdateImpl<T>
extends ValqueriesUpdateImpl<T>
implements ValqueriesUpsertUpdate<T>
-
Field Summary
Fields inherited from class com.valqueries.automapper.ValqueriesUpdateImpl
instance, queryWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<X> void
incrementByObjectValue
(Function<T, X> field) Increment the field by the value in the object being upserted.boolean
isEmpty()
<X> void
setObjectValue
(Function<T, X> field) Set the field to the value in the object being upserted.Methods inherited from class com.valqueries.automapper.ValqueriesUpdateImpl
getIncrementValues, getPropertyValues, increment, set
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.valqueries.automapper.ValqueriesUpdate
increment, set
-
Constructor Details
-
ValqueriesUpsertUpdateImpl
-
-
Method Details
-
setObjectValue
Description copied from interface:ValqueriesUpsertUpdate
Set the field to the value in the object being upserted. This is what a usual upsert would do for all the fields.- Specified by:
setObjectValue
in interfaceValqueriesUpsertUpdate<T>
- Type Parameters:
X
- the type of the field- Parameters:
field
- the field to set
-
incrementByObjectValue
Description copied from interface:ValqueriesUpsertUpdate
Increment the field by the value in the object being upserted. This is useful for counter fields, etc.- Specified by:
incrementByObjectValue
in interfaceValqueriesUpsertUpdate<T>
- Type Parameters:
X
- the type of the field- Parameters:
field
- the field to increment
-
getSetObjValues
-
getIncrementByObjValues
-
isEmpty
public boolean isEmpty()
-