Interface ValqueriesUpsertUpdate<T>

All Superinterfaces:
ValqueriesUpdate<T>
All Known Implementing Classes:
ValqueriesUpsertUpdateImpl

public interface ValqueriesUpsertUpdate<T> extends ValqueriesUpdate<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    <X> void
    Increment the field by the value in the object being upserted.
    <X> void
    Set the field to the value in the object being upserted.

    Methods inherited from interface com.valqueries.automapper.ValqueriesUpdate

    increment, set
  • Method Details

    • setObjectValue

      <X> void setObjectValue(Function<T,X> field)
      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

      <X> void incrementByObjectValue(Function<T,X> field)
      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