in reply to Grouping / Abstracting Database Transactions
... Now I've run into the situation where i need to nest an object transaction within an object transaction within a WebPage transaction...
I'm guessing that it might help if you give us a little bit of example code, or maybe some pseudo-code or at least a more detailed description of the sort of transaction sequence you're trying to implement (e.g. from the web client's perspective).
Based on what you've posted so far, I can't imagine what sort of web-based interaction model would make it necessary to do this sort of nesting. In fact, it's kind of hard to imagine what sorts of objects you're really talking about.
For that matter, ... um ... what question did you have about your code? If it's just "where to proceed", and your "abstraction layer is a hack", why not just scrap it and start over from first principles (whatever those might be)?
|
|---|