-
- All Implemented Interfaces:
-
com.weedow.spring.data.search.query.QueryBuilder
public final class JpaQueryBuilder<T extends Object> implements QueryBuilder<T>
JPA QueryBuilder implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private final QEntityRoot<T>
qEntityRoot
-
Constructor Summary
Constructors Constructor Description JpaQueryBuilder(DataSearchContext dataSearchContext, AbstractJPAQuery<T, ?> query, QEntityRoot<T> qEntityRoot)
-
Method Summary
Modifier and Type Method Description Unit
distinct()
QEntityJoin<?>
join(QPath<?> qPath, JoinType joinType, Boolean fetched)
Predicate
and(Expression<Boolean> x, Expression<Boolean> y)
Predicate
and(Predicate restrictions)
Predicate
or(Expression<Boolean> x, Expression<Boolean> y)
Predicate
or(Predicate restrictions)
Predicate
not(Expression<Boolean> restriction)
Predicate
equal(Expression<?> x, Object value)
Predicate
isNull(Expression<?> x)
Predicate
like(Expression<String> x, String value)
Predicate
ilike(Expression<String> x, String value)
Predicate
lessThan(Expression<?> x, Object value)
Predicate
lessThanOrEquals(Expression<?> x, Object value)
Predicate
greaterThan(Expression<?> x, Object value)
Predicate
greaterThanOrEquals(Expression<?> x, Object value)
Predicate
in(Expression<?> x, Collection<?> values)
QEntityRoot<T>
getQEntityRoot()
-
-
Method Detail
-
and
Predicate and(Predicate restrictions)
-
or
Predicate or(Predicate restrictions)
-
isNull
Predicate isNull(Expression<?> x)
-
lessThanOrEquals
Predicate lessThanOrEquals(Expression<?> x, Object value)
-
greaterThan
Predicate greaterThan(Expression<?> x, Object value)
-
greaterThanOrEquals
Predicate greaterThanOrEquals(Expression<?> x, Object value)
-
in
Predicate in(Expression<?> x, Collection<?> values)
-
getQEntityRoot
QEntityRoot<T> getQEntityRoot()
-
-
-
-