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> 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> 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> 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