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:

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5829
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to