PEAA_学习笔记_Transaction Script

"Organize Business Logic by procedures that carry out what needs to be done in a transaction "

1.A transaction script organizes all its business logic as a single procedure, making calls directly to the DB all through a thin dao layer

2.When applying this pattern, try to separate business logic from the layered architechure

3. Two ways of implemention: define each transaction as a Commond object, or collect some related transactions into one class which gets global methods

4.Transaction Script pattern is said to be easy to understand, however, it’s only for simple logic.  It’s gettiing very complicated as business logic grows.  —–I don’t see that happen.

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.