|
Mailing Lists
|
Home /
Groups /
Adobe Flex
Need Database Call Understanding
I am new to Flex - but been a Coldfusion programmer for a few years now. I am trying to make some sense out of how the Flex wizard creating the coldfusion CFC's is advantageous. It creates 2 layers (bean/DAO) - one is the Gateway file that is basically calling functions in the DAO.Kim Hoopingarner 03/22/09 09:35 A > I am new to Flex - but been a Coldfusion programmer for a few years now. I am trying toDave Watts 03/22/09 12:05 P OK, makes sense. So the advantage is the use of the strong names in the code. I thought there was something really techie involved with the CF server that made gateway/dao run better than a single file with multiple cfquery's within.Kim Hoopingarner 03/22/09 12:40 P The reason it generates bean/dao, is only because it's a common designMike Nimer 03/23/09 07:10 P I am new to Flex - but been a Coldfusion programmer for a few years now. I am trying to make some sense out of how the Flex wizard creating the coldfusion CFC's is advantageous. It creates 2 layers (bean/DAO) - one is the Gateway file that is basically calling functions in the DAO. Is there an advantage to calling this 2-CFC-sequence instead of calling 1 single CFC? I know that these CFC's are created in a slick way to minimize programmer efforts in coding. But I question the efficiency... Thanks for clearing the mystery! Kim ----- Excess quoted text cut - see Original Post for more ----- I really wouldn't worry about the inefficiency there. The much bigger inefficiency is the use of beans on the server to represent the individual records, but the advantage of doing this is that you can then use corresponding value objects on the client and take full advantage of the OO model in Flex. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more informati OK, makes sense. So the advantage is the use of the strong names in the code. I thought there was something really techie involved with the CF server that made gateway/dao run better than a single file with multiple cfquery's within. Thanks. The reason it generates bean/dao, is only because it's a common design pattern. That a lot of frameworks use. So by using bean/dao (and the wizards also create Active Record style CFCs too if you only want one cfc) you can plug them right into a known framework. ---nimer On Mar 22, 2009, at 1:00 PM, Dave Watts wrote: ----- Excess quoted text cut - see Original Post for more -----
|
March 19, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||