|
||||||||||
| 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>
com.mysema.query.types.path.EntityPathBase<T>
com.mysema.query.types.path.PathBuilder<T>
T - expression typepublic final class PathBuilder<T>
PathBuilder is an extension to EntityPathBase for dynamic path construction
| Field Summary |
|---|
| Fields inherited from class com.mysema.query.types.expr.DslExpression |
|---|
mixin |
| Constructor Summary | |
|---|---|
PathBuilder(Class<? extends T> type,
PathMetadata<?> pathMetadata)
Creates a new PathBuilder instance |
|
PathBuilder(Class<? extends T> type,
String variable)
Creates a new PathBuilder instance |
|
| Method Summary | ||
|---|---|---|
BooleanPath |
get(BooleanPath path)
|
|
|
get(ComparablePath<A> path)
|
|
|
get(DatePath<A> path)
|
|
|
get(DateTimePath<A> path)
|
|
|
get(EnumPath<A> path)
|
|
|
get(NumberPath<A> path)
|
|
|
get(Path<A> path)
|
|
PathBuilder<Object> |
get(String property)
Get a PathBuilder instance for the given property |
|
|
get(String property,
Class<A> type)
Get a PathBuilder for the given property with the given type |
|
StringPath |
get(StringPath path)
|
|
|
get(TimePath<A> path)
|
|
|
getArray(String property,
Class<A[]> type)
Get a PArray instance for the given property and the given array type |
|
BooleanPath |
getBoolean(String propertyName)
Get a new Boolean typed path |
|
|
getCollection(String property,
Class<A> type)
Get a new Collection typed path |
|
|
getCollection(String property,
Class<A> type,
Class<E> queryType)
Get a new Collection typed path |
|
|
getComparable(String property,
Class<A> type)
Get a new Comparable typed path |
|
|
getDate(String property,
Class<A> type)
Get a new Date path |
|
|
getDateTime(String property,
Class<A> type)
Get a new DateTime path |
|
|
getEnum(String property,
Class<A> type)
Get a new Enum path |
|
|
getList(String property,
Class<A> type)
Get a new List typed path |
|
|
getList(String property,
Class<A> type,
Class<E> queryType)
Get a new List typed path |
|
|
getMap(String property,
Class<K> key,
Class<V> value)
Get a new Map typed path |
|
|
getMap(String property,
Class<K> key,
Class<V> value,
Class<E> queryType)
Get a new Map typed path |
|
|
getNumber(String property,
Class<A> type)
Get a new Number typed path |
|
|
getSet(String property,
Class<A> type)
Get a new Set typed path |
|
|
getSet(String property,
Class<A> type,
Class<E> queryType)
Get a new Set typed path |
|
|
getSimple(String property,
Class<A> type)
Get a new Simple path |
|
StringPath |
getString(String property)
Get a new String typed path |
|
|
getTime(String property,
Class<A> type)
Get a new Time typed path |
|
protected void |
validate(String property)
Override this method to do some validation of the properties created |
|
| Methods inherited from class com.mysema.query.types.path.BeanPath |
|---|
accept, add, as, createArray, createBoolean, createCollection, createComparable, createDate, createDateTime, createEnum, createList, createMap, createNumber, createSet, createSimple, createString, createTime, forProperty, getAnnotatedElement, getMetadata, getRoot, instanceOf, instanceOfAny |
| 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.Path |
|---|
getAnnotatedElement, getMetadata, getRoot |
| Methods inherited from interface com.mysema.query.types.Expression |
|---|
accept, getType |
| Constructor Detail |
|---|
public PathBuilder(Class<? extends T> type,
PathMetadata<?> pathMetadata)
type - pathMetadata -
public PathBuilder(Class<? extends T> type,
String variable)
type - variable - | Method Detail |
|---|
protected void validate(String property)
property - public PathBuilder<Object> get(String property)
property - property name
public <A> PathBuilder<A> get(String property,
Class<A> type)
A - property - property nametype -
public <A> ArrayPath<A> getArray(String property,
Class<A[]> type)
A - property - property nametype -
public BooleanPath get(BooleanPath path)
path -
public BooleanPath getBoolean(String propertyName)
propertyName - property name
public <A> CollectionPath<A,PathBuilder<A>> getCollection(String property,
Class<A> type)
A - property - property nametype -
public <A,E extends SimpleExpression<A>> CollectionPath<A,E> getCollection(String property,
Class<A> type,
Class<E> queryType)
A - E - property - property nametype - queryType -
public <A extends Comparable<?>> ComparablePath<A> get(ComparablePath<A> path)
A - path -
public <A extends Comparable<?>> ComparablePath<A> getComparable(String property,
Class<A> type)
A - property - property nametype -
public <A extends Comparable<?>> DatePath<A> get(DatePath<A> path)
A - path -
public <A extends Comparable<?>> DatePath<A> getDate(String property,
Class<A> type)
A - property - property nametype -
public <A extends Comparable<?>> DateTimePath<A> get(DateTimePath<A> path)
A - path -
public <A extends Comparable<?>> DateTimePath<A> getDateTime(String property,
Class<A> type)
A - property - property nametype -
public <A extends Enum<A>> EnumPath<A> getEnum(String property,
Class<A> type)
A - property - property nametype -
public <A extends Enum<A>> EnumPath<A> get(EnumPath<A> path)
A - path -
public <A> ListPath<A,PathBuilder<A>> getList(String property,
Class<A> type)
A - property - property nametype -
public <A,E extends SimpleExpression<A>> ListPath<A,E> getList(String property,
Class<A> type,
Class<E> queryType)
A - E - property - property nametype - queryType -
public <K,V> MapPath<K,V,PathBuilder<V>> getMap(String property,
Class<K> key,
Class<V> value)
K - V - property - property namekey - value -
public <K,V,E extends SimpleExpression<V>> MapPath<K,V,E> getMap(String property,
Class<K> key,
Class<V> value,
Class<E> queryType)
K - V - E - property - property namekey - value - queryType -
public <A extends Number & Comparable<?>> NumberPath<A> get(NumberPath<A> path)
A - path -
public <A extends Number & Comparable<?>> NumberPath<A> getNumber(String property,
Class<A> type)
A - property - property nametype -
public <A> SetPath<A,PathBuilder<A>> getSet(String property,
Class<A> type)
A - property - property nametype -
public <A,E extends SimpleExpression<A>> SetPath<A,E> getSet(String property,
Class<A> type,
Class<E> queryType)
A - E - property - property nametype - queryType -
public <A> SimplePath<A> get(Path<A> path)
A - path -
public <A> SimplePath<A> getSimple(String property,
Class<A> type)
A - property - property nametype -
public StringPath get(StringPath path)
path -
public StringPath getString(String property)
property - property name
public <A extends Comparable<?>> TimePath<A> get(TimePath<A> path)
A - path -
public <A extends Comparable<?>> TimePath<A> getTime(String property,
Class<A> type)
A - property - property nametype -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||