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>
  • Constructor Details

    • ValqueriesUpsertUpdateImpl

      public ValqueriesUpsertUpdateImpl(T instance, QueryWrapper queryWrapper)
  • Method Details

    • setObjectValue

      public <X> void setObjectValue(Function<T,X> field)
      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 interface ValqueriesUpsertUpdate<T>
      Type Parameters:
      X - the type of the field
      Parameters:
      field - the field to set
    • incrementByObjectValue

      public <X> void incrementByObjectValue(Function<T,X> field)
      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 interface ValqueriesUpsertUpdate<T>
      Type Parameters:
      X - the type of the field
      Parameters:
      field - the field to increment
    • getSetObjValues

      public List<Property<?>> getSetObjValues()
    • getIncrementByObjValues

      public List<Property<?>> getIncrementByObjValues()
    • isEmpty

      public boolean isEmpty()