|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.types.expr.DslExpression<T>
com.mysema.query.types.expr.SimpleExpression<T>
com.mysema.query.types.path.BeanPath<T>
T - expression typepublic class BeanPath<T>
BeanPath represents bean paths
| Field Summary |
|---|
| Fields inherited from class com.mysema.query.types.expr.DslExpression |
|---|
mixin |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | ||
|---|---|---|
|
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context |
|
protected
|
add(P path)
Template method for tracking child path creation |
|
|
as(Class<U> clazz)
Cast the path to a subtype querytype |
|
protected
|
createArray(String property,
Class<? super A[]> type)
Create a new array path |
|
protected BooleanPath |
createBoolean(String property)
Create a new Boolean path |
|
protected
|
createCollection(String property,
Class<? super A> type,
Class<? super Q> queryType,
PathInits inits)
Create a new Collection typed path |
|
protected
|
createComparable(String property,
Class<? super A> type)
Create a new Comparable typed path |
|
protected
|
createDate(String property,
Class<? super A> type)
Create a new Date path |
|
protected
|
createDateTime(String property,
Class<? super A> type)
Create a new DateTime path |
|
protected
|
createEnum(String property,
Class<A> type)
|
|
protected
|
createList(String property,
Class<? super A> type,
Class<? super E> queryType,
PathInits inits)
Create a new List typed path |
|
protected
|
createMap(String property,
Class<? super K> key,
Class<? super V> value,
Class<? super E> queryType)
Create a new Map typed path |
|
protected
|
createNumber(String property,
Class<? super A> type)
Create a new Number path |
|
protected
|
createSet(String property,
Class<? super A> type,
Class<? super E> queryType,
PathInits inits)
Create a new Set typed path |
|
protected
|
createSimple(String property,
Class<? super A> type)
Create a new Simpe path |
|
protected StringPath |
createString(String property)
Create a new String path |
|
protected
|
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 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. |
|
PathMetadata<?> |
getMetadata()
Get the metadata for this path |
|
Path<?> |
getRoot()
Get the root for this path |
|
|
instanceOf(Class<B> type)
Create an this instanceOf type expression |
|
BooleanExpression |
instanceOfAny(Class... types)
|
|
| Methods inherited from class com.mysema.query.types.expr.SimpleExpression |
|---|
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, when, when |
| Methods inherited from class com.mysema.query.types.expr.DslExpression |
|---|
equals, getType, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.mysema.query.types.Expression |
|---|
getType |
| Constructor Detail |
|---|
public BeanPath(Class<? extends T> type,
String variable)
public BeanPath(Class<? extends T> type,
Path<?> parent,
String property)
public BeanPath(Class<? extends T> type,
PathMetadata<?> metadata)
public BeanPath(Class<? extends T> type,
PathMetadata<?> metadata,
@Nullable
PathInits inits)
| Method Detail |
|---|
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 visit
public <U extends BeanPath<? extends T>> U as(Class<U> clazz)
T - clazz -
protected <P extends Path<?>> P add(P path)
P - path -
protected <A> ArrayPath<A> 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 Path<?> getRoot()
Path
getRoot in interface Path<T>public <B extends T> BooleanExpression instanceOf(Class<B> type)
this instanceOf type expression
B - type -
public BooleanExpression instanceOfAny(Class... types)
public AnnotatedElement getAnnotatedElement()
Path
getAnnotatedElement in interface Path<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||