User Guide

86 Using the ColdFusion Extensions for Flex Builder
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:
init() or init(primary key value)
load(primary key value)
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:
read(primary key value)
create(cfc instance)
update(cfc instance)
delete(cfc instance)
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:
1. In Flex Builder, go to the RDS Dataview by doing the following:
a. Select Window > Show View > Other.
b. Select RDS.
c. Select RDS Dataview.
2. Right click a table name.
3. Select ColdFusion Wizards > Create CFC.
4. Enter the project folder where you want to save the CFC in the CFC Folder text box.
5. Enter the CFC package in the CFC Package Name text box.