T
- expression typepublic class BeanPath<T> extends SimpleExpression<T> implements Path<T>
BeanPath
represents bean pathshashCode, mixin
Constructor and Description |
---|
BeanPath(java.lang.Class<? extends T> type,
Path<?> parent,
java.lang.String property) |
BeanPath(java.lang.Class<? extends T> type,
PathMetadata metadata) |
BeanPath(java.lang.Class<? extends T> type,
PathMetadata metadata,
@Nullable PathInits inits) |
BeanPath(java.lang.Class<? extends T> type,
java.lang.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(java.lang.Class<U> clazz)
Cast the path to a subtype querytype
|
protected <A,E> ArrayPath<A,E> |
createArray(java.lang.String property,
java.lang.Class<? super A> type)
Create a new array path
|
protected BooleanPath |
createBoolean(java.lang.String property)
Create a new Boolean path
|
protected <A,Q extends SimpleExpression<? super A>> |
createCollection(java.lang.String property,
java.lang.Class<? super A> type,
java.lang.Class<? super Q> queryType,
PathInits inits)
Create a new Collection typed path
|
protected <A extends java.lang.Comparable> |
createComparable(java.lang.String property,
java.lang.Class<? super A> type)
Create a new Comparable typed path
|
protected <A extends java.lang.Comparable> |
createDate(java.lang.String property,
java.lang.Class<? super A> type)
Create a new Date path
|
protected <A extends java.lang.Comparable> |
createDateTime(java.lang.String property,
java.lang.Class<? super A> type)
Create a new DateTime path
|
protected <A extends java.lang.Enum<A>> |
createEnum(java.lang.String property,
java.lang.Class<A> type)
Create a new Enum path
|
protected <A,E extends SimpleExpression<? super A>> |
createList(java.lang.String property,
java.lang.Class<? super A> type,
java.lang.Class<? super E> queryType,
PathInits inits)
Create a new List typed path
|
protected <K,V,E extends SimpleExpression<? super V>> |
createMap(java.lang.String property,
java.lang.Class<? super K> key,
java.lang.Class<? super V> value,
java.lang.Class<? super E> queryType)
Create a new Map typed path
|
protected <A extends java.lang.Number & java.lang.Comparable<?>> |
createNumber(java.lang.String property,
java.lang.Class<? super A> type)
Create a new Number path
|
protected <A,E extends SimpleExpression<? super A>> |
createSet(java.lang.String property,
java.lang.Class<? super A> type,
java.lang.Class<? super E> queryType,
PathInits inits)
Create a new Set typed path
|
protected <A> SimplePath<A> |
createSimple(java.lang.String property,
java.lang.Class<? super A> type)
Create a new Simple path
|
protected StringPath |
createString(java.lang.String property)
Create a new String path
|
protected <A extends java.lang.Comparable> |
createTime(java.lang.String property,
java.lang.Class<? super A> type)
Create a new Time path
|
protected PathMetadata |
forProperty(java.lang.String property) |
java.lang.reflect.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(java.lang.Class<B> type)
Create an
this instanceOf type expression |
BooleanExpression |
instanceOfAny(java.lang.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, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
public BeanPath(java.lang.Class<? extends T> type, java.lang.String variable)
public BeanPath(java.lang.Class<? extends T> type, Path<?> parent, java.lang.String property)
public BeanPath(java.lang.Class<? extends T> type, PathMetadata metadata)
public BeanPath(java.lang.Class<? extends T> type, PathMetadata metadata, @Nullable @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(java.lang.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(java.lang.String property, java.lang.Class<? super A> type)
A
- property
- property nametype
- property typeprotected BooleanPath createBoolean(java.lang.String property)
property
- property nameprotected <A,Q extends SimpleExpression<? super A>> CollectionPath<A,Q> createCollection(java.lang.String property, java.lang.Class<? super A> type, java.lang.Class<? super Q> queryType, PathInits inits)
A
- property
- property nametype
- property typeprotected <A extends java.lang.Comparable> ComparablePath<A> createComparable(java.lang.String property, java.lang.Class<? super A> type)
A
- property
- property nametype
- property typeprotected <A extends java.lang.Enum<A>> EnumPath<A> createEnum(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- property typeprotected <A extends java.lang.Comparable> DatePath<A> createDate(java.lang.String property, java.lang.Class<? super A> type)
A
- property
- property nametype
- property typeprotected <A extends java.lang.Comparable> DateTimePath<A> createDateTime(java.lang.String property, java.lang.Class<? super A> type)
A
- property
- property nametype
- property typeprotected <A,E extends SimpleExpression<? super A>> ListPath<A,E> createList(java.lang.String property, java.lang.Class<? super A> type, java.lang.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(java.lang.String property, java.lang.Class<? super K> key, java.lang.Class<? super V> value, java.lang.Class<? super E> queryType)
K
- V
- E
- property
- property namekey
- key typevalue
- value typequeryType
- expression typeprotected <A extends java.lang.Number & java.lang.Comparable<?>> NumberPath<A> createNumber(java.lang.String property, java.lang.Class<? super A> type)
A
- property
- property nametype
- property typeprotected <A,E extends SimpleExpression<? super A>> SetPath<A,E> createSet(java.lang.String property, java.lang.Class<? super A> type, java.lang.Class<? super E> queryType, PathInits inits)
A
- property
- property nametype
- property typeprotected <A> SimplePath<A> createSimple(java.lang.String property, java.lang.Class<? super A> type)
A
- property
- property nametype
- property typeprotected StringPath createString(java.lang.String property)
property
- property nameprotected <A extends java.lang.Comparable> TimePath<A> createTime(java.lang.String property, java.lang.Class<? super A> type)
A
- property
- property nametype
- property typeprotected PathMetadata forProperty(java.lang.String property)
public PathMetadata getMetadata()
Path
getMetadata
in interface Path<T>
public <B extends T> BooleanExpression instanceOf(java.lang.Class<B> type)
this instanceOf type
expressionB
- type
- rhs of the expressionpublic BooleanExpression instanceOfAny(java.lang.Class... types)
public java.lang.reflect.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–2021 Querydsl. All rights reserved.