Interface CriteriaMerger


public interface CriteriaMerger
A stream operation merger used to apply conditions to provided queries.
Author:
Mislav Milicevic
  • Method Summary

    Modifier and Type
    Method
    Description
    <ENTITY> CriteriaMergeResult<ENTITY>
    merge(Pipeline<ENTITY> pipeline, Criteria<ENTITY,?> criteria)
    Inspects the provided pipeline and merges all available operations into the provided query.
  • Method Details

    • merge

      <ENTITY> CriteriaMergeResult<ENTITY> merge(Pipeline<ENTITY> pipeline, Criteria<ENTITY,?> criteria)
      Inspects the provided pipeline and merges all available operations into the provided query. Operations are to be removed from the pipeline if they are merged. The modified pipeline and query are stored in a CriteriaMergeResult and returned.
      Type Parameters:
      ENTITY - root entity
      Parameters:
      pipeline - to inspect and merge
      criteria - that provides access to the underlying builder and query
      Returns:
      a new CriteriaMergeResult containing the modified Pipeline and CriteriaQuery