Let's give you a simple answer too ...

I’m really confused as to how to design DAO’s for this.  I want to be able to have a pageManager cfc that takes a pageID as a field and returns either a lecture or activity object.  

 

To me it depends on whether this is for display or for editing the page ... i'd do it differently in each case. What does your PageManager do? Does it display the page? Edit the page? When we say "Page" do we mean Page Content or just the title, meta description and name in the link that a visitor clicks on to get to the Page.

 

Do I build multiple DAO’s that corresponds to each different subclass (ie: a lectureDAO and an activityDAO)?   

 

For editing, i'd build multiple DAO's and i might consider, but probably wouldn't compose the lecture and activity DAO's into the page DAO. It depends on what you're actually doing when editing (whether you're simutaneously editing information about the page AND the activity in one form for instance.)

 

What i'd probably do is just have the pageID be a property of Activity ... and i'd probably have some ID in there that indicates where on the page the activity goes (which Container) if there is any chance at all there there might wind up to be more than one bit of Content on the Page.

 

Do I build one pageDAO that has in its CRUD logic that handles what databases to work with based on the class?

 

Sorry ... i tried to keep that as simple as possible! :)

 

Boson Au

Web Content Developer

Center for Teaching and Learning with Technology

Johns Hopkins University Bloomberg School of Health

[EMAIL PROTECTED]

410-223-1671

 

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] 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/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] 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/[email protected]

Reply via email to