Class AssociatedEntityQueryExecutor<T>

java.lang.Object
com.foreach.across.modules.entity.query.AssociatedEntityQueryExecutor<T>

public class AssociatedEntityQueryExecutor<T> extends Object
Applies a default filter to an EntityQuery: scopes the query to all entities of a given associated (linked to a parent entity).
Since:
2.0.0
Author:
Arne Vandamme
  • Constructor Details

  • Method Details

    • findAll

      public List<T> findAll(Object parent, EntityQuery query)
    • findAll

      public org.springframework.data.domain.Page<T> findAll(Object parent, EntityQuery query, org.springframework.data.domain.Pageable pageable)
    • buildEqualsOrContainsCondition

      protected EntityQueryCondition buildEqualsOrContainsCondition(Object value)
    • forBeanProperty

      public static AssociatedEntityQueryExecutor<?> forBeanProperty(EntityPropertyDescriptor property)
      Create a fixed query executor that does not support any parameters but will always return the value of the property on the parent entity.
      Parameters:
      property - on the parent that contains the result
      Returns:
      items