Hey,

Currently in the Query API the QueryBuilder comes from a QueryBuilderFactory that comes from a UnitOfWork. This unfortunately makes it impossible to create QueryBuilders during initialization and then reuse them with variables during execution.

I would suggest refactoring so that:
* QueryBuilderFactory comes from Modules just like the other services
* QueryBuilder.newQuery() is changed to QueryBuilder.newQuery(UnitOfWork), which would then mirror the already existing QueryBuilder.newQuery(Iterable)

Without this there is no point in having variables, as the query has to be built every time anyway. With this it becomes possible to do builders once and then reuse them.

Any issues with this? Possible improvements?

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to