Package com.querydsl.core.types.dsl
Class BeanPath<T>
java.lang.Object
com.querydsl.core.types.dsl.DslExpression<T>
com.querydsl.core.types.dsl.SimpleExpression<T>
com.querydsl.core.types.dsl.BeanPath<T>
- Type Parameters:
T- expression type
- All Implemented Interfaces:
Expression<T>,Path<T>,Serializable
- Direct Known Subclasses:
EntityPathBase
BeanPath represents bean paths- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.core.types.dsl.DslExpression
hashCode, mixin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,C> R Accept the visitor with the given contextprotected <P extends Path<?>>
Padd(P path) Template method for tracking child path creationCast the path to a subtype querytypeprotected <A,E> ArrayPath<A, E> createArray(String property, Class<? super A> type) Create a new array pathprotected BooleanPathcreateBoolean(String property) Create a new Boolean pathprotected <A,Q extends SimpleExpression<? super A>>
CollectionPath<A,Q> createCollection(String property, Class<? super A> type, Class<? super Q> queryType, PathInits inits) Create a new Collection typed pathprotected <A extends Comparable>
ComparablePath<A>createComparable(String property, Class<? super A> type) Create a new Comparable typed pathprotected <A extends Comparable>
DatePath<A>createDate(String property, Class<? super A> type) Create a new Date pathprotected <A extends Comparable>
DateTimePath<A>createDateTime(String property, Class<? super A> type) Create a new DateTime pathcreateEnum(String property, Class<A> type) Create a new Enum pathprotected <A,E extends SimpleExpression<? super A>>
ListPath<A,E> createList(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits) Create a new List typed pathprotected <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) Create a new Map typed pathprotected <A extends Number & Comparable<?>>
NumberPath<A>createNumber(String property, Class<? super A> type) Create a new Number pathprotected <A,E extends SimpleExpression<? super A>>
SetPath<A,E> Create a new Set typed pathprotected <A> SimplePath<A>createSimple(String property, Class<? super A> type) Create a new Simple pathprotected StringPathcreateString(String property) Create a new String pathprotected <A extends Comparable>
TimePath<A>createTime(String property, Class<? super A> type) Create a new Time pathprotected PathMetadataforProperty(String property) Return the annotated element related to the given pathGet the metadata for this pathPath<?>getRoot()Get the root for this path<B extends T>
BooleanExpressioninstanceOf(Class<B> type) Create anthis instanceOf typeexpressioninstanceOfAny(Class... types) Methods inherited from class com.querydsl.core.types.dsl.SimpleExpression
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, whenMethods inherited from class com.querydsl.core.types.dsl.DslExpression
equals, getType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.types.Expression
getType
-
Constructor Details
-
BeanPath
-
BeanPath
-
BeanPath
-
BeanPath
public BeanPath(Class<? extends T> type, PathMetadata metadata, @Nullable @Nullable PathInits inits)
-
-
Method Details
-
accept
Description copied from interface:ExpressionAccept the visitor with the given context- Specified by:
acceptin interfaceExpression<T>- Type Parameters:
R- return typeC- context type- Parameters:
v- visitorcontext- context of visit- Returns:
- result of visit
-
as
Cast the path to a subtype querytype- Type Parameters:
U-- Parameters:
clazz- subtype class- Returns:
- subtype instance with the same identity
-
add
Template method for tracking child path creation- Type Parameters:
P-- Parameters:
path- path to be tracked- Returns:
- path
-
createArray
Create a new array path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createBoolean
Create a new Boolean path- Parameters:
property- property name- Returns:
- property path
-
createCollection
protected <A,Q extends SimpleExpression<? super A>> CollectionPath<A,Q> createCollection(String property, Class<? super A> type, Class<? super Q> queryType, PathInits inits) Create a new Collection typed path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createComparable
protected <A extends Comparable> ComparablePath<A> createComparable(String property, Class<? super A> type) Create a new Comparable typed path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createEnum
Create a new Enum path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createDate
Create a new Date path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createDateTime
protected <A extends Comparable> DateTimePath<A> createDateTime(String property, Class<? super A> type) Create a new DateTime path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createList
protected <A,E extends SimpleExpression<? super A>> ListPath<A,E> createList(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits) Create a new List typed path- Type Parameters:
A-E-- Parameters:
property- property nametype- property typequeryType- expression type- Returns:
- property path
-
createMap
protected <K,V, MapPath<K,E extends SimpleExpression<? super V>> V, createMapE> (String property, Class<? super K> key, Class<? super V> value, Class<? super E> queryType) Create a new Map typed path- Type Parameters:
K-V-E-- Parameters:
property- property namekey- key typevalue- value typequeryType- expression type- Returns:
- property path
-
createNumber
protected <A extends Number & Comparable<?>> NumberPath<A> createNumber(String property, Class<? super A> type) Create a new Number path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createSet
protected <A,E extends SimpleExpression<? super A>> SetPath<A,E> createSet(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits) Create a new Set typed path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createSimple
Create a new Simple path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
createString
Create a new String path- Parameters:
property- property name- Returns:
- property path
-
createTime
Create a new Time path- Type Parameters:
A-- Parameters:
property- property nametype- property type- Returns:
- property path
-
forProperty
-
getMetadata
Description copied from interface:PathGet the metadata for this path- Specified by:
getMetadatain interfacePath<T>- Returns:
- path metadata
-
getRoot
Description copied from interface:PathGet the root for this path -
instanceOf
Create anthis instanceOf typeexpression- Type Parameters:
B-- Parameters:
type- rhs of the expression- Returns:
- instanceof expression
-
instanceOfAny
-
getAnnotatedElement
Description copied from interface:PathReturn the annotated element related to the given 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.
- Specified by:
getAnnotatedElementin interfacePath<T>- Returns:
- annotated element
-