T
- expression typepublic final class PathBuilder<T> extends EntityPathBase<T>
Usage example:
PathBuilder<User> user = new PathBuilder<User>(User.class, "user"); Predicate filter = user.getString("firstName").eq("Bob"); List<User> users = query.from(user).where(filter).list(user);
mixin
Constructor and Description |
---|
PathBuilder(Class<? extends T> type,
PathMetadata<?> pathMetadata)
Creates a new PathBuilder instance
|
PathBuilder(Class<? extends T> type,
String variable)
Creates a new PathBuilder instance
|
Modifier and Type | Method and Description |
---|---|
BooleanPath |
get(BooleanPath path) |
<A extends Comparable<?>> |
get(ComparablePath<A> path) |
<A extends Comparable<?>> |
get(DatePath<A> path) |
<A extends Comparable<?>> |
get(DateTimePath<A> path) |
<A extends Enum<A>> |
get(EnumPath<A> path) |
<A extends Number & Comparable<?>> |
get(NumberPath<A> path) |
<A> SimplePath<A> |
get(Path<A> path) |
PathBuilder<Object> |
get(String property)
Get a PathBuilder instance for the given property
|
<A> PathBuilder<A> |
get(String property,
Class<A> type)
Get a PathBuilder for the given property with the given type
|
StringPath |
get(StringPath path) |
<A extends Comparable<?>> |
get(TimePath<A> path) |
<A,E> ArrayPath<A,E> |
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
|
<A> CollectionPath<A,PathBuilder<A>> |
getCollection(String property,
Class<A> type)
Get a new Collection typed path
|
<A,E extends SimpleExpression<A>> |
getCollection(String property,
Class<A> type,
Class<E> queryType)
Get a new Collection typed path
|
<A extends Comparable<?>> |
getComparable(String property,
Class<A> type)
Get a new Comparable typed path
|
<A extends Comparable<?>> |
getDate(String property,
Class<A> type)
Get a new Date path
|
<A extends Comparable<?>> |
getDateTime(String property,
Class<A> type)
Get a new DateTime path
|
<A extends Enum<A>> |
getEnum(String property,
Class<A> type)
Get a new Enum path
|
<A> ListPath<A,PathBuilder<A>> |
getList(String property,
Class<A> type)
Get a new List typed path
|
<A,E extends SimpleExpression<A>> |
getList(String property,
Class<A> type,
Class<E> queryType)
Get a new List typed path
|
<K,V> MapPath<K,V,PathBuilder<V>> |
getMap(String property,
Class<K> key,
Class<V> value)
Get a new Map typed path
|
<K,V,E extends SimpleExpression<V>> |
getMap(String property,
Class<K> key,
Class<V> value,
Class<E> queryType)
Get a new Map typed path
|
<A extends Number & Comparable<?>> |
getNumber(String property,
Class<A> type)
Get a new Number typed path
|
<A> SetPath<A,PathBuilder<A>> |
getSet(String property,
Class<A> type)
Get a new Set typed path
|
<A,E extends SimpleExpression<A>> |
getSet(String property,
Class<A> type,
Class<E> queryType)
Get a new Set typed path
|
<A> SimplePath<A> |
getSimple(String property,
Class<A> type)
Get a new Simple path
|
StringPath |
getString(String property)
Get a new String typed path
|
<A extends Comparable<?>> |
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
|
accept, add, as, createArray, createBoolean, createCollection, createComparable, createDate, createDateTime, createEnum, createList, createMap, createNumber, createSet, createSimple, createString, createTime, forProperty, getAnnotatedElement, getMetadata, getRoot, instanceOf, instanceOfAny
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotatedElement, getMetadata, getRoot
accept, getType
public PathBuilder(Class<? extends T> type, PathMetadata<?> pathMetadata)
type
- pathMetadata
- protected void validate(String property)
property
- public PathBuilder<Object> get(String property)
property
- property namepublic <A> PathBuilder<A> get(String property, Class<A> type)
A
- property
- property nametype
- public <A,E> ArrayPath<A,E> getArray(String property, Class<A> type)
A
- E
- property
- property nametype
- public BooleanPath get(BooleanPath path)
path
- public BooleanPath getBoolean(String propertyName)
propertyName
- property namepublic <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 namepublic <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
- Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.