Galleon on DataMgr

I recently noticed that Galleon has been used as a sample application for a few frameworks. Showing a complete lack of originality, I decided to do the same thing with DataMgr on Galleon. Where relevant, I changed the code from cfquery calls to DataMgr calls. The goal was to change only the business layer internals and leave the rest of the code unchanged.

[More]

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
I had actually contemplated a 2nd frameworks comparison article using Galleon that would include just ORMs... yours, Transfer, Reactor and DataFaucet ... though it wasn't DataFaucet when I did the first article, it was still part of the onTap framework at the time... But there's been underwhelming response to the original frameworks article, so I'm not sure if I'll end up doing an ORM edition. :) Ray did have a couple queries that were outside his cfc directory, although he was pretty good about keeping most of them in there. Which was pretty handy for the conversion.
# Posted By ike | 8/7/08 7:10 AM
Ike,

Good to know. I actually didn't even look for queries outside of his cfcs folder (as per my goals), so I would have missed those.

I'm glad you had the idea though, because it is certainly a good way to demonstrate the use of a DAL.
# Posted By Steve Bryant | 8/8/08 5:39 AM
Thanks for the complement. :)

Yeah he had I think a stats page and I think his search results might have been outside the cfcs. But it ended up being so few outside his CFCs that you could count them on the fingers on one hand. And imo those really should have been in his CFCs too, and I certainly wouldn't fault anyone for not converting them, particularly given that it's a demonstration.
# Posted By ike | 8/8/08 5:02 PM
I'm assuming this is another orm/helper that only works on Adobe engines? Correct?

Would be great if it worked on Bluedragon or Railo. (Or they added whatever java method is missing that everyone seems to use.)

By the way, what about speed vs other methods?
# Posted By ziggy | 8/18/08 10:58 PM
Ziggy,

Good questions.

DataMgr is a DAL (Data Access Layer) which means that it does occupy the same space as an ORM. It isn't an ORM, however, as it takes a different approach (see the "What is DataMgr?" link at the top of the entry for more information).

I do need to test on Blue Dragon and Railo, but it hasn't yet been high on my priority list. I don't know any reason why it wouldn't work on either of them though.

As to speed, I have only run one brief set of performance tests so far and more are certainly needed. In the meantime, here are the results of my first set of tests:
http://www.bryantwebconsulting.com/blog/index.cfm/...
# Posted By Steve Bryant | 8/19/08 6:03 AM
I'll try it out sometime on BD and let you know later.

I figured there was database info gathered via methods other engines don't have.
# Posted By ziggy | 8/19/08 8:41 PM
I saw this code which doesn't work on BD, as I thought:

>>coldfusion.server.ServiceFactory

So, no luck with BD but I did read someone saying this now worked on Railo though (maybe 3 only, not sure), which is good. Really, it's up to BD to fix BD, isn't it? And me to change to Railo 3 when released ;-)

----------------------

Faq ID    258
Product    BlueDragon
Category    Administration, Supported Features
Question    Does BlueDragon support the coldfusion.server.ServiceFactory in CFMX?
Answer    There is an undocumented API for CFMX which provides programmatic access to the Administration of the server, including listing and updating such information as datasources, mappings, schedule tasks, etc. We appreciate that developers want such a solution in BlueDragon.

Still, this ServiceFactory is not only undocumented but has been deprecated in CFMX 7 in favor of a new CFC-based api, we will not be offering any implementation of these identical undocumented ServiceFactory methods.

We had already begun creating a CFC to provide programmatic Admin access even before the CFMX 7 beta began, and we are still debating whether to proceed with and release that, or rewrite to follow CFMX 7's CFC component and method names After resolving this and related matters, we will make the CFC available as soon as possible.

In the meantime, if BlueDragon VAR partners or other customers have a desparate need for this functionality, we have an early version of our own admin api CFC available. Contact sales@newatlanta.com if interested.
# Posted By ziggy | 8/19/08 9:32 PM
Ziggy,

That is actually funny. I just added that in the newest build. It should only execute if you don't provide the "database" argument on initialization. If that isn't the case, then I might have to look at refactoring that a bit.
# Posted By Steve Bryant | 8/20/08 5:23 AM
OK, that's great! I'll give it a whirl when I can.

Thanks!
# Posted By ziggy | 8/20/08 7:34 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.