T - expression typepublic class BeanPath<T> extends SimpleExpression<T> implements Path<T>
BeanPath represents bean pathshashCode, 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)
Create a new Enum path
|
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 Simple 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, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, whenequals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypepublic 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)
Expressionaccept in interface Expression<T>R - return typeC - context typev - visitorcontext - context of visitpublic <U extends BeanPath<? extends T>> U as(Class<U> clazz)
U - clazz - subtype classprotected <P extends Path<?>> P add(P path)
P - path - path to be trackedprotected <A,E> ArrayPath<A,E> createArray(String property, Class<? super A> type)
A - property - property nametype - property typeprotected BooleanPath createBoolean(String property)
property - property nameprotected <A,Q extends SimpleExpression<? super A>> CollectionPath<A,Q> createCollection(String property, Class<? super A> type, Class<? super Q> queryType, PathInits inits)
A - property - property nametype - property typeprotected <A extends Comparable> ComparablePath<A> createComparable(String property, Class<? super A> type)
A - property - property nametype - property typeprotected <A extends Enum<A>> EnumPath<A> createEnum(String property, Class<A> type)
A - property - property nametype - property typeprotected <A extends Comparable> DatePath<A> createDate(String property, Class<? super A> type)
A - property - property nametype - property typeprotected <A extends Comparable> DateTimePath<A> createDateTime(String property, Class<? super A> type)
A - property - property nametype - property typeprotected <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 - property nametype - property typequeryType - expression typeprotected <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 - property namekey - key typevalue - value typequeryType - expression typeprotected <A extends Number & Comparable<?>> NumberPath<A> createNumber(String property, Class<? super A> type)
A - property - property nametype - property typeprotected <A,E extends SimpleExpression<? super A>> SetPath<A,E> createSet(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits)
A - property - property nametype - property typeprotected <A> SimplePath<A> createSimple(String property, Class<? super A> type)
A - property - property nametype - property typeprotected StringPath createString(String property)
property - property nameprotected <A extends Comparable> TimePath<A> createTime(String property, Class<? super A> type)
A - property - property nametype - property typeprotected PathMetadata forProperty(String property)
public PathMetadata getMetadata()
PathgetMetadata in interface Path<T>public <B extends T> BooleanExpression instanceOf(Class<B> type)
this instanceOf type expressionB - type - rhs of the expressionpublic BooleanExpression instanceOfAny(Class... types)
public AnnotatedElement getAnnotatedElement()
PathFor 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–2016 Querydsl. All rights reserved.