Title: Message
Single object (e.g. product) use the business entity object - e.g. product
Editing single object - product.Save() method
Deleting single object - product.Delete() method
 
What object should return a filter list of products?
What object should return an ID list of products?
What object should edit an ID list of products?
What object should delete an ID list of products?
 
Thoughts:
Coldspring suggests:
ProductGateway ( get collections and return query objects)
ProductDAO (for CRUD - R returns an instantiated product object)
ProductService wraps all of the above and is the only externally accessible cfc
(look out for anemic domain model where all work in factory - not domain - e.g. business rules)
 
Another thought
Product list often really a property of the category with includes CategoryProductList query as a property(struct/object)
But what about when you search. You aren't searching a product, you are searching the list of products. How does that work?
 
What is an active record set? an editable list? Does this handle the edit ID list problem? What object name and methods would be required.

IDEA: Look at how farcry works!
 
Also consider abstract factory for calling appropriate DAO for saving a particular item or item set
 
The bean is the business entity - e.g. product. so product.save() will call service object containing the SQL?
What is a service object?
 
Typically access object either individually or in aggregate
 
 
 
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org

Reply via email to