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(java.lang.Class<? extends T> type,
PathMetadata<?> pathMetadata)
Creates a new PathBuilder instance
|
PathBuilder(java.lang.Class<? extends T> type,
java.lang.String variable)
Creates a new PathBuilder instance
|
Modifier and Type | Method and Description |
---|---|
BooleanPath |
get(BooleanPath path) |
<A extends java.lang.Comparable<?>> |
get(ComparablePath<A> path) |
<A extends java.lang.Comparable<?>> |
get(DatePath<A> path) |
<A extends java.lang.Comparable<?>> |
get(DateTimePath<A> path) |
<A extends java.lang.Enum<A>> |
get(EnumPath<A> path) |
<A extends java.lang.Number & java.lang.Comparable<?>> |
get(NumberPath<A> path) |
<A> SimplePath<A> |
get(Path<A> path) |
PathBuilder<java.lang.Object> |
get(java.lang.String property)
Get a PathBuilder instance for the given property
|
<A> PathBuilder<A> |
get(java.lang.String property,
java.lang.Class<A> type)
Get a PathBuilder for the given property with the given type
|
StringPath |
get(StringPath path) |
<A extends java.lang.Comparable<?>> |
get(TimePath<A> path) |
<A,E> ArrayPath<A,E> |
getArray(java.lang.String property,
java.lang.Class<A> type)
Get a PArray instance for the given property and the given array type
|
BooleanPath |
getBoolean(java.lang.String propertyName)
Get a new Boolean typed path
|
<A> CollectionPath<A,PathBuilder<A>> |
getCollection(java.lang.String property,
java.lang.Class<A> type)
Get a new Collection typed path
|
<A,E extends SimpleExpression<A>> |
getCollection(java.lang.String property,
java.lang.Class<A> type,
java.lang.Class<E> queryType)
Get a new Collection typed path
|
<A extends java.lang.Comparable<?>> |
getComparable(java.lang.String property,
java.lang.Class<A> type)
Get a new Comparable typed path
|
<A extends java.lang.Comparable<?>> |
getDate(java.lang.String property,
java.lang.Class<A> type)
Get a new Date path
|
<A extends java.lang.Comparable<?>> |
getDateTime(java.lang.String property,
java.lang.Class<A> type)
Get a new DateTime path
|
<A extends java.lang.Enum<A>> |
getEnum(java.lang.String property,
java.lang.Class<A> type)
Get a new Enum path
|
<A> ListPath<A,PathBuilder<A>> |
getList(java.lang.String property,
java.lang.Class<A> type)
Get a new List typed path
|
<A,E extends SimpleExpression<A>> |
getList(java.lang.String property,
java.lang.Class<A> type,
java.lang.Class<E> queryType)
Get a new List typed path
|
<K,V> MapPath<K,V,PathBuilder<V>> |
getMap(java.lang.String property,
java.lang.Class<K> key,
java.lang.Class<V> value)
Get a new Map typed path
|
<K,V,E extends SimpleExpression<V>> |
getMap(java.lang.String property,
java.lang.Class<K> key,
java.lang.Class<V> value,
java.lang.Class<E> queryType)
Get a new Map typed path
|
<A extends java.lang.Number & java.lang.Comparable<?>> |
getNumber(java.lang.String property,
java.lang.Class<A> type)
Get a new Number typed path
|
<A> SetPath<A,PathBuilder<A>> |
getSet(java.lang.String property,
java.lang.Class<A> type)
Get a new Set typed path
|
<A,E extends SimpleExpression<A>> |
getSet(java.lang.String property,
java.lang.Class<A> type,
java.lang.Class<E> queryType)
Get a new Set typed path
|
<A> SimplePath<A> |
getSimple(java.lang.String property,
java.lang.Class<A> type)
Get a new Simple path
|
StringPath |
getString(java.lang.String property)
Get a new String typed path
|
<A extends java.lang.Comparable<?>> |
getTime(java.lang.String property,
java.lang.Class<A> type)
Get a new Time typed path
|
protected void |
validate(java.lang.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(java.lang.Class<? extends T> type, PathMetadata<?> pathMetadata)
type
- pathMetadata
- public PathBuilder(java.lang.Class<? extends T> type, java.lang.String variable)
type
- variable
- protected void validate(java.lang.String property)
property
- public PathBuilder<java.lang.Object> get(java.lang.String property)
property
- property namepublic <A> PathBuilder<A> get(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A,E> ArrayPath<A,E> getArray(java.lang.String property, java.lang.Class<A> type)
A
- E
- property
- property nametype
- public BooleanPath get(BooleanPath path)
path
- public BooleanPath getBoolean(java.lang.String propertyName)
propertyName
- property namepublic <A> CollectionPath<A,PathBuilder<A>> getCollection(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A,E extends SimpleExpression<A>> CollectionPath<A,E> getCollection(java.lang.String property, java.lang.Class<A> type, java.lang.Class<E> queryType)
A
- E
- property
- property nametype
- queryType
- public <A extends java.lang.Comparable<?>> ComparablePath<A> get(ComparablePath<A> path)
A
- path
- public <A extends java.lang.Comparable<?>> ComparablePath<A> getComparable(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A extends java.lang.Comparable<?>> DatePath<A> get(DatePath<A> path)
A
- path
- public <A extends java.lang.Comparable<?>> DatePath<A> getDate(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A extends java.lang.Comparable<?>> DateTimePath<A> get(DateTimePath<A> path)
A
- path
- public <A extends java.lang.Comparable<?>> DateTimePath<A> getDateTime(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A extends java.lang.Enum<A>> EnumPath<A> getEnum(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A extends java.lang.Enum<A>> EnumPath<A> get(EnumPath<A> path)
A
- path
- public <A> ListPath<A,PathBuilder<A>> getList(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A,E extends SimpleExpression<A>> ListPath<A,E> getList(java.lang.String property, java.lang.Class<A> type, java.lang.Class<E> queryType)
A
- E
- property
- property nametype
- queryType
- public <K,V> MapPath<K,V,PathBuilder<V>> getMap(java.lang.String property, java.lang.Class<K> key, java.lang.Class<V> value)
K
- V
- property
- property namekey
- value
- public <K,V,E extends SimpleExpression<V>> MapPath<K,V,E> getMap(java.lang.String property, java.lang.Class<K> key, java.lang.Class<V> value, java.lang.Class<E> queryType)
K
- V
- E
- property
- property namekey
- value
- queryType
- public <A extends java.lang.Number & java.lang.Comparable<?>> NumberPath<A> get(NumberPath<A> path)
A
- path
- public <A extends java.lang.Number & java.lang.Comparable<?>> NumberPath<A> getNumber(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A> SetPath<A,PathBuilder<A>> getSet(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public <A,E extends SimpleExpression<A>> SetPath<A,E> getSet(java.lang.String property, java.lang.Class<A> type, java.lang.Class<E> queryType)
A
- E
- property
- property nametype
- queryType
- public <A> SimplePath<A> get(Path<A> path)
A
- path
- public <A> SimplePath<A> getSimple(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- public StringPath get(StringPath path)
path
- public StringPath getString(java.lang.String property)
property
- property namepublic <A extends java.lang.Comparable<?>> TimePath<A> get(TimePath<A> path)
A
- path
- public <A extends java.lang.Comparable<?>> TimePath<A> getTime(java.lang.String property, java.lang.Class<A> type)
A
- property
- property nametype
- Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.