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)
String
getAlias()
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()
Predicate
in(Expression<?>... values)
Predicate
in(Expression<Collection<?>> values)
Predicate
in(Object... values)
Predicate
in(Collection<?> values)
boolean
isCompoundSelection()
boolean
isCorrelated()
Predicate
isNotNull()
Predicate
isNull()
<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:
isNull
in interfaceExpression<X>
-
getJavaType
public Class<? extends X> getJavaType()
- Specified by:
getJavaType
in interfaceTupleElement<X>
-
getModel
public EntityType<X> getModel()
-
getFetches
public Set<Fetch<X,?>> getFetches()
- Specified by:
getFetches
in interfaceFetchParent<X,X>
-
isNotNull
public Predicate isNotNull()
- Specified by:
isNotNull
in interfaceExpression<X>
-
getAlias
public String getAlias()
- Specified by:
getAlias
in interfaceTupleElement<X>
-
in
public Predicate in(Object... values)
- Specified by:
in
in interfaceExpression<X>
-
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelection
in interfaceSelection<X>
-
getParentPath
public Path<?> getParentPath()
- Specified by:
getParentPath
in interfacePath<X>
-
fetch
public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> attribute)
- Specified by:
fetch
in interfaceFetchParent<X,X>
-
getCompoundSelectionItems
public List<Selection<?>> getCompoundSelectionItems()
- Specified by:
getCompoundSelectionItems
in interfaceSelection<X>
-
get
public <Y> Path<Y> get(SingularAttribute<? super X,Y> attribute)
-
in
public Predicate in(Expression<?>... values)
- Specified by:
in
in interfaceExpression<X>
-
fetch
public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> attribute, JoinType jt)
- Specified by:
fetch
in 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:
in
in interfaceExpression<X>
-
isCorrelated
public boolean isCorrelated()
- Specified by:
isCorrelated
in interfaceFrom<X,X>
-
fetch
public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> attribute)
- Specified by:
fetch
in interfaceFetchParent<X,X>
-
in
public Predicate in(Expression<Collection<?>> values)
- Specified by:
in
in 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:
getCorrelationParent
in interfaceFrom<X,X>
-
fetch
public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> attribute, JoinType jt)
- Specified by:
fetch
in interfaceFetchParent<X,X>
-
as
public <X> Expression<X> as(Class<X> type)
- Specified by:
as
in interfaceExpression<X>
-
fetch
public <X,Y> Fetch<X,Y> fetch(String attributeName)
- Specified by:
fetch
in 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:
fetch
in 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:
joinCollection
in interfaceFrom<X,X>
-
joinCollection
public <X,Y> CollectionJoin<X,Y> joinCollection(String attributeName, JoinType jt)
- Specified by:
joinCollection
in interfaceFrom<X,X>
-
-