|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.types.Expr<D> com.mysema.query.types.expr.ESimple<D> com.mysema.query.types.path.PEntity<D>
D
- Java typepublic class PEntity<D>
PEntity represents entity paths
Field Summary |
---|
Fields inherited from class com.mysema.query.types.Expr |
---|
primitive |
Constructor Summary | |
---|---|
PEntity(Class<? extends D> type,
PathMetadata<?> metadata)
|
|
PEntity(Class<? extends D> type,
PathMetadata<?> metadata,
PathInits inits)
|
Method Summary | ||
---|---|---|
void |
accept(Visitor v)
|
|
|
as(Class<T> clazz)
Cast the path to a subtype querytype |
|
protected
|
createArray(String property,
Class<? super A[]> type)
Create a new array path |
|
protected PBoolean |
createBoolean(String propertyName)
Create a new Boolean path |
|
protected
|
createCollection(String property,
Class<? super A> type)
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
|
createList(String property,
Class<? super A> type,
Class<? super E> queryType)
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)
Create a new Set typed path |
|
protected
|
createSimple(String path,
Class<? super A> type)
Create a new Simpe path |
|
protected PString |
createString(String property)
Create a new String path |
|
protected
|
createTime(String property,
Class<? super A> type)
Create a new Time path |
|
boolean |
equals(Object o)
|
|
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 |
|
int |
hashCode()
|
|
|
instanceOf(Class<B> type)
Create an this instanceOf type expression |
|
EBoolean |
isNotNull()
Create a this is not null expression |
|
EBoolean |
isNull()
Create a this is null expression |
Methods inherited from class com.mysema.query.types.expr.ESimple |
---|
as, count, countDistinct, eq, eq, in, in, in, ne, ne, when, when |
Methods inherited from class com.mysema.query.types.Expr |
---|
asExpr, getType, notIn, notIn, notIn, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.mysema.query.types.Path |
---|
asExpr, getType |
Constructor Detail |
---|
public PEntity(Class<? extends D> type, PathMetadata<?> metadata)
public PEntity(Class<? extends D> type, PathMetadata<?> metadata, @Nullable PathInits inits)
Method Detail |
---|
public void accept(Visitor v)
accept
in class Expr<D>
public <T extends PEntity<? extends D>> T as(Class<T> clazz)
T
- clazz
-
protected <A> PArray<A> createArray(String property, Class<? super A[]> type)
A
- property
- type
-
protected PBoolean createBoolean(String propertyName)
propertyName
-
protected <A> PCollection<A> createCollection(String property, Class<? super A> type)
A
- property
- type
-
protected <A extends Comparable> PComparable<A> createComparable(String property, Class<? super A> type)
A
- property
- type
-
protected <A extends Comparable> PDate<A> createDate(String property, Class<? super A> type)
A
- property
- type
-
protected <A extends Comparable> PDateTime<A> createDateTime(String property, Class<? super A> type)
A
- property
- type
-
protected <A,E extends Expr<A>> PList<A,E> createList(String property, Class<? super A> type, Class<? super E> queryType)
A
- E
- property
- type
- queryType
-
protected <K,V,E extends Expr<V>> PMap<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<?>> PNumber<A> createNumber(String property, Class<? super A> type)
A
- property
- type
-
protected <A> PSet<A> createSet(String property, Class<? super A> type)
A
- property
- type
-
protected <A> PSimple<A> createSimple(String path, Class<? super A> type)
A
- path
- type
-
protected PString createString(String property)
property
-
protected <A extends Comparable> PTime<A> createTime(String property, Class<? super A> type)
A
- property
- type
-
public boolean equals(Object o)
equals
in class Expr<D>
protected PathMetadata<?> forProperty(String property)
public PathMetadata<?> getMetadata()
Path
getMetadata
in interface Path<D>
public Path<?> getRoot()
Path
getRoot
in interface Path<D>
public int hashCode()
hashCode
in class Expr<D>
public <B extends D> EBoolean instanceOf(Class<B> type)
this instanceOf type
expression
B
- type
-
public EBoolean isNotNull()
Path
this is not null
expression
isNotNull
in interface Path<D>
public EBoolean isNull()
Path
this is null
expression
isNull
in interface Path<D>
public AnnotatedElement getAnnotatedElement()
Path
getAnnotatedElement
in interface Path<D>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |