Class ValqueriesUpdateImpl<T>

java.lang.Object
com.valqueries.automapper.ValqueriesUpdateImpl<T>
All Implemented Interfaces:
ValqueriesUpdate<T>
Direct Known Subclasses:
ValqueriesUpsertUpdateImpl

public class ValqueriesUpdateImpl<T> extends Object implements ValqueriesUpdate<T>
  • Field Details

    • instance

      protected final T instance
    • queryWrapper

      protected final QueryWrapper queryWrapper
  • Constructor Details

    • ValqueriesUpdateImpl

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

    • set

      public <X> void set(Function<T,X> field, X value)
      Description copied from interface: ValqueriesUpdate
      Set a field to the specified value.
      Specified by:
      set in interface ValqueriesUpdate<T>
      Type Parameters:
      X - the type of the field
      Parameters:
      field - the field to set
      value - the value to set the field to
    • increment

      public <X> void increment(Function<T,X> field, X value)
      Description copied from interface: ValqueriesUpdate
      Increment a field by the specified value.
      Specified by:
      increment in interface ValqueriesUpdate<T>
      Type Parameters:
      X - the type of the field
      Parameters:
      field - the field to increment
      value - the value to increment the field by
    • getPropertyValues

      public List<Property.PropertyValue<?>> getPropertyValues()
    • getIncrementValues

      public List<Property.PropertyValue<?>> getIncrementValues()