<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Christophe Coenraets</title>
	<atom:link href="http://coenraets.org/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://coenraets.org/blog</link>
	<description></description>
	<pubDate>Thu, 11 Dec 2008 21:31:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Sneak Peek of the New Flex/Spring Integration at FlexCamp Boston Tomorrow</title>
		<link>http://coenraets.org/blog/2008/12/sneak-peek-of-the-new-spring-integration-at-flexcamp-boston-tomorrow/</link>
		<comments>http://coenraets.org/blog/2008/12/sneak-peek-of-the-new-spring-integration-at-flexcamp-boston-tomorrow/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 21:25:57 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=96</guid>
		<description><![CDATA[FlexCamp Boston is tomorrow at the Bentley College. You can still register online, and you will also be able to register on site.
In addition to demonstrating Model Driven Development in Flex using Flex Builder 4 and LCDS &#8220;Next&#8221;, I will also &#8220;sneak peek&#8221; the new Spring integration announced earlier this week in collaboration with SpringSource. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flexcampboston.com/">FlexCamp Boston</a> is tomorrow at the Bentley College. You can still <a href="http://www.flexcampboston.com/page.cfm/register">register online</a>, and you will also be able to register on site.</p>
<p>In addition to demonstrating Model Driven Development in Flex using Flex Builder 4 and LCDS &#8220;Next&#8221;, I will also &#8220;sneak peek&#8221; the new Spring integration <a href="http://coenraets.org/blog/2008/12/adobe-collaborates-with-springsource-for-enhanced-flex-spring-integration/">announced earlier this week</a> in collaboration with <a href="http://www.springsource.com/">SpringSource</a>. </p>
<p>Hope to see you there.<br />
Christophe</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/12/sneak-peek-of-the-new-spring-integration-at-flexcamp-boston-tomorrow/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adobe Collaborates with SpringSource for Enhanced Flex / Spring Integration</title>
		<link>http://coenraets.org/blog/2008/12/adobe-collaborates-with-springsource-for-enhanced-flex-spring-integration/</link>
		<comments>http://coenraets.org/blog/2008/12/adobe-collaborates-with-springsource-for-enhanced-flex-spring-integration/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 17:52:21 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Collaboration]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=95</guid>
		<description><![CDATA[I have written several times about the Flex / Spring integration on this blog. Now things are about to get even simpler and more integrated. This is very exciting news!
From the press release:
Adobe Systems Incorporated today announced that it is working with SpringSource to simplify the development and deployment of rich enterprise Java(TM) applications through [...]]]></description>
			<content:encoded><![CDATA[<p>I have written several times about the Flex / Spring integration on this blog. Now things are about to get even simpler and more integrated. This is very exciting news!</p>
<p>From the press release:</p>
<p>Adobe Systems Incorporated today announced that it is working with SpringSource to simplify the development and deployment of rich enterprise Java(TM) applications through a collaboration that will provide integration between the Adobe(R) Flash(R) and SpringSource platforms. This collaboration will make it easy for Java developers to create enterprise-class rich Internet applications (RIAs) using Adobe Flex(R) software, a cornerstone of the Adobe Flash Platform, and Spring, the de facto standard for enterprise Java.</p>
<p>With support from Adobe, SpringSource is introducing Spring BlazeDS Integration, a new open source project to provide tight integration between Spring and BlazeDS, Adobe&#8217;s open source server-based Java remoting and Web messaging technology. A beta version of the Spring BlazeDS Integration will be available from SpringSource in mid-December.<br />
Also in development for early next year is the SpringSource Adapter for Adobe(R) LiveCycle(R) Data Services ES(TM) which will provide integration with Adobe LiveCycle Data Services ES, enabling the creation of server push-based applications based on Adobe Flex for real-time and near real-time solutions.</p>
<p>Read the press release <a href="http://eon.businesswire.com/portal/site/eon/permalink/?ndmViewId=news_view&#038;newsId=20081207005032&#038;newsLang=en">here</a> or <a href="http://www.marketwatch.com/news/story/Adobe-Collaborates-SpringSource-Enhanced-Integration/story.aspx?guid={E06D4525-831D-4718-AA6F-39FD519C28F3}">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/12/adobe-collaborates-with-springsource-for-enhanced-flex-spring-integration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;Model Driven Development using Flex and LCDS Next&#8221; at FlexCamp Boston on Dec 12th</title>
		<link>http://coenraets.org/blog/2008/12/model-driven-development-using-flex-and-lcds-next-at-flexcamp-boston-on-dec-12th/</link>
		<comments>http://coenraets.org/blog/2008/12/model-driven-development-using-flex-and-lcds-next-at-flexcamp-boston-on-dec-12th/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 17:08:55 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=94</guid>
		<description><![CDATA[If you are not attending MAX Europe in Milan this week, I will present my &#8220;Model Driven Development using Flex Builder 4 and LCDS Next&#8221; session at FlexCamp Boston on December 12th as well. Hope to see you there!
]]></description>
			<content:encoded><![CDATA[<p>If you are not attending MAX Europe in Milan this week, I will present my &#8220;<a href="http://max.adobe.com/eu/sessions/browser/#10058">Model Driven Development using Flex Builder 4 and LCDS Next</a>&#8221; session at <a href="http://www.flexcampboston.com/">FlexCamp Boston</a> on December 12th as well. Hope to see you there!</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/12/model-driven-development-using-flex-and-lcds-next-at-flexcamp-boston-on-dec-12th/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MAX Europe New Session: Model Driven Development using Flex Builder 4 and LCDS Next</title>
		<link>http://coenraets.org/blog/2008/12/max-europe-new-session-model-driven-development-using-flex-builder-4-and-lcds-next/</link>
		<comments>http://coenraets.org/blog/2008/12/max-europe-new-session-model-driven-development-using-flex-builder-4-and-lcds-next/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 16:33:10 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=93</guid>
		<description><![CDATA[We just added a new session (not in the printed agenda) to talk about a brand new feature the LCDS and Flex Builder teams are working on&#8230; 
Session details:
&#8220;Model Driven Development using Flex Builder 4 and LCDS Next&#8221;.
Wednesday, December 3, 1:30 pm - 2:30 pm, Yellow 2
In this session we take a Sneak Peek at [...]]]></description>
			<content:encoded><![CDATA[<p>We just added a new session (not in the printed agenda) to talk about a brand new feature the LCDS and Flex Builder teams are working on&#8230; </p>
<p>Session details:<br />
&#8220;Model Driven Development using Flex Builder 4 and LCDS Next&#8221;.<br />
Wednesday, December 3, 1:30 pm - 2:30 pm, Yellow 2</p>
<p>In this session we take a Sneak Peek at a new and exciting feature in Flex Builder 4 and LiveCycle Data Services &#8220;Next&#8221;. Using the combination of these two products, you will be able to build data-driven applications using a Model-Driven Development approach. In other words, you don&#8217;t have to write any server-side code: the data access logic is derived from a simple data model that is easily created and updated using new tooling in Flex Builder 4. This solution is designed to work for simple and very complex applications.</p>
<p>I hope to see you there!<br />
Christophe</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/12/max-europe-new-session-model-driven-development-using-flex-builder-4-and-lcds-next/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using the SQLite Database Access API in AIR… Part 3: Annotation-Based ORM Framework</title>
		<link>http://coenraets.org/blog/2008/12/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-3-annotation-based-orm-framework/</link>
		<comments>http://coenraets.org/blog/2008/12/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-3-annotation-based-orm-framework/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 16:01:12 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[BlazeDS]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=92</guid>
		<description><![CDATA[In the second version of our contact management application, we encapsulated the data access logic for the Contact entity in a Data Access Object (ContactDAO). This separation of concerns represented a major improvement compared to our first approach. The remaining limitation we identified was the amount of SQL we had to write &#8220;manually&#8221;.
In this third [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%E2%80%A6-part-2-using-the-dao-pattern/">second version of our contact management application</a>, we encapsulated the data access logic for the Contact entity in a Data Access Object (ContactDAO). This separation of concerns represented a major improvement compared to our <a href="http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%E2%80%A6-part-1/">first approach</a>. The remaining limitation we identified was the amount of SQL we had to write &#8220;manually&#8221;.</p>
<p>In this third version, we use a mini Object Relational Mapping (ORM) framework that leverages the Flex support for class annotations to entirely eliminate manually-written SQL statements.<br />
<span id="more-92"></span><br />
This is an approach I first explored at MAX 2007 (see original blog post <a href="http://coenraets.org/blog/2007/10/annotating-actionscript-classes-with-custom-metadata-simple-orm-framework-for-air/">here</a>). </p>
<p>The idea is that we need to add a few hints to a model class definition for an automated system to be able to generate all the SQL statements required to persist instances of that class. For example, we need to specify which field is the entity identifier (primary key), as well as any discrepancy between a class field name and the corresponding table column name (firstName and lastName in this example), etc.</p>
<p>The annotated Contact class used in this example looks like this:</p>
<pre><code>package
{
	import flash.utils.ByteArray;

	[Bindable]
	[Table(name="contact")]
	public class Contact
	{
		[Id]
		[Column(name="contact_id")]
		public var contactId:int;

		[Column(name="first_name")]
		public var firstName:String;

		[Column(name="last_name")]
		public var lastName:String;
		public var address:String;
		public var city:String;
		public var state:String;
		public var zip:String;
		public var phone:String;
		public var email:String;
		public var pic:ByteArray;
	}
}</code></pre>
<p>[Bindable] is the standard Flex metadata annotation while Table, Id and Column are custom. Custom annotations are defined in the application config file (inSyncLocalORM-config.xml) as follows:</p>
<pre><code>&lt;flex-config&gt;
   &lt;compiler&gt;
      &lt;keep-as3-metadata&gt;
          &lt;name&gt;Table&lt;/name&gt;
          &lt;name&gt;Column&lt;/name&gt;
          &lt;name&gt;Id&lt;/name&gt;
      &lt;/keep-as3-metadata&gt;
   &lt;/compiler&gt;
&lt;/flex-config&gt;</code></pre>
<p>This instructs the compiler to keep your metadata in the generated SWF so that you can get to this information at runtime using the reflection API (describeType). Click the Describe button (Debug icon) in this version of inSync to see the describeType result that includes the metadata information.</p>
<p>That’s all you have to do to provide your AIR applications with automatic persistence to the embedded SQLite database. No SQL to write! The framework will even generate the table if it doesn’t already exists.</p>
<p>For example to add a new contact to your database, you’d simply do something like this:</p>
<pre>
<code>var contact:Contact = new Contact();
contact.firstName = "Christophe";
contact.lastName = "Coenraets";
contact.email = "ccoenrae@adob.com";
entityManager.save(contact);</code>
</pre>
<p>to modify the contact:</p>
<pre>
<code>contact.firstName = “Chris”;
entityManager.save(contact);</code>
</pre>
<p>to remove the contact:</p>
<pre>
<code>entityManager.remove(contact);</code>
</pre>
<p>You can provide the entityManager with instances of any annotated class and it will figure out how to persist the object (how to generate the appropriate SQL statements) based on your metadata annotations.</p>
<p>Install inSync Local ORM Edition:<br />
<div id="flashcontent9698" style="width:215px; height:180px;"><strong>Please upgrade your Flash Player</strong> This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.</div><script type="text/javascript">
// <![CDATA[
var so = new SWFObject("http://coenraets.org/blog/wp-content/plugins/air-badge/AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");
so.useExpressInstall("http://coenraets.org/blog/wp-content/plugins/air-badge/expressinstall.swf");
so.addVariable("airversion", "1.0");
so.addVariable("appname", "inSyncLocalORM");
so.addVariable("appurl", "http://coenraets.org/apps/insync/inSyncLocalORM.air");
so.addVariable("appid", "inSyncLocalORM");
so.addVariable("pubid", "");
so.addVariable("appversion", "v1");
so.addVariable("imageurl", "http://coenraets.org/apps/insync/insync1.png");
so.addVariable("appinstallarg", "installed from web");
so.addVariable("applauncharg", "launched from web");
so.addVariable("helpurl", "help.html");
so.addVariable("hidehelp", "true");
so.addVariable("skiptransition", "false");
so.addVariable("titlecolor", "#00AAFF");
so.addVariable("buttonlabelcolor", "#00AAFF");
so.addVariable("appnamecolor", "#00AAFF");
so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The AIR proxy swf won't load properly when this demo is run from the local file system.");
so.write("flashcontent9698");
// ]]&gt;
</script>

</p>
<p><br/></p>
<p>Click <a href="http://coenraets.org/apps/insync/insync-local-orm.zip">here</a> to download the source code. You can also right-click the app and select View Source to view the source code and download the application.</p>
<p>Disclaimer: This is still a simplistic <strong>proof of concept</strong> and is by no means a production ready ORM solution. Some basic assumptions are made for simplicity. For example, I assume that all primary key are autoincremented integers.</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/12/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-3-annotation-based-orm-framework/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using the SQLite Database Access API in AIR… Part 2: Using the DAO Pattern</title>
		<link>http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-2-using-the-dao-pattern/</link>
		<comments>http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-2-using-the-dao-pattern/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 21:04:43 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Air]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[MAX]]></category>

		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=91</guid>
		<description><![CDATA[The first version of our contact management application introduced us to the database access API in AIR. However, the lack of &#8220;application partitioning&#8221; or &#8220;separation of concerns&#8221; in that first implementation represented a poor architecture with no potential for reusability.
In this second version, we use the Data Access Object pattern to improve the overall architecture [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%E2%80%A6-part-1/">first version of our contact management application</a> introduced us to the database access API in AIR. However, the lack of &#8220;application partitioning&#8221; or &#8220;separation of concerns&#8221; in that first implementation represented a poor architecture with no potential for reusability.</p>
<p>In this second version, we use the Data Access Object pattern to improve the overall architecture of our application. A Data Access Object typically encapsulates the data access logic for one entity (in this case: Contact). </p>
<p>An interface (named IContactDAO) defines the “contract”:</p>
<pre>
<code>package
{
	import flash.utils.ByteArray;
	import mx.collections.ArrayCollection;

	public interface IContactDAO
	{
		function findAll():ArrayCollection;

		function insert(contact:Object):void;

		function update(contact:Object):void;

		function updatePicture(contactId:int, jpeg:ByteArray):void;

		function deleteItem(contact:Object):void;
	}
}</code>
</pre>
<p>The ContactDAO class implements that interface and provides one specific implementation of the contract (persisting data to the embedded SQLite database).</p>
<h4>Benefits:</h4>
<ul>
<li>The View doesn’t know anything about your data access logic: You can reuse the same view (ContactForm) with a different way to access your data. You would just create another class implementing IContactDAO and pass an instance of that class to ContactForm. Notice that the dao property of ContactForm is of the IContactDAO data type (the interface). This allows us to pass an instance of any class implementing the IContactDAO interface to ContactForm.</li>
<li>The DAO doesn’t know anything about the view: You can reuse the same data access logic from within different views.</li>
</ul>
<p>Install inSync Local DAO Edition:<br />
<div id="flashcontent8858" style="width:215px; height:180px;"><strong>Please upgrade your Flash Player</strong> This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.</div><script type="text/javascript">
// <![CDATA[
var so = new SWFObject("http://coenraets.org/blog/wp-content/plugins/air-badge/AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");
so.useExpressInstall("http://coenraets.org/blog/wp-content/plugins/air-badge/expressinstall.swf");
so.addVariable("airversion", "1.0");
so.addVariable("appname", "inSyncLocalDAO");
so.addVariable("appurl", "http://coenraets.org/apps/insync/inSyncLocalDAO.air");
so.addVariable("appid", "inSyncLocalDAO");
so.addVariable("pubid", "");
so.addVariable("appversion", "v1");
so.addVariable("imageurl", "http://coenraets.org/apps/insync/insync1.png");
so.addVariable("appinstallarg", "installed from web");
so.addVariable("applauncharg", "launched from web");
so.addVariable("helpurl", "help.html");
so.addVariable("hidehelp", "true");
so.addVariable("skiptransition", "false");
so.addVariable("titlecolor", "#00AAFF");
so.addVariable("buttonlabelcolor", "#00AAFF");
so.addVariable("appnamecolor", "#00AAFF");
so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The AIR proxy swf won't load properly when this demo is run from the local file system.");
so.write("flashcontent8858");
// ]]&gt;
</script>

</p>
<p><br/></p>
<p>Click <a href="http://coenraets.org/apps/insync/insync-local-dao.zip">here</a> to download the source code. You can also right-click the app and select View Source to view the source code and download the application.</p>
<h4>Limitation:</h4>
<p>There is still a lot of SQL code to write. There are a few options to overcome that limitation:</p>
<ul>
<li>You could create a mini DAO framework where a base DAO class would take care of all the boilerplate code to set up and execute SQL statements.  (See the BaseDAO class in <a href="http://coenraets.org/blog/2008/11/salesbuilder-15-with-new-air-15-database-encryption/">Salesbuilder</a> for an example).</li>
<li>You could use an ORM framework where SQL statements are automatically generated.</li>
</ul>
<p>In part 3, we’ll look at a version of inSync built with an annotation-based ORM framework.</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-2-using-the-dao-pattern/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using the SQLite Database Access API in AIR… Part 1</title>
		<link>http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-1/</link>
		<comments>http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-1/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 17:02:24 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Air]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[MAX]]></category>

		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=90</guid>
		<description><![CDATA[In my MAX session called &#8220;Liberate your Data with AIR&#8221;, I presented different approaches to access local data using the SQLite database access API in AIR.
The list of approaches included:

&#8220;SQL in View&#8221;
Data Access Object (DAO) pattern
Using an Object Relational Mapping (ORM) framework

I demonstrated a version of inSync (a simple contact management application) built with each [...]]]></description>
			<content:encoded><![CDATA[<p>In my MAX session called &#8220;Liberate your Data with AIR&#8221;, I presented different approaches to access local data using the SQLite database access API in AIR.</p>
<p>The list of approaches included:</p>
<ol>
<li>&#8220;SQL in View&#8221;</li>
<li>Data Access Object (DAO) pattern</li>
<li>Using an Object Relational Mapping (ORM) framework</li>
</ol>
<p>I demonstrated a version of inSync (a simple contact management application) built with each of these approaches. I’m dedicating one blog post to each approach. This first post is focused on the &#8220;SQL in View&#8221; approach. To spice things up just a little bit, inSync also demosntrates how to take a picture of a contact using your webcam and store it in the SQLite database as a blob.</p>
<p><img src="http://coenraets.org/apps/insync/insyncwebcam.png"/></p>
<p>Install inSync Local SQL Edition:<br />
<div id="flashcontent1331" style="width:215px; height:180px;"><strong>Please upgrade your Flash Player</strong> This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.</div><script type="text/javascript">
// <![CDATA[
var so = new SWFObject("http://coenraets.org/blog/wp-content/plugins/air-badge/AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");
so.useExpressInstall("http://coenraets.org/blog/wp-content/plugins/air-badge/expressinstall.swf");
so.addVariable("airversion", "1.0");
so.addVariable("appname", "inSyncLocalSQL");
so.addVariable("appurl", "http://coenraets.org/apps/insync/inSyncLocalSQL.air");
so.addVariable("appid", "inSyncLocalSQL");
so.addVariable("pubid", "");
so.addVariable("appversion", "v1");
so.addVariable("imageurl", "http://coenraets.org/apps/insync/insync1.png");
so.addVariable("appinstallarg", "installed from web");
so.addVariable("applauncharg", "launched from web");
so.addVariable("helpurl", "help.html");
so.addVariable("hidehelp", "true");
so.addVariable("skiptransition", "false");
so.addVariable("titlecolor", "#00AAFF");
so.addVariable("buttonlabelcolor", "#00AAFF");
so.addVariable("appnamecolor", "#00AAFF");
so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The AIR proxy swf won't load properly when this demo is run from the local file system.");
so.write("flashcontent1331");
// ]]&gt;
</script>

</p>
<p><br/></p>
<p>NOTE: this application uses the same skin and overall context as a sample I posted previously to illustrate offline data synchronization using LCDS, but the implementation is entirely different: No LCDS here&#8230; just local data access.</p>
<p>Click <a href="http://coenraets.org/apps/insync/insync-local-sql.zip">here</a> to download the source code. You can also right-click the app and select View Source to view the source code and download the application.</p>
<p>Using the &#8220;SQL in View&#8221; approach, you embed SQL statements as needed in View components. In this example the ContactForm component has create, update, and delete methods with the appropriate embedded SQL statements to insert, update, and delete a contact in the database.  This approach works for quick prototyping, but is generally a bad practice. When you mix view logic and data access logic in the same component, neither the view logic, nor the data access logic is reusable: you can’t reuse the view with a different way to access your data, and you can’t reuse your data access logic with a different view.</p>
<p>I provide this approach here as a quick way to get acquainted with the database access API in AIR. For real life implementations, a more partitioned approach such as the DAO pattern or an ORM framework is of course highly recommended. Stay tuned for an example of approaches 2 and 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air%e2%80%a6-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My MAX LCDS/BlazeDS Sessions Materials Available</title>
		<link>http://coenraets.org/blog/2008/11/my-max-lcdsblazeds-sessions-materials-available/</link>
		<comments>http://coenraets.org/blog/2008/11/my-max-lcdsblazeds-sessions-materials-available/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 20:28:11 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Air]]></category>

		<category><![CDATA[BlazeDS]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[LCDS]]></category>

		<category><![CDATA[MAX]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=89</guid>
		<description><![CDATA[Many of you have asked me for the materials I used in my LCDS/BlazeDS  hands-on sessions at MAX. 
Here are the links:

Lab instructions PDF (Powering Flex Applications with BlazeDS and Data Services)
Lab files (including final solutions)

If you didn&#8217;t have a chance to attend, you should be able to use this as a BlazeDS/LCDS tutorial [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you have asked me for the materials I used in my LCDS/BlazeDS  hands-on sessions at MAX. </p>
<p>Here are the links:</p>
<ul>
<li><a href="http://coenraets.org/downloads/max2008/flex-dataservices-tutorial.pdf">Lab instructions PDF</a> (Powering Flex Applications with BlazeDS and Data Services)</li>
<li><a href="http://coenraets.org/downloads/max2008/flex-dataservices-tutorial.zip">Lab files (including final solutions)</a></li>
</ul>
<p>If you didn&#8217;t have a chance to attend, you should be able to use this as a BlazeDS/LCDS tutorial as well.</p>
<p>It was great to see all of you at MAX. I hope to see you next year in Los Angeles.</p>
<p>Christophe</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/11/my-max-lcdsblazeds-sessions-materials-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Salesbuilder 1.5 with new AIR 1.5 Database Encryption</title>
		<link>http://coenraets.org/blog/2008/11/salesbuilder-15-with-new-air-15-database-encryption/</link>
		<comments>http://coenraets.org/blog/2008/11/salesbuilder-15-with-new-air-15-database-encryption/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 14:22:25 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[Air]]></category>

		<category><![CDATA[Collaboration]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[LiveCycle Data Services]]></category>

		<category><![CDATA[MAX]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=88</guid>
		<description><![CDATA[As you probably already know, AIR 1.5 is now available. New features include database encryption, Flash Player 10 support, and an updated version of WebKit.

I updated my Salesbuilder sample application to leverage the AIR 1.5 capabilities. Salesbuilder 1.5 leverages the new database encryption feature to allow you to secure your local database.
The first time you [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably already know, <a href="http://www.adobe.com/devnet/logged_in/rchristensen_lpolanco_air_1.5.html">AIR 1.5</a> is now available. New features include database encryption, Flash Player 10 support, and an updated version of WebKit.</p>
<p><img src='http://coenraets.org/salesbuilder/salesbuilder15.jpg' alt='' class='alignnone' /></p>
<p>I updated my Salesbuilder sample application to leverage the AIR 1.5 capabilities. Salesbuilder 1.5 leverages the new database encryption feature to allow you to secure your local database.</p>
<p>The first time you start Salesbuilder, the application will generate the encrypted database on your local file system. Salesbuilder implements the key generation approach described in the section <a href="http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS8AFC5E35-DC79-4082-9AD4-DE1A2B41DAAF.html">Using encryption with SQL databases in the manual Developing Adobe AIR Applications</a>. The encryption key is based on a password provided by you and a SALT generated by the system. </p>
<p>You can install the new version and download the source code <a href="http://www.adobe.com/devnet/air/flex/samples.html#salesbuilder">here</a>.</p>
<p>A basic script explaining how to use the application is available <a href="http://www.adobe.com/devnet/air/flex/articles/salesbuilder_demo.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/11/salesbuilder-15-with-new-air-15-database-encryption/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sneak Peek of LiveCycle Data Services &#8220;Next&#8221; Tomorrow at MAX</title>
		<link>http://coenraets.org/blog/2008/11/sneak-peak-of-livecycle-data-services-next-tomorrow-at-max/</link>
		<comments>http://coenraets.org/blog/2008/11/sneak-peak-of-livecycle-data-services-next-tomorrow-at-max/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 07:24:41 +0000</pubDate>
		<dc:creator>christophe</dc:creator>
		
		<category><![CDATA[BlazeDS]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[LCDS]]></category>

		<category><![CDATA[LiveCycle Data Services]]></category>

		<category><![CDATA[MAX]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/?p=87</guid>
		<description><![CDATA[I will demonstrate some new and really exciting features of LiveCycle Data Services &#8220;Next&#8221; tomorrow (Monday), as part of my session called &#8220;Introduction to BlazeDS and LiveCycle Data Services ES&#8221;. I hope to see you there if you are interested in Data Services for Flex.
Introduction to BlazeDS and LiveCycle Data Services ES
Moscone West 2007
5:00pm to [...]]]></description>
			<content:encoded><![CDATA[<p>I will demonstrate some new and really exciting features of LiveCycle Data Services &#8220;Next&#8221; tomorrow (Monday), as part of my session called &#8220;Introduction to BlazeDS and LiveCycle Data Services ES&#8221;. I hope to see you there if you are interested in Data Services for Flex.</p>
<p>Introduction to BlazeDS and LiveCycle Data Services ES<br />
Moscone West 2007<br />
5:00pm to 6:00pm</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2008/11/sneak-peak-of-livecycle-data-services-next-tomorrow-at-max/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
