Adobe COLDFUSION 9 Manual page 1347

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
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
Use the RDS CRUD wizard
In Flash Builder or Eclipse, go to the RDS Dataview by doing the following:
1
Select Window > Show View > Other.
a
b
Select RDS.
Select RDS Dataview.
c
Right click a table name.
2
3
Select ColdFusion Wizards > Create CFC.
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
6
(Optional) Select the Primary Key column if a primary key is not defined in the database.
7
(Optional) To specify the primary key column in addition to the other values specified in the CFC, select the
Primary Key is Controlled by the User option. If the primary key is automatically generated by the database (the
identity field), do not select this option.
To replace existing files, select the Overwrite Files If They Already Exist option.
8
Select one of the following CFC Types:
9
• Active Record CFC
Last updated 8/5/2010
1342

Advertisement

Table of Contents
loading

Table of Contents