Class AttributePaths
java.lang.Object
com.blazebit.persistence.view.metamodel.AttributePaths
A util class for creating attribute paths.
- Since:
- 1.5.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.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.static <X,
E> AttributePath<X, E, E> of
(MethodPluralAttribute<X, ?, E> attribute) Creates an attribute path for the given attribute.static <X,
E> AttributePath<X, E, E> of
(MethodSingularAttribute<X, E> attribute) Creates an attribute path for the given attribute.static <X,
E> AttributePath<X, E, E> Creates an attribute path for the given path string.
-
Method Details
-
of
Creates an attribute path for the given path string.- Type Parameters:
X
- The source typeE
- The element type- Parameters:
attributePath
- The attribute path string- Returns:
- The attribute path
-
of
Creates an attribute path for the given attribute.- Type Parameters:
X
- The source typeE
- The element type- Parameters:
attribute
- The attribute- Returns:
- The attribute path
-
of
Creates an attribute path for the given attribute.- Type Parameters:
X
- The source typeE
- The element type- Parameters:
attribute
- The attribute- Returns:
- The attribute path
-
of
public static <X,C extends Collection<E>, AttributePath<X,E> C, ofE> (MethodMultiListAttribute<X, E, C> attribute) Creates an attribute path for the given multi-list attribute.- Type Parameters:
X
- The source typeC
- The element type to resolve againstE
- The element type- Parameters:
attribute
- The attribute- Returns:
- The attribute path
-
of
public static <X,C extends Collection<E>, AttributePath<X,E> C, ofE> (MethodMultiMapAttribute<X, ?, E, C> attribute) Creates an attribute path for the given multi-map attribute.- Type Parameters:
X
- The source typeC
- The element type to resolve againstE
- The element type- Parameters:
attribute
- The attribute- Returns:
- The attribute path
-