I have an get() method in my abstract gateway, but any gateways that deal
with objects that are soft deletable simply override that method to run a
query that omits the deleted rows. Or, if I have a lot of them and the way
soft deletes are handled is common to them all, I'll create a
SoftDeleteAwareGateway that extends the AbstractGateway, which the relevant
concrete gateways can extend to inherit it's get() method.

On Wed, Jan 28, 2009 at 9:23 AM, John Whish <[email protected]>wrote:

> Yeah - I was just thinking about the abstract get method needing to know
> which objects have soft delete and how you would go about it. Seems like a
> really elegant approach.
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to