Class CountItemDeltaProcessor<T>

Type Parameters:
T - expected type of the real value, but we don't care in this class
All Implemented Interfaces:
ItemDeltaProcessor

public class CountItemDeltaProcessor<T> extends FinalValueDeltaProcessor<T>
Delta processor for columns storing size of multi-value item.
  • Constructor Details

    • CountItemDeltaProcessor

      public CountItemDeltaProcessor(SqaleUpdateContext<?,Q,R> context, Function<Q,com.querydsl.core.types.dsl.NumberPath<Integer>> rootToQueryItem)
      Type Parameters:
      Q - entity query type from which the attribute is resolved
      R - row type related to CountItemDeltaProcessor
  • Method Details

    • setRealValues

      public void setRealValues(Collection<?> values)
      Description copied from class: ItemDeltaValueProcessor
      Sets the provided real values in the database, implements REPLACE modification. This may involve setting the value of some columns or delete/insert of sub-entities. This is a general case covering both multi-value and single-value items.
      Overrides:
      setRealValues in class ItemDeltaValueProcessor<T>
    • delete

      public void delete()
      Description copied from class: ItemDeltaValueProcessor
      Resets the database columns or deletes sub-entities like refs, containers, etc. This must be implemented to support clearing the columns of single-value embedded containers.
      Specified by:
      delete in class ItemDeltaValueProcessor<T>