Class RootWrapper<X>
- java.lang.Object
-
- org.omnifaces.persistence.service.RootWrapper<X>
-
- Type Parameters:
X- Generic entity type referenced by root.
- All Implemented Interfaces:
Expression<X>,FetchParent<X,X>,From<X,X>,Path<X>,Root<X>,Selection<X>,TupleElement<X>
public abstract class RootWrapper<X> extends Object implements Root<X>
A wrapper for
Root, useful in case you intend to decorate it.- Author:
- Bauke Scholtz
-
-
Constructor Summary
Constructors Constructor Description RootWrapper(Root<X> wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Selection<X>alias(String name)<X> Expression<X>as(Class<X> type)<Y> Fetch<X,Y>fetch(PluralAttribute<? super X,?,Y> attribute)<Y> Fetch<X,Y>fetch(PluralAttribute<? super X,?,Y> attribute, JoinType jt)<Y> Fetch<X,Y>fetch(SingularAttribute<? super X,Y> attribute)<Y> Fetch<X,Y>fetch(SingularAttribute<? super X,Y> attribute, JoinType jt)<X,Y>
Fetch<X,Y>fetch(String attributeName)<X,Y>
Fetch<X,Y>fetch(String attributeName, JoinType jt)<K,V,M extends Map<K,V>>
Expression<M>get(MapAttribute<X,K,V> map)<E,C extends Collection<E>>
Expression<C>get(PluralAttribute<X,C,E> collection)<Y> Path<Y>get(SingularAttribute<? super X,Y> attribute)<Y> Path<Y>get(String attributeName)StringgetAlias()List<Selection<?>>getCompoundSelectionItems()From<X,X>getCorrelationParent()Set<Fetch<X,?>>getFetches()Class<? extends X>getJavaType()Set<Join<X,?>>getJoins()EntityType<X>getModel()Path<?>getParentPath()Root<X>getWrapped()Predicatein(Expression<?>... values)Predicatein(Expression<Collection<?>> values)Predicatein(Object... values)Predicatein(Collection<?> values)booleanisCompoundSelection()booleanisCorrelated()PredicateisNotNull()PredicateisNull()<Y> CollectionJoin<X,Y>join(CollectionAttribute<? super X,Y> collection)<Y> CollectionJoin<X,Y>join(CollectionAttribute<? super X,Y> collection, JoinType jt)<Y> ListJoin<X,Y>join(ListAttribute<? super X,Y> list)<Y> ListJoin<X,Y>join(ListAttribute<? super X,Y> list, JoinType jt)<K,V>
MapJoin<X,K,V>join(MapAttribute<? super X,K,V> map)<K,V>
MapJoin<X,K,V>join(MapAttribute<? super X,K,V> map, JoinType jt)<Y> SetJoin<X,Y>join(SetAttribute<? super X,Y> set)<Y> SetJoin<X,Y>join(SetAttribute<? super X,Y> set, JoinType jt)<Y> Join<X,Y>join(SingularAttribute<? super X,Y> attribute)<Y> Join<X,Y>join(SingularAttribute<? super X,Y> attribute, JoinType jt)<X,Y>
Join<X,Y>join(String attributeName)<X,Y>
Join<X,Y>join(String attributeName, JoinType jt)<X,Y>
CollectionJoin<X,Y>joinCollection(String attributeName)<X,Y>
CollectionJoin<X,Y>joinCollection(String attributeName, JoinType jt)<X,Y>
ListJoin<X,Y>joinList(String attributeName)<X,Y>
ListJoin<X,Y>joinList(String attributeName, JoinType jt)<X,K,V>
MapJoin<X,K,V>joinMap(String attributeName)<X,K,V>
MapJoin<X,K,V>joinMap(String attributeName, JoinType jt)<X,Y>
SetJoin<X,Y>joinSet(String attributeName)<X,Y>
SetJoin<X,Y>joinSet(String attributeName, JoinType jt)Expression<Class<? extends X>>type()
-
-
-
Method Detail
-
isNull
public Predicate isNull()
- Specified by:
isNullin interfaceExpression<X>
-
getJavaType
public Class<? extends X> getJavaType()
- Specified by:
getJavaTypein interfaceTupleElement<X>
-
getModel
public EntityType<X> getModel()
-
getFetches
public Set<Fetch<X,?>> getFetches()
- Specified by:
getFetchesin interfaceFetchParent<X,X>
-
isNotNull
public Predicate isNotNull()
- Specified by:
isNotNullin interfaceExpression<X>
-
getAlias
public String getAlias()
- Specified by:
getAliasin interfaceTupleElement<X>
-
in
public Predicate in(Object... values)
- Specified by:
inin interfaceExpression<X>
-
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelectionin interfaceSelection<X>
-
getParentPath
public Path<?> getParentPath()
- Specified by:
getParentPathin interfacePath<X>
-
fetch
public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> attribute)
- Specified by:
fetchin interfaceFetchParent<X,X>
-
getCompoundSelectionItems
public List<Selection<?>> getCompoundSelectionItems()
- Specified by:
getCompoundSelectionItemsin interfaceSelection<X>
-
get
public <Y> Path<Y> get(SingularAttribute<? super X,Y> attribute)
-
in
public Predicate in(Expression<?>... values)
- Specified by:
inin interfaceExpression<X>
-
fetch
public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> attribute, JoinType jt)
- Specified by:
fetchin interfaceFetchParent<X,X>
-
get
public <E,C extends Collection<E>> Expression<C> get(PluralAttribute<X,C,E> collection)
-
in
public Predicate in(Collection<?> values)
- Specified by:
inin interfaceExpression<X>
-
isCorrelated
public boolean isCorrelated()
- Specified by:
isCorrelatedin interfaceFrom<X,X>
-
fetch
public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> attribute)
- Specified by:
fetchin interfaceFetchParent<X,X>
-
in
public Predicate in(Expression<Collection<?>> values)
- Specified by:
inin interfaceExpression<X>
-
get
public <K,V,M extends Map<K,V>> Expression<M> get(MapAttribute<X,K,V> map)
-
getCorrelationParent
public From<X,X> getCorrelationParent()
- Specified by:
getCorrelationParentin interfaceFrom<X,X>
-
fetch
public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> attribute, JoinType jt)
- Specified by:
fetchin interfaceFetchParent<X,X>
-
as
public <X> Expression<X> as(Class<X> type)
- Specified by:
asin interfaceExpression<X>
-
fetch
public <X,Y> Fetch<X,Y> fetch(String attributeName)
- Specified by:
fetchin interfaceFetchParent<X,X>
-
join
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute)
-
join
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute, JoinType jt)
-
fetch
public <X,Y> Fetch<X,Y> fetch(String attributeName, JoinType jt)
- Specified by:
fetchin interfaceFetchParent<X,X>
-
join
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection)
-
join
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set)
-
join
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list)
-
join
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map)
-
join
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection, JoinType jt)
-
join
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set, JoinType jt)
-
join
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list, JoinType jt)
-
join
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map, JoinType jt)
-
joinCollection
public <X,Y> CollectionJoin<X,Y> joinCollection(String attributeName)
- Specified by:
joinCollectionin interfaceFrom<X,X>
-
joinCollection
public <X,Y> CollectionJoin<X,Y> joinCollection(String attributeName, JoinType jt)
- Specified by:
joinCollectionin interfaceFrom<X,X>
-
-