Interface JPAQueryBuilderInternal

All Known Implementing Classes:
JPAQueryBuilder

public interface JPAQueryBuilderInternal
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add new constraints as if they'd been defined at the top level of the WebQuery (N.B.
    void
    addConstraints(javax.persistence.criteria.Predicate... predicates)
    Add new Predicates which will be ANDed together with the top-level constraints specified in the WebQuery
    void
    Set up fetch joins as specified by the dbfetch/expand/default EAGER fetch annotations
    Get or create non-fetch join(s) to a particular relation path.
    javax.persistence.criteria.Expression<?>
    Get a property as an expression for use in a constraint; will automatically set up non-fetch joins as needed
  • Method Details

    • addConstraints

      void addConstraints(javax.persistence.criteria.Predicate... predicates)
      Add new Predicates which will be ANDed together with the top-level constraints specified in the WebQuery
      Parameters:
      predicates - the predicate(s) to add
    • addConstraints

      void addConstraints(List<WQConstraintLine> constraints)
      Add new constraints as if they'd been defined at the top level of the WebQuery (N.B. will be ANDed together with all other constraints
      Parameters:
      constraints -
    • getProperty

      javax.persistence.criteria.Expression<?> getProperty(WQPath path)
      Get a property as an expression for use in a constraint; will automatically set up non-fetch joins as needed
      Parameters:
      path -
      Returns:
    • getOrCreateJoin

      JPAJoin getOrCreateJoin(WQPath path)
      Get or create non-fetch join(s) to a particular relation path. N.B. should not include a property as part of the path
      Parameters:
      path -
      Returns:
    • applyFetches

      void applyFetches()
      Set up fetch joins as specified by the dbfetch/expand/default EAGER fetch annotations