[
http://issues.ops4j.org/browse/QI-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13714#action_13714
]
Niclas Hedhman commented on QI-271:
-----------------------------------
Please expand this Description to how this would be used, preferably with
comparisons of the current way to express the same thing.
> Builder-pattern for BooleanExpressions in Query API
> ---------------------------------------------------
>
> Key: QI-271
> URL: http://issues.ops4j.org/browse/QI-271
> Project: Qi4j
> Issue Type: Improvement
> Components: Query
> Affects Versions: 1.1
> Environment: Qi4j.
> Reporter: Stanislav Muhametsin
> Assignee: Stanislav Muhametsin
> Fix For: 1.3
>
>
> Currently building boolean expressions (at least more complicated ones) is a
> bit painful. Improve it by extending the builder-pattern to boolean
> expressions. The interface would be something like this
> {code:title=BooleanBuilder.java}
> public interface BooleanBuilder
> {
> public BooleanBuilder and(BooleanExpression another);
> public BooleanBuilder or(BooleanExpression another);
> public BooleanBuilder not();
> public BooleanBuilder reset(BooleanExpression newExp);
> public BooleanExpression getCurrent();
> }
> {code}
> The atomic BooleanExpressions could still be created from QueryExpressions,
> or maybe introduce an own 'BooleanFactory", to say, unit of work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev