<?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: Adobe Air- Using SQLite</title>
	<atom:link href="http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/</link>
	<description>Programming with Flash, Flex and PHP</description>
	<lastBuildDate>Mon, 12 Jul 2010 02:03:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jonnie</title>
		<link>http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/comment-page-1/#comment-754</link>
		<dc:creator>Jonnie</dc:creator>
		<pubDate>Wed, 05 Aug 2009 08:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/#comment-754</guid>
		<description>The UserVO is a user object that is representing the user as a strong typed object. Here is the UserVO.as


/** *******************************************************************
 * Del.icio.us Air Demo 
 * Copyright (c) 2008 Jonnie Spratley. All Rights Reserved.
 * @author  Jonnie Spratley
 * @contact jonniespratley@gmail.com
 * @internal
 ******************************************************************* */
package com.jonniespratley.itsdeliciousair.vo
{	

	/**
	 * VOs are used to create a layer of business objects that can be 
	 * transferred between tiers, instead of using records, results sets, and datasets.
	 */
	[Bindable]
	public class UserVO
	{
		public var username:String;
		public var password:String;
		public var inboxcount:Number;
		public var lastupdated:Date;
		public var feedurl:String;
		
		public function  UserVO( username:String,
								password:String, 
								lastupdated:Date = null,
								inboxcount:Number = 0 )
		{			
			this.username = username;
			this.password = password;
			this.lastupdated = lastupdated;
			this.feedurl = &quot;http://del.icio.us/rss/&quot; + username;
			this.inboxcount = inboxcount;
		}
	}
}
</description>
		<content:encoded><![CDATA[<p>The UserVO is a user object that is representing the user as a strong typed object. Here is the UserVO.as</p>
<p>/** *******************************************************************<br />
 * Del.icio.us Air Demo<br />
 * Copyright (c) 2008 Jonnie Spratley. All Rights Reserved.<br />
 * @author  Jonnie Spratley<br />
 * @contact <a href="mailto:jonniespratley@gmail.com">jonniespratley@gmail.com</a><br />
 * @internal<br />
 ******************************************************************* */<br />
package com.jonniespratley.itsdeliciousair.vo<br />
{	</p>
<p>	/**<br />
	 * VOs are used to create a layer of business objects that can be<br />
	 * transferred between tiers, instead of using records, results sets, and datasets.<br />
	 */<br />
	[Bindable]<br />
	public class UserVO<br />
	{<br />
		public var username:String;<br />
		public var password:String;<br />
		public var inboxcount:Number;<br />
		public var lastupdated:Date;<br />
		public var feedurl:String;</p>
<p>		public function  UserVO( username:String,<br />
								password:String,<br />
								lastupdated:Date = null,<br />
								inboxcount:Number = 0 )<br />
		{<br />
			this.username = username;<br />
			this.password = password;<br />
			this.lastupdated = lastupdated;<br />
			this.feedurl = &#8220;http://del.icio.us/rss/&#8221; + username;<br />
			this.inboxcount = inboxcount;<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Delaney</title>
		<link>http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/comment-page-1/#comment-721</link>
		<dc:creator>Sean Delaney</dc:creator>
		<pubDate>Wed, 29 Jul 2009 10:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/#comment-721</guid>
		<description>Hi

I am learning Flex and connection to SQLite.

In your reply to Smith, what is UserVO ?

I cannot see it referenced anywhere in your DB management class.

Also how do I reference the .as class file in my .mxml file ?

Sean</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I am learning Flex and connection to SQLite.</p>
<p>In your reply to Smith, what is UserVO ?</p>
<p>I cannot see it referenced anywhere in your DB management class.</p>
<p>Also how do I reference the .as class file in my .mxml file ?</p>
<p>Sean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonnie</title>
		<link>http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/comment-page-1/#comment-88</link>
		<dc:creator>Jonnie</dc:creator>
		<pubDate>Sat, 15 Nov 2008 20:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/#comment-88</guid>
		<description>Ok This is really simple, I will show you.

First you need to open or create the database, check if the database exists, and if it doesn&#039;t create it, once you do that it should be open. Then when you want to insert a query into that database, you need to reference that connection as the connection you inserting to. 
Look at this code:

private var db:DatabaseManager = new DatabaseManager();
private function checkUser():void
{	
  var u:UserVO = new UserVO( &quot;test&quot;, &quot;test&quot;, null, 0 );
  db.checkUser( u );
}

This executes any function that you created inside of the database service, and  as you see before in the DatabaseManager code, you create or open a database inside of the constructor, so you connection is going to be open for any queries.</description>
		<content:encoded><![CDATA[<p>Ok This is really simple, I will show you.</p>
<p>First you need to open or create the database, check if the database exists, and if it doesn&#8217;t create it, once you do that it should be open. Then when you want to insert a query into that database, you need to reference that connection as the connection you inserting to.<br />
Look at this code:</p>
<p>private var db:DatabaseManager = new DatabaseManager();<br />
private function checkUser():void<br />
{<br />
  var u:UserVO = new UserVO( &#8220;test&#8221;, &#8220;test&#8221;, null, 0 );<br />
  db.checkUser( u );<br />
}</p>
<p>This executes any function that you created inside of the database service, and  as you see before in the DatabaseManager code, you create or open a database inside of the constructor, so you connection is going to be open for any queries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smith</title>
		<link>http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/comment-page-1/#comment-87</link>
		<dc:creator>Smith</dc:creator>
		<pubDate>Fri, 14 Nov 2008 14:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://jonniespratley.com/2008/09/19/adobe-air-using-sqlite-extended/#comment-87</guid>
		<description>Hi,
i want to connect SQLite using Flex but i can&#039;t do this. You are giving a DatabaseManagerseManager.as. This file is same as do copy in my project but i am not able to connect with SQLite so please tell me how to connect and what should i do for connecting with SQLite using Flex.
Thanx</description>
		<content:encoded><![CDATA[<p>Hi,<br />
i want to connect SQLite using Flex but i can&#8217;t do this. You are giving a DatabaseManagerseManager.as. This file is same as do copy in my project but i am not able to connect with SQLite so please tell me how to connect and what should i do for connecting with SQLite using Flex.<br />
Thanx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
