Correction...

make*() would be private... get*() would be public, and use instance
data to generate and return the code by calling make*.

J


On Tue, 1 Mar 2005 11:59:59 -0600, Jared Rypka-Hauer - CMG, LLC
<[EMAIL PROTECTED]> wrote:
> That's exactly the idea... I'm still working out exactly how to
> convert the code generator (which at the moment is all inline
> procedural stuff) to a well-formed and extensible API.
> 
> I'm considering:
> public string makeCreate(dsnText,userName,password,objOwner,objName)
> public string makeRead(dsnText,userName,password,objOwner,objName)
> public string makeUpdate(dsnText,userName,password,objOwner,objName)
> public string makeDelete(dsnText,userName,password,objOwner,objName)
> public string makeBean(dsnText,userName,password,objOwner,objName)
> 
> And init() could install the DSN, username, password, owner, and
> object in Instance data. Since I'm considering storing the codeGen CFC
> instance in the application scope, and this is effectively a read-only
> application (other than setting up the code generator on the
> application's first run), it's only a matter of repackaging what I've
> already done into a CFC.
> 
> The codeGen CFC would also have in instance data an XML template for
> code creation, so that anyone who wanted to could modify the output
> without having to edit anything but that XML file.
> 
> Any thoughts?
> 
> J
> 
> 
> On Tue, 1 Mar 2005 08:24:51 -0500, Joe Rinehart <[EMAIL PROTECTED]> wrote:
> > Jared,
> >
> > Works OK in my Firefox.  The one thing that'd stop me from being able
> > to use it is the DAO format....maybe an option to generate DAO + Bean,
> > where the DAO would methods with the following types of sigs:
> >
> > public bean create(bean)
> > public bean read(uuid/int/guid id)
> > public bean update(bean)
> > public void delete(uuid/int/guid id)
> >
> > Of course, that's just me kinda of expressing personal style.  Maybe
> > you could create an open-ended API for generating code?
> >
> > -Joe
> >
> > > :throws URL away
> >
> > Maybe that's a little harsh?
> >
> > --
> > For Tabs, Trees, and more, use the jComponents:
> > http://clearsoftware.net/client/jComponents.cfm
> >
> >
> >
> 
> --
> Continuum Media Group LLC
> Burnsville, MN 55337
> http://www.web-relevant.com
> http://cfobjective.neo.servequake.com
> 


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://cfobjective.neo.servequake.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196979
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to