Query utils

Bug #788125 reported by Samppa Saarela on 2011-05-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

There should be an easy to find access point for all different kind of "special" expressions. Currently different kind of special expressions are scattered here and there and are sometimes hard to find/remember. For example case-when (CaseBuilder), shortcut for disjunction (BooleanBuilder), NumberTemplate/TemplateExpression (for DB-specific or custom functions not found in interfaces).

E.g. Queries.case(),
Queries.anyOf(Predicate... args),
Queries.integerTemplate(String template, Expression<?>... args) - sortcut for NumberTemplate<Integer>,
Queries.constant(T value) - shortcut for ConstantImpl or null-expression
Queries.subQuery()

This utility class should probably not be a static library but allow extensions for different query languages and backends as well as parametrized sub query type.

description: updated
description: updated

added some utility methods to ExpressionUtils

Changed in querydsl:
status: New → In Progress

added com.mysema.query.support.Expressions which better fits this purpose. Additional convenience factory methods can be added to this class.

Changed in querydsl:
status: In Progress → Fix Committed

Released in 2.2.0

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers