<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AIR Embedded Database Sample Application</title>
	<atom:link href="http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/</link>
	<description>News and Information about Adobe Flex &#38; Adobe AIR by Rich Tretola</description>
	<lastBuildDate>Wed, 17 Mar 2010 19:50:11 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: everythingflex</title>
		<link>http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/comment-page-1/#comment-358</link>
		<dc:creator>everythingflex</dc:creator>
		<pubDate>Tue, 16 Oct 2007 11:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/#comment-358</guid>
		<description>In this case I am simply passing the Objects to a remote ColdFusion server over AMF. I point my local AS3 object to my remote CFC:
Here is the sample connection:
[cc lang=&quot;XML&quot;]
&lt;mx:RemoteObject
		id=&quot;coldfusionService&quot;
		destination=&quot;ColdFusion&quot;
		endpoint=&quot;http://mydomain.com/flex2gateway/&quot;
		showBusyCursor=&quot;true&quot;
		source=&quot;com.everythingflex.employeeDirectory.business.Delegate&quot;
		concurrency=&quot;last&quot;
		result=&quot;event.token.resultHandler( event )&quot;
		fault=&quot;event.token.faultHandler( event )&quot;/&gt;
[/cc]

&lt;strong&gt;Employee ActionScript Object&lt;/strong&gt;
[cc lang=&quot;ActionScript&quot;]
package com.everythingflex.employeeDirectory.vo
{
	[RemoteClass(alias=&quot;com.everythingflex.employeeDirectory.vo.Employee&quot;)]
	[Bindable]
	public class Employee
	{
		public var employeeId:Number;
		public var firstName:String;
		public var lastName:String;
		public var email:String;
		public var jobTitle:String;
		public var userId:Number;
	}
}
[/cc]
&lt;strong&gt;Employee ColdFusion CFC&lt;/strong&gt;
[cc lang=&quot;cfm&quot;]
&lt;cfcomponent output=&quot;false&quot;&gt;

	&lt;cfproperty name=&quot;employeeId&quot; type=&quot;numeric&quot; required=&quot;true&quot; default=&quot;&quot;&gt;
	&lt;cfproperty name=&quot;firstName&quot; type=&quot;string&quot; required=&quot;true&quot; default=&quot;&quot;&gt;
	&lt;cfproperty name=&quot;lastName&quot; type=&quot;string&quot; required=&quot;true&quot; default=&quot;&quot;&gt;
	&lt;cfproperty name=&quot;email&quot; type=&quot;string&quot; required=&quot;true&quot; default=&quot;&quot;&gt;
	&lt;cfproperty name=&quot;jobTitle&quot; type=&quot;string&quot; required=&quot;true&quot; default=&quot;&quot;&gt;
	&lt;cfproperty name=&quot;userId&quot; type=&quot;numeric&quot; required=&quot;true&quot; default=&quot;&quot;&gt;

		&lt;!--- Initialize vars ---&gt;
	&lt;cfscript&gt;
		variables.instance[&quot;employeeId&quot;]=0;
		variables.instance[&quot;firstName&quot;]=&quot;&quot;;
		variables.instance[&quot;lastName&quot;]=&quot;&quot;;
		variables.instance[&quot;email&quot;]=&quot;&quot;;
		variables.instance[&quot;jobTitle&quot;]=&quot;&quot;;
		variables.instance[&quot;userId&quot;]=0;
	&lt;/cfscript&gt;

	&lt;!--- Populate data ---&gt;
	&lt;cffunction name=&quot;init&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;com.everythingflex.employeeDirectory.vo.Employee&quot;&gt;
		&lt;cfargument name=&quot;employeeId&quot; type=&quot;numeric&quot; required=&quot;yes&quot;&gt;
		&lt;cfargument name=&quot;firstName&quot; type=&quot;string&quot; required=&quot;yes&quot;&gt;
		&lt;cfargument name=&quot;lastName&quot; type=&quot;string&quot; required=&quot;yes&quot;&gt;
		&lt;cfargument name=&quot;email&quot; type=&quot;string&quot; required=&quot;yes&quot;&gt;
		&lt;cfargument name=&quot;jobTitle&quot; type=&quot;string&quot; required=&quot;yes&quot;&gt;
		&lt;cfargument name=&quot;userId&quot; type=&quot;numeric&quot; required=&quot;yes&quot;&gt;

		&lt;!--- Save it all ---&gt;
		&lt;cfscript&gt;
			setEmployeeId(arguments.employeeId);
			setFirstName(arguments.firstName);
			setLastName(arguments.lastName);
			setEmail(arguments.email);
			setJobTitle(arguments.jobTitle);
			setUserId(arguments.userId);
		&lt;/cfscript&gt;

		&lt;cfreturn this&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;getEmployeeId&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;numeric&quot;&gt;
		&lt;cfreturn variables.instance.employeeId&gt;
	&lt;/cffunction&gt;
	&lt;cffunction name=&quot;setEmployeeId&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;void&quot;&gt;
		&lt;cfargument name=&quot;val&quot; required=&quot;true&quot; type=&quot;numeric&quot;&gt;
		&lt;cfset variables.instance.employeeId=arguments.val&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;getFirstName&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;string&quot;&gt;
		&lt;cfreturn variables.instance.firstName&gt;
	&lt;/cffunction&gt;
	&lt;cffunction name=&quot;setFirstName&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;void&quot;&gt;
		&lt;cfargument name=&quot;val&quot; required=&quot;true&quot; type=&quot;string&quot;&gt;
		&lt;cfset variables.instance.firstName=arguments.val&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;getLastName&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;string&quot;&gt;
		&lt;cfreturn variables.instance.lastName&gt;
	&lt;/cffunction&gt;
	&lt;cffunction name=&quot;setLastName&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;void&quot;&gt;
		&lt;cfargument name=&quot;val&quot; required=&quot;true&quot; type=&quot;string&quot;&gt;
		&lt;cfset variables.instance.lastName=arguments.val&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;getEmail&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;string&quot;&gt;
		&lt;cfreturn variables.instance.email&gt;
	&lt;/cffunction&gt;
	&lt;cffunction name=&quot;setEmail&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;void&quot;&gt;
		&lt;cfargument name=&quot;val&quot; required=&quot;true&quot; type=&quot;string&quot;&gt;
		&lt;cfset variables.instance.email=arguments.val&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;getJobTitle&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;string&quot;&gt;
		&lt;cfreturn variables.instance.jobTitle&gt;
	&lt;/cffunction&gt;
	&lt;cffunction name=&quot;setJobTitle&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;void&quot;&gt;
		&lt;cfargument name=&quot;val&quot; required=&quot;true&quot; type=&quot;string&quot;&gt;
		&lt;cfset variables.instance.jobTitle=arguments.val&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;getUserId&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;numeric&quot;&gt;
		&lt;cfreturn variables.instance.userId&gt;
	&lt;/cffunction&gt;
	&lt;cffunction name=&quot;setUserId&quot; output=&quot;false&quot; access=&quot;public&quot; returntype=&quot;void&quot;&gt;
		&lt;cfargument name=&quot;val&quot; required=&quot;true&quot; type=&quot;numeric&quot;&gt;
		&lt;cfset variables.instance.userId=arguments.val&gt;
	&lt;/cffunction&gt;

