House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Adobe Flex

Need Database Call Understanding

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kim Hoopingarner
03/22/2009 09:35 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/22/2009 12:05 PM

----- 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kim Hoopingarner
03/22/2009 12:40 PM

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.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Nimer
03/23/2009 07:10 PM

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 -----


<< Previous Thread Today's Threads Next Thread >>

Search flex

March 19, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31