T
- expression typepublic class BeanPath<T> extends SimpleExpression<T> implements Path<T>
mixin
Constructor and Description |
---|
BeanPath(Class<? extends T> type,
Path<?> parent,
String property) |
BeanPath(Class<? extends T> type,
PathMetadata<?> metadata) |
BeanPath(Class<? extends T> type,
PathMetadata<?> metadata,
PathInits inits) |
BeanPath(Class<? extends T> type,
String variable) |
Modifier and Type | Method and Description |
---|---|
<R,C> R |
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context
|
protected <P extends Path<?>> |
add(P path)
Template method for tracking child path creation
|
<U extends BeanPath<? extends T>> |
as(Class<U> clazz)
Cast the path to a subtype querytype
|
protected <A,E> ArrayPath<A,E> |
createArray(String property,
Class<? super A> type)
Create a new array path
|
protected BooleanPath |
createBoolean(String property)
Create a new Boolean path
|
protected <A,Q extends SimpleExpression<? super A>> |
createCollection(String property,
Class<? super A> type,
Class<? super Q> queryType,
PathInits inits)
Create a new Collection typed path
|
protected <A extends Comparable> |
createComparable(String property,
Class<? super A> type)
Create a new Comparable typed path
|
protected <A extends Comparable> |
createDate(String property,
Class<? super A> type)
Create a new Date path
|
protected <A extends Comparable> |
createDateTime(String property,
Class<? super A> type)
Create a new DateTime path
|
protected <A extends Enum<A>> |
createEnum(String property,
Class<A> type) |
protected <A,E extends SimpleExpression<? super A>> |
createList(String property,
Class<? super A> type,
Class<? super E> queryType,
PathInits inits)
Create a new List typed path
|
protected <K,V,E extends SimpleExpression<? super V>> |
createMap(String property,
Class<? super K> key,
Class<? super V> value,
Class<? super E> queryType)
Create a new Map typed path
|
protected <A extends Number & Comparable<?>> |
createNumber(String property,
Class<? super A> type)
Create a new Number path
|
protected <A,E extends SimpleExpression<? super A>> |
createSet(String property,
Class<? super A> type,
Class<? super E> queryType,
PathInits inits)
Create a new Set typed path
|
protected <A> SimplePath<A> |
createSimple(String property,
Class<? super A> type)
Create a new Simpe path
|
protected StringPath |
createString(String property)
Create a new String path
|
protected <A extends Comparable> |
createTime(String property,
Class<? super A> type)
Create a new Time path
|
protected PathMetadata<?> |
forProperty(String property) |
AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
PathMetadata<?> |
getMetadata()
Get the metadata for this path
|
Path<?> |
getRoot()
Get the root for this path
|
<B extends T> |
instanceOf(Class<B> type)
Create an
this instanceOf type expression |
BooleanExpression |
instanceOfAny(Class... types) |
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
public BeanPath(Class<? extends T> type, PathMetadata<?> metadata)
public BeanPath(Class<? extends T> type, PathMetadata<?> metadata, @Nullable PathInits inits)
public final <R,C> R accept(Visitor<R,C> v, C context)
Expression
accept
in interface Expression<T>
R
- return typeC
- context typev
- visitorcontext
- context of visitpublic <U extends BeanPath<? extends T>> U as(Class<U> clazz)
T
- clazz
- protected <P extends Path<?>> P add(P path)
P
- path
- protected <A,E> ArrayPath<A,E> createArray(String property, Class<? super A> type)
A
- property
- type
- protected BooleanPath createBoolean(String property)
property
- protected <A,Q extends SimpleExpression<? super A>> CollectionPath<A,Q> createCollection(String property, Class<? super A> type, Class<? super Q> queryType, PathInits inits)
A
- property
- type
- protected <A extends Comparable> ComparablePath<A> createComparable(String property, Class<? super A> type)
A
- property
- type
- protected <A extends Enum<A>> EnumPath<A> createEnum(String property, Class<A> type)
A
- property
- type
- protected <A extends Comparable> DatePath<A> createDate(String property, Class<? super A> type)
A
- property
- type
- protected <A extends Comparable> DateTimePath<A> createDateTime(String property, Class<? super A> type)
A
- property
- type
- protected <A,E extends SimpleExpression<? super A>> ListPath<A,E> createList(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits)
A
- E
- property
- type
- queryType
- protected <K,V,E extends SimpleExpression<? super V>> MapPath<K,V,E> createMap(String property, Class<? super K> key, Class<? super V> value, Class<? super E> queryType)
K
- V
- E
- property
- key
- value
- queryType
- protected <A extends Number & Comparable<?>> NumberPath<A> createNumber(String property, Class<? super A> type)
A
- property
- type
- protected <A,E extends SimpleExpression<? super A>> SetPath<A,E> createSet(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits)
A
- property
- type
- protected <A> SimplePath<A> createSimple(String property, Class<? super A> type)
A
- property
- type
- protected StringPath createString(String property)
property
- protected <A extends Comparable> TimePath<A> createTime(String property, Class<? super A> type)
A
- property
- type
- protected PathMetadata<?> forProperty(String property)
public PathMetadata<?> getMetadata()
Path
getMetadata
in interface Path<T>
public <B extends T> BooleanExpression instanceOf(Class<B> type)
this instanceOf type
expressionB
- type
- public BooleanExpression instanceOfAny(Class... types)
public AnnotatedElement getAnnotatedElement()
Path
For property paths the annotated element contains the annotations of the related field and/or getter method and for all others paths the annotated element is the expression type.
getAnnotatedElement
in interface Path<T>
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.