&lt;/cfcomponent&gt;
[/cc]


&lt;strong&gt;I do also have a central delegate but it simply calls this DAO to manage the remote data:&lt;/strong&gt;
[cc lang=&quot;cfm&quot;]
&lt;cfcomponent&gt;
	&lt;!--- Define properties ---&gt;
	&lt;cfproperty name=&quot;datasource&quot; type=&quot;string&quot;&gt;

	&lt;!--- Initialize vars ---&gt;
	&lt;cfset datasource=&quot;EmployeeDirectory&quot;&gt;

	&lt;cffunction name=&quot;getEmployees&quot; returntype=&quot;Array&quot;&gt;
		&lt;cfargument name=&quot;userId&quot; default=&quot;true&quot; required=&quot;false&quot;&gt;
		&lt;cfset var getEmployees = &quot;&quot;&gt;
		&lt;cfset var employees = ArrayNew(1)&gt;
		&lt;cfset var args = StructNew()&gt;
		&lt;cfquery name=&quot;getEmployees&quot; datasource=&quot;#datasource#&quot;&gt;
			SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL,
				   JOB_TITLE, USER_ID
			FROM Employees
			WHERE USER_ID = #arguments.userId#
		&lt;/cfquery&gt;
		&lt;cfloop query=&quot;getEmployees&quot;&gt;
			&lt;cfscript&gt;
		   		args = StructNew();
		   		StructInsert(args, &quot;employeeId&quot;, getEmployees.EMPLOYEE_ID);
		   		StructInsert(args, &quot;firstName&quot;, getEmployees.FIRST_NAME);
		   		StructInsert(args, &quot;lastName&quot;, getEmployees.LAST_NAME);
		   		StructInsert(args, &quot;email&quot;, getEmployees.EMAIL);
		   		StructInsert(args, &quot;jobTitle&quot;, getEmployees.JOB_TITLE);
		   		StructInsert(args, &quot;userId&quot;, getEmployees.USER_ID);
			&lt;/cfscript&gt;
			&lt;cfinvoke component=&quot;com.everythingflex.employeeDirectory.vo.Employee&quot; method=&quot;init&quot;
					argumentcollection=&quot;#args#&quot;
					returnvariable=&quot;employee&quot;&gt;
			&lt;cfset ArrayAppend(employees, employee)&gt;
		&lt;/cfloop&gt;
		&lt;cfreturn employees/&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;deleteEmployees&quot; returntype=&quot;Boolean&quot;&gt;
		&lt;cfargument name=&quot;userId&quot; default=&quot;0&quot; required=&quot;false&quot;&gt;
		&lt;cftry&gt;
			&lt;cfquery name=&quot;deleteEmployees&quot; datasource=&quot;#datasource#&quot;&gt;
				DELETE
				FROM Employees
				WHERE USER_ID = #arguments.userId#
			&lt;/cfquery&gt;
			&lt;cfreturn true&gt;
		&lt;cfcatch&gt;
			&lt;cfreturn false&gt;
		&lt;/cfcatch&gt;
		&lt;/cftry&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;saveEmployees&quot; returntype=&quot;numeric&quot;&gt;
		&lt;cfargument name=&quot;employees&quot; type=&quot;Array&quot; required=&quot;true&quot;&gt;
		&lt;cfset var returnCount = 0&gt;
		&lt;cfset var args = &quot;&quot;&gt;
		&lt;cfscript&gt;
			deleteEmployees(arguments.employees[1].getUserId());
		&lt;/cfscript&gt;

		&lt;cfloop from=&quot;1&quot; to=&quot;#ArrayLen(employees)#&quot; index=&quot;i&quot;&gt;
			&lt;cfscript&gt;
		   		args = StructNew();
		   		StructInsert(args, &quot;employee&quot;, employees[i]);
			&lt;/cfscript&gt;
			&lt;cfinvoke component=&quot;com.everythingflex.employeeDirectory.business.Delegate&quot; method=&quot;saveEmployee&quot;
					argumentcollection=&quot;#args#&quot;
					returnvariable=&quot;result&quot;&gt;
			&lt;cfif result&gt;
				&lt;cfset returnCount = returnCount + 1&gt;
			&lt;/cfif&gt;
		&lt;/cfloop&gt;
		&lt;cfreturn returnCount/&gt;
	&lt;/cffunction&gt;

	&lt;cffunction name=&quot;saveEmployee&quot; returntype=&quot;Boolean&quot;&gt;
		&lt;cfargument name=&quot;employee&quot; type=&quot;com.everythingflex.employeeDirectory.vo.Employee&quot;&gt;
		&lt;cfset var returnVar = true&gt;
		&lt;cfset var saveEmployee = &quot;&quot;&gt;
		&lt;cftry&gt;
			&lt;cfquery name=&quot;saveEmployee&quot; datasource=&quot;#datasource#&quot;&gt;
				INSERT INTO Employees
					(FIRST_NAME,
					 LAST_NAME,
					 EMAIL,
					 JOB_TITLE,
					 USER_ID)
				VALUES
					(&#039;#employee.getFirstName()#&#039;,
					 &#039;#employee.getLastName()#&#039;,
					 &#039;#employee.getEmail()#&#039;,
					 &#039;#employee.getJobTitle()#&#039;,
					 #employee.getUserId()#)
			&lt;/cfquery&gt;
		&lt;cfcatch&gt;
			&lt;cfset returnVar = false&gt;
		&lt;/cfcatch&gt;
		&lt;/cftry&gt;
		&lt;cfreturn returnVar/&gt;
	&lt;/cffunction&gt;

&lt;/cfcomponent&gt;
[/cc]</description>
		<content:encoded><![CDATA[<p>In this case I am simply passing the Objects to a remote ColdFusion server over AMF. I point my local AS3 object to my remote CFC:<br />
Here is the sample connection:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:RemoteObject</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;coldfusionService&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">destination</span>=<span style="color: #ff0000;">&quot;ColdFusion&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">endpoint</span>=<span style="color: #ff0000;">&quot;http://mydomain.com/flex2gateway/&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">showBusyCursor</span>=<span style="color: #ff0000;">&quot;true&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">source</span>=<span style="color: #ff0000;">&quot;com.everythingflex.employeeDirectory.business.Delegate&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">concurrency</span>=<span style="color: #ff0000;">&quot;last&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">result</span>=<span style="color: #ff0000;">&quot;event.token.resultHandler( event )&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">fault</span>=<span style="color: #ff0000;">&quot;event.token.faultHandler( event )&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></td></tr></tbody></table></div>
<p><strong>Employee ActionScript Object</strong></p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package com.<span style="color: #006600;">everythingflex</span>.<span style="color: #006600;">employeeDirectory</span>.<span style="color: #006600;">vo</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>RemoteClass<span style="color: #66cc66;">&#40;</span>alias=<span style="color: #ff0000;">&quot;com.everythingflex.employeeDirectory.vo.Employee&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Employee<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> employeeId:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> firstName:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> lastName:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> email:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> jobTitle:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> userId:<span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>Employee ColdFusion CFC</strong></p>
<div class="codecolorer-container cfm default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br /></div></td><td><div class="cfm codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfcomponent</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfproperty</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;employeeId&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfproperty</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;firstName&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfproperty</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;lastName&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfproperty</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;email&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfproperty</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;jobTitle&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfproperty</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;userId&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">&lt;!--- Initialize vars ---&gt;</span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; variables.instance[&quot;employeeId&quot;]=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; variables.instance[&quot;firstName&quot;]=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; variables.instance[&quot;lastName&quot;]=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; variables.instance[&quot;email&quot;]=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; variables.instance[&quot;jobTitle&quot;]=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; variables.instance[&quot;userId&quot;]=0;<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">&lt;!--- Populate data ---&gt;</span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;init&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;com.everythingflex.employeeDirectory.vo.Employee&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;employeeId&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;yes&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;firstName&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;yes&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;lastName&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;yes&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;email&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;yes&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;jobTitle&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;yes&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;userId&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;yes&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">&lt;!--- Save it all ---&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setEmployeeId(arguments.employeeId);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setFirstName(arguments.firstName);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setLastName(arguments.lastName);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setEmail(arguments.email);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setJobTitle(arguments.jobTitle);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setUserId(arguments.userId);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> this<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getEmployeeId&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.instance.employeeId<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;setEmployeeId&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.instance.employeeId<span style="color: #0000FF;">=</span>arguments.val<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getFirstName&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.instance.firstName<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;setFirstName&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.instance.firstName<span style="color: #0000FF;">=</span>arguments.val<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getLastName&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.instance.lastName<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;setLastName&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.instance.lastName<span style="color: #0000FF;">=</span>arguments.val<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getEmail&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.instance.email<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;setEmail&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.instance.email<span style="color: #0000FF;">=</span>arguments.val<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getJobTitle&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.instance.jobTitle<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;setJobTitle&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.instance.jobTitle<span style="color: #0000FF;">=</span>arguments.val<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getUserId&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.instance.userId<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;setUserId&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.instance.userId<span style="color: #0000FF;">=</span>arguments.val<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfcomponent</span><span style="color: #0000FF;">&gt;</span></span></div></td></tr></tbody></table></div>
<p><strong>I do also have a central delegate but it simply calls this DAO to manage the remote data:</strong></p>
<div class="codecolorer-container cfm default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br /></div></td><td><div class="cfm codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfcomponent</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">&lt;!--- Define properties ---&gt;</span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfproperty</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;datasource&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;string&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">&lt;!--- Initialize vars ---&gt;</span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #0000FF;">datasource</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;EmployeeDirectory&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getEmployees&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Array&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;userId&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> getEmployees <span style="color: #0000FF;">=</span> <span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> employees <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">ArrayNew</span><span style="color: #0000FF;">&#40;</span><span style="color: #FF0000;">1</span><span style="color: #0000FF;">&#41;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> args <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">StructNew</span><span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfquery</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getEmployees&quot;</span> <span style="color: #0000FF;">datasource</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;#datasource#&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;JOB_TITLE, USER_ID<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM Employees<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE USER_ID = <span style="color: #0000FF;">#arguments.userId#</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfquery</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfloop</span> <span style="color: #0000FF;">query</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getEmployees&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; args = StructNew();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StructInsert(args, &quot;employeeId&quot;, getEmployees.EMPLOYEE_ID);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StructInsert(args, &quot;firstName&quot;, getEmployees.FIRST_NAME);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StructInsert(args, &quot;lastName&quot;, getEmployees.LAST_NAME);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StructInsert(args, &quot;email&quot;, getEmployees.EMAIL);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StructInsert(args, &quot;jobTitle&quot;, getEmployees.JOB_TITLE);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StructInsert(args, &quot;userId&quot;, getEmployees.USER_ID);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfinvoke</span> component<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;com.everythingflex.employeeDirectory.vo.Employee&quot;</span> <span style="color: #0000FF;">method</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;init&quot;</span></span><br />
<span style="color: #333333;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; argumentcollection<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;#args#&quot;</span></span><br />
<span style="color: #333333;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returnvariable<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;employee&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #0000FF;">ArrayAppend</span><span style="color: #0000FF;">&#40;</span>employees, employee<span style="color: #0000FF;">&#41;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfloop</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> employees<span style="color: #0000FF;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;deleteEmployees&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Boolean&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;userId&quot;</span> <span style="color: #0000FF;">default</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;0&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cftry</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfquery</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;deleteEmployees&quot;</span> <span style="color: #0000FF;">datasource</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;#datasource#&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DELETE<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM Employees<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE USER_ID = <span style="color: #0000FF;">#arguments.userId#</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfquery</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> true<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfcatch</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> false<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfcatch</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cftry</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;saveEmployees&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;numeric&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;employees&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Array&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> returnCount <span style="color: #0000FF;">=</span> <span style="color: #FF0000;">0</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> args <span style="color: #0000FF;">=</span> <span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deleteEmployees(arguments.employees[1].getUserId());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfloop</span> <span style="color: #0000FF;">from</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;1&quot;</span> <span style="color: #0000FF;">to</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;#ArrayLen(employees)#&quot;</span> <span style="color: #0000FF;">index</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;i&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; args = StructNew();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StructInsert(args, &quot;employee&quot;, employees[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfscript</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfinvoke</span> component<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;com.everythingflex.employeeDirectory.business.Delegate&quot;</span> <span style="color: #0000FF;">method</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;saveEmployee&quot;</span></span><br />
<span style="color: #333333;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; argumentcollection<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;#args#&quot;</span></span><br />
<span style="color: #333333;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returnvariable<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;result&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfif</span> result<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> returnCount <span style="color: #0000FF;">=</span> returnCount + <span style="color: #FF0000;">1</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfif</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfloop</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> returnCount<span style="color: #0000FF;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;saveEmployee&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Boolean&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;employee&quot;</span> <span style="color: #0000FF;">type</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;com.everythingflex.employeeDirectory.vo.Employee&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> returnVar <span style="color: #0000FF;">=</span> true<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> <span style="color: #000000; font-weight: bold;">var</span> saveEmployee <span style="color: #0000FF;">=</span> <span style="color: #009900;">&quot;&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cftry</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfquery</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;saveEmployee&quot;</span> <span style="color: #0000FF;">datasource</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;#datasource#&quot;</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INSERT INTO Employees<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (FIRST_NAME,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LAST_NAME,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EMAIL,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;JOB_TITLE,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;USER_ID)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUES<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ('<span style="color: #0000FF;">#employee.getFirstName<span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span>#</span>',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'<span style="color: #0000FF;">#employee.getLastName<span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span>#</span>',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'<span style="color: #0000FF;">#employee.getEmail<span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span>#</span>',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'<span style="color: #0000FF;">#employee.getJobTitle<span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span>#</span>',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000FF;">#employee.getUserId<span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span>#</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfquery</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfcatch</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> returnVar <span style="color: #0000FF;">=</span> false<span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfcatch</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cftry</span><span style="color: #0000FF;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> returnVar<span style="color: #0000FF;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span><br />
<br />
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfcomponent</span><span style="color: #0000FF;">&gt;</span></span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago</title>
		<link>http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/comment-page-1/#comment-357</link>
		<dc:creator>Tiago</dc:creator>
		<pubDate>Tue, 16 Oct 2007 10:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/#comment-357</guid>
		<description>Hi Rich, how are you synchronizing the data between the local and the remote DB?
Do you have any down loadable example?
Thanks, Tiago</description>
		<content:encoded><![CDATA[<p>Hi Rich, how are you synchronizing the data between the local and the remote DB?<br />
Do you have any down loadable example?<br />
Thanks, Tiago</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Super-simple SQLite example for Adobe AIR 1 Beta &#171; Flash Enabled - Get Ready With Flash&#8230;</title>
		<link>http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/comment-page-1/#comment-356</link>
		<dc:creator>Super-simple SQLite example for Adobe AIR 1 Beta &#171; Flash Enabled - Get Ready With Flash&#8230;</dc:creator>
		<pubDate>Fri, 15 Jun 2007 08:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/#comment-356</guid>
		<description>[...] but this code can probably be reused by anyone wanting to get started with AIR+SQLite. There are a couple of other AIR+SQLite examples out there to check out and don&#8217;t forget the documentation on the [...]</description>
		<content:encoded><![CDATA[<p>[...] but this code can probably be reused by anyone wanting to get started with AIR+SQLite. There are a couple of other AIR+SQLite examples out there to check out and don&#8217;t forget the documentation on the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EverythingFlex &#187; Blog Archive &#187; AIR Embedded Database Code Exerpts 1</title>
		<link>http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/comment-page-1/#comment-355</link>
		<dc:creator>EverythingFlex &#187; Blog Archive &#187; AIR Embedded Database Code Exerpts 1</dc:creator>
		<pubDate>Tue, 12 Jun 2007 15:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/06/11/air-embedded-database-sample-application/#comment-355</guid>
		<description>[...] are some excerpts for the AIR Embedded Database [...]</description>
		<content:encoded><![CDATA[<p>[...] are some excerpts for the AIR Embedded Database [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

