On Thu, Nov 6, 2008 at 22:16, Rickard Öberg <[EMAIL PROTECTED]> wrote:
> @Structure UnitOfWorkFactory uowf;
> void domainMethod()
> {
> UnitOfWork uow = uowf.nestedUnitOfWork();
> .. do things with the uow which can see
> everything in "this" Module ...
> uow.complete();
> }
>
> This way the code will be able to see things that are hidden from the UI
> layer that initiated the "big" UnitOfWork.
But how about domain method that wants to return query?
Who's responsible to close the unit of work.
Would we be able to reattach query to another unit of work but still
attach to the module that it was created originally?
> Does this make sense?
It does, except for the query bits.
> If yes, then I would also suggest that we remove
> uow.compositeBuilderFactory() and uow.objectBuilderFactory(), since
> these methods can be trivially reached from
> uow.module().compositeBuilderFactory() and
> uow.module().objectBuilderFactory(), respectively.
+1
Regards,
Edward Yakop
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev