RDS CRUD wizard
The Remote Development Services (RDS) CRUD Wizard lets you dynamically create a
ColdFusion component (CFC) based on a table that is registered in the ColdFusion
Administrator on a ColdFusion server. To use the RDS CRUD wizard, you must have the
Eclipse RDS Support plug-in installed. (The Eclipse RDS Support plug-in is installed when
you install the ColdFusion wizards.)
The RDS CRUD Wizard lets you create the following types of CFCs:
ActiveRecord style CRUD CFC, which includes all of the properties, get and set methods,
■
and SQL methods in one CFC. The CFC includes the following methods:
() or
(primary key value)
init
init
(primary key value)
load
()
save
()
delete
Bean/DAO style CRUD CFCs, which creates two related CFCs:
■
A Bean CFC, also called a Value Object, which contains the property definitions and
■
get and set methods.
The DAO CFC, which contains the following methods:
■
(primary key value)
read
(cfc instance)
create
(cfc instance)
update
(cfc instance)
delete
Data Service assembler CFC, which includes a Bean (also referred to as a Value Object), a
■
DAO CFC, and an assembler CFC. The assembler CFC is required to take advantage of
the Flex Data Services feature
To use the RDS CRUD wizard:
In Flex Builder, go to the RDS Dataview by doing the following:
1.
Select Window > Show View > Other.
a.
Select RDS.
b.
Select RDS Dataview.
c.
Right click a table name.
2.
Select ColdFusion Wizards > Create CFC.
3.
Enter the project folder where you want to save the CFC in the CFC Folder text box.
4.
Enter the CFC package in the CFC Package Name text box.
5.
86
Using the ColdFusion Extensions for Flex Builder
Need help?
Do you have a question about the COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 and is the answer not in the manual?