Of course, DAOs should not include programmatic transaction demarcation,
no matter which pattern-of-the-day you use to hide it.
At most, a DAO _can_ require a transaction context for particular methods.
This is best expressed with metadata, e.g. EJB 3.0 annotations. |