Interface PojoEntityLoadingBindingContext


public interface PojoEntityLoadingBindingContext
  • Method Details

    • entityType

      PojoModelElement entityType()
      Returns:
      The entity type being bound to loading strategies.
    • identifierType

      PojoModelElement identifierType()
      Returns:
      The type of identifiers for the entity type being bound to loading strategies.
    • selectionLoadingStrategy

      <E> void selectionLoadingStrategy(Class<E> expectedEntitySuperType, PojoSelectionLoadingStrategy<? super E> strategy)
      Type Parameters:
      E - An expected entity supertype that the strategy can handle.
      Parameters:
      expectedEntitySuperType - An expected entity supertype that the strategy can handle.
      strategy - The strategy for selection loading, used in particular during search.
    • massLoadingStrategy

      <E> void massLoadingStrategy(Class<E> expectedEntitySuperType, PojoMassLoadingStrategy<? super E,?> strategy)
      Type Parameters:
      E - An expected entity supertype that the strategy can handle.
      Parameters:
      expectedEntitySuperType - An expected entity supertype that the strategy can handle.
      strategy - The strategy for mass loading, used in particular during mass indexing.
    • beanResolver

      BeanResolver beanResolver()
      Returns:
      A bean provider, allowing the retrieval of beans, including CDI/Spring DI beans when in the appropriate environment.
    • param

      <T> T param(String name, Class<T> paramType)
      Type Parameters:
      T - The type of the parameter.
      Parameters:
      name - The name of the param
      paramType - The type of the parameter.
      Returns:
      Get a param defined for the binder by the given name
      Throws:
      SearchException - if it does not exist a param having such name
    • paramOptional

      <T> Optional<T> paramOptional(String name, Class<T> paramType)
      Type Parameters:
      T - The type of the parameter.
      Parameters:
      name - The name of the param
      paramType - The type of the parameter.
      Returns:
      Get an optional param defined for the binder by the given name, a param having such name may either exist or not.