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.
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.
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.
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?
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/...
I figured there was database info gathered via methods other engines don't have.
>>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.
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.
Thanks!