T - expression typepublic class PathBuilder<T> extends EntityPathBase<T>
PathBuilder is an extension to EntityPathBase for dynamic path construction
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).select(user).fetch();
hashCode, 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,
PathMetadata pathMetadata,
PathBuilderValidator validator)
Creates a new PathBuilder instance
|
PathBuilder(java.lang.Class<? extends T> type,
java.lang.String variable)
Creates a new PathBuilder instance
|
PathBuilder(java.lang.Class<? extends T> type,
java.lang.String variable,
PathBuilderValidator validator)
Creates a new PathBuilder instance
|
| Modifier and Type | Method and Description |
|---|---|
BooleanPath |
get(BooleanPath path)
Create a new Boolean typed path
|
<A extends java.lang.Comparable<?>> |
get(ComparablePath<A> path)
Create a new Comparable typed path
|
<A extends java.lang.Comparable<?>> |
get(DatePath<A> path)
Create a new Date path
|
<A extends java.lang.Comparable<?>> |
get(DateTimePath<A> path)
Create a new DateTime path
|
<A extends java.lang.Enum<A>> |
get(EnumPath<A> path)
Create a new Enum path
|
<A extends java.lang.Number & java.lang.Comparable<?>> |
get(NumberPath<A> path)
Create a new Number typed path
|
<A> SimplePath<A> |
get(Path<A> path)
Create a new Simple path
|
PathBuilder<java.lang.Object> |
get(java.lang.String property)
Create a PathBuilder instance for the given property
|
<A> PathBuilder<A> |
get(java.lang.String property,
java.lang.Class<A> type)
Create a PathBuilder for the given property with the given type
|
StringPath |
get(StringPath path)
Create a new String typed path
|
<A extends java.lang.Comparable<?>> |
get(TimePath<A> path)
Create a new Time typed path
|
<A,E> ArrayPath<A,E> |
getArray(java.lang.String property,
java.lang.Class<A> type)
Create a ArrayPath instance for the given property and the given array type
|
BooleanPath |
getBoolean(java.lang.String propertyName)
Create a new Boolean typed path
|
<A> CollectionPath<A,PathBuilder<A>> |
getCollection(java.lang.String property,
java.lang.Class<A> type)
Create a new Collection typed path
|
<A,E extends SimpleExpression<A>> |
getCollection(java.lang.String property,
java.lang.Class<A> type,
java.lang.Class<? super E> queryType)
Create a new Collection typed path
|
<A extends java.lang.Comparable<?>> |
getComparable(java.lang.String property,
java.lang.Class<A> type)
Create a new Comparable typed path
|
<A extends java.lang.Comparable<?>> |
getDate(java.lang.String property,
java.lang.Class<A> type)
Create a new Date path
|
<A extends java.lang.Comparable<?>> |
getDateTime(java.lang.String property,
java.lang.Class<A> type)
Create a new DateTime path
|
<A extends java.lang.Enum<A>> |
getEnum(java.lang.String property,
java.lang.Class<A> type)
Create a new Enum path
|
<A> ListPath<A,PathBuilder<A>> |
getList(java.lang.String property,
java.lang.Class<A> type)
Create a new List typed path
|
<A,E extends SimpleExpression<A>> |
getList(java.lang.String property,
java.lang.Class<A> type,
java.lang.Class<? super E> queryType)
Create 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)
Create 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<? super E> queryType)
Create a new Map typed path
|
java.lang.Object |
getMetadata(Path<?> property)
Returns additional metadata for the given property path or null if none is available
|
<A extends java.lang.Number & java.lang.Comparable<?>> |
getNumber(java.lang.String property,
java.lang.Class<A> type)
Create a new Number typed path
|
<A> SetPath<A,PathBuilder<A>> |
getSet(java.lang.String property,
java.lang.Class<A> type)
Create a new Set typed path
|
<A,E extends SimpleExpression<A>> |
getSet(java.lang.String property,
java.lang.Class<A> type,
java.lang.Class<? super E> queryType)
Create a new Set typed path
|
<A> SimplePath<A> |
getSimple(java.lang.String property,
java.lang.Class<A> type)
Create a new Simple path
|
StringPath |
getString(java.lang.String property)
Create a new String typed path
|
<A extends java.lang.Comparable<?>> |
getTime(java.lang.String property,
java.lang.Class<A> type)
Create a new Time typed path
|
protected <A> java.lang.Class<? extends A> |
validate(java.lang.String property,
java.lang.Class<A> propertyType) |
accept, add, as, createArray, createBoolean, createCollection, createComparable, createDate, createDateTime, createEnum, createList, createMap, createNumber, createSet, createSimple, createString, createTime, forProperty, getAnnotatedElement, getMetadata, getRoot, instanceOf, instanceOfAnyas, as, count, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, whenequals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotatedElement, getMetadata, getRootaccept, getTypepublic PathBuilder(java.lang.Class<? extends T> type, PathMetadata pathMetadata, PathBuilderValidator validator)
type - type of the expressionpathMetadata - path metadatavalidator - validator for property creationpublic PathBuilder(java.lang.Class<? extends T> type, PathMetadata pathMetadata)
type - type of the expressionpathMetadata - path metadatapublic PathBuilder(java.lang.Class<? extends T> type, java.lang.String variable, PathBuilderValidator validator)
type - type of the expressionvariable - variable namevalidator - validator for property creationpublic PathBuilder(java.lang.Class<? extends T> type, java.lang.String variable)
type - type of the expressionvariable - variable nameprotected <A> java.lang.Class<? extends A> validate(java.lang.String property,
java.lang.Class<A> propertyType)
public java.lang.Object getMetadata(Path<?> property)
EntityPathgetMetadata in interface EntityPath<T>getMetadata in class EntityPathBase<T>property - property pathpublic 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 - property typepublic <A,E> ArrayPath<A,E> getArray(java.lang.String property, java.lang.Class<A> type)
A - E - property - property nametype - property typepublic BooleanPath get(BooleanPath path)
path - existing pathpublic 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 - property typepublic <A,E extends SimpleExpression<A>> CollectionPath<A,E> getCollection(java.lang.String property, java.lang.Class<A> type, java.lang.Class<? super E> queryType)
A - E - property - property nametype - property typequeryType - expression typepublic <A extends java.lang.Comparable<?>> ComparablePath<A> get(ComparablePath<A> path)
A - path - existing pathpublic <A extends java.lang.Comparable<?>> ComparablePath<A> getComparable(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic <A extends java.lang.Comparable<?>> DatePath<A> get(DatePath<A> path)
A - path - existing pathpublic <A extends java.lang.Comparable<?>> DatePath<A> getDate(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic <A extends java.lang.Comparable<?>> DateTimePath<A> get(DateTimePath<A> path)
A - path - existing pathpublic <A extends java.lang.Comparable<?>> DateTimePath<A> getDateTime(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic <A extends java.lang.Enum<A>> EnumPath<A> getEnum(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic <A extends java.lang.Enum<A>> EnumPath<A> get(EnumPath<A> path)
A - path - existing pathpublic <A> ListPath<A,PathBuilder<A>> getList(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic <A,E extends SimpleExpression<A>> ListPath<A,E> getList(java.lang.String property, java.lang.Class<A> type, java.lang.Class<? super E> queryType)
A - E - property - property nametype - property typequeryType - expression typepublic <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 - key typevalue - value typepublic <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<? super E> queryType)
K - V - E - property - property namekey - key typevalue - value typequeryType - vaue expression typepublic <A extends java.lang.Number & java.lang.Comparable<?>> NumberPath<A> get(NumberPath<A> path)
A - path - existing pathpublic <A extends java.lang.Number & java.lang.Comparable<?>> NumberPath<A> getNumber(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic <A> SetPath<A,PathBuilder<A>> getSet(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic <A,E extends SimpleExpression<A>> SetPath<A,E> getSet(java.lang.String property, java.lang.Class<A> type, java.lang.Class<? super E> queryType)
A - E - property - property nametype - property typequeryType - expression typepublic <A> SimplePath<A> get(Path<A> path)
A - path - existing pathpublic <A> SimplePath<A> getSimple(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typepublic StringPath get(StringPath path)
path - existing pathpublic StringPath getString(java.lang.String property)
property - property namepublic <A extends java.lang.Comparable<?>> TimePath<A> get(TimePath<A> path)
A - path - existing pathpublic <A extends java.lang.Comparable<?>> TimePath<A> getTime(java.lang.String property, java.lang.Class<A> type)
A - property - property nametype - property typeCopyright © 2007–2021 Querydsl. All rights reserved.