Besides the DAO and Gateway components, where is the best place to put BO
code that needs to access a database.
Business objects don't access databases almost by definition so the answer seems to be "put the code outside any business object".
In the above example, where should the getParentPath() method be located.
This method would get the parent section's path which is stored in a
database.
I would expect the parent (whatever that is) to have its path as part of its data and you'd pass the parent object or the parent path into the detail object. In the former case, the detail object could call:
arguments.parent.getPath()
The parent object would treat the path as just another piece of data that comes into from the parent DAO when the parent BO is created (possibly at the hands of a manager object).
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
