Class AttributePaths

java.lang.Object
com.blazebit.persistence.view.metamodel.AttributePaths

public final class AttributePaths extends Object
A util class for creating attribute paths.
Since:
1.5.0
Author:
Christian Beikov
  • Method Details

    • of

      public static <X, E> AttributePath<X,E,E> of(String attributePath)
      Creates an attribute path for the given path string.
      Type Parameters:
      X - The source type
      E - The element type
      Parameters:
      attributePath - The attribute path string
      Returns:
      The attribute path
    • of

      public static <X, E> AttributePath<X,E,E> of(MethodSingularAttribute<X,E> attribute)
      Creates an attribute path for the given attribute.
      Type Parameters:
      X - The source type
      E - The element type
      Parameters:
      attribute - The attribute
      Returns:
      The attribute path
    • of

      public static <X, E> AttributePath<X,E,E> of(MethodPluralAttribute<X,?,E> attribute)
      Creates an attribute path for the given attribute.
      Type Parameters:
      X - The source type
      E - The element type
      Parameters:
      attribute - The attribute
      Returns:
      The attribute path
    • of

      public static <X, C extends Collection<E>, E> AttributePath<X,C,E> of(MethodMultiListAttribute<X,E,C> attribute)
      Creates an attribute path for the given multi-list attribute.
      Type Parameters:
      X - The source type
      C - The element type to resolve against
      E - The element type
      Parameters:
      attribute - The attribute
      Returns:
      The attribute path
    • of

      public static <X, C extends Collection<E>, E> AttributePath<X,C,E> of(MethodMultiMapAttribute<X,?,E,C> attribute)
      Creates an attribute path for the given multi-map attribute.
      Type Parameters:
      X - The source type
      C - The element type to resolve against
      E - The element type
      Parameters:
      attribute - The attribute
      Returns:
      The attribute path