开发者

How would you call a life-cycle management class?

开发者 https://www.devze.com 2023-01-15 10:22 出处:网络
As an example you can think of a h开发者_JAVA技巧ibernate transaction and a class which begins one for a thread, commits and rollbacks, Or a class which gets a session, closes it and flushes it (both

As an example you can think of a h开发者_JAVA技巧ibernate transaction and a class which begins one for a thread, commits and rollbacks, Or a class which gets a session, closes it and flushes it (both examples are with the threadlocal pattern in mind).


UnitOfWork?

See http://ayende.com/blog/archive/2007/06/08/rhino-commons-repositorylttgt-and-unit-of-work.aspx .

0

精彩评论

暂无评论...
验证码 换一张
取 消