<?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"
	>
<channel>
	<title>Comments on: Dynamic SQL querys in ActionScript</title>
	<atom:link href="http://www.angrysprite.com/2008/04/04/6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.angrysprite.com/2008/04/04/6/</link>
	<description>trace(actionscriptRants[Math.round(Math.random() * (actionscriptRants.length - 1))]);</description>
	<pubDate>Tue, 06 Jan 2009 00:20:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Matthew</title>
		<link>http://www.angrysprite.com/2008/04/04/6/#comment-3</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Tue, 22 Apr 2008 21:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.angrysprite.com/?p=6#comment-3</guid>
		<description>Thank you for the feedback.
I agree that passing the objects/arrays in is not very elegant. I went with that for the now because this allow for me to move forward with my testing and get the big picture working.

This is very much a work in progress.</description>
		<content:encoded><![CDATA[<p>Thank you for the feedback.<br />
I agree that passing the objects/arrays in is not very elegant. I went with that for the now because this allow for me to move forward with my testing and get the big picture working.</p>
<p>This is very much a work in progress.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://www.angrysprite.com/2008/04/04/6/#comment-2</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Fri, 18 Apr 2008 16:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.angrysprite.com/?p=6#comment-2</guid>
		<description>I really like what you've done so far.  It would certainly make the SQL creation much easier.  The Adobe application, Employee Directory, (I think) uses the Cairngorm model and moves all of the SQL calls into separate AS classes.  These are then passed to a SQLmanager which invokes the necessary SQL call, and passes the results back to the calling page.  This somewhat separates the SQL code from the AS code, but requires one page for each SQL statement, which can get a little overwhelming if you have many calls to the SQLite dB.

The only thing that I did not like *too* much is passing in the objects into the filter array.  It's all a little mysterious as to what to pass in to the array.  A new user would not know exactly what to pass in without either the code or an API.

Here's something that I'm not sure would work completely, but might or might be a step in the right direction :)

How about creating a FilterableObject?  This object would have public methods for each of the properties within your case statements in your parseTerms method.  Each of the methods would return "this" (the FilterableObject), so you could do
new FilterableObject().isNotNull( 'insider_id' ).iExact( 'name', 'adsf' ) etc., and chain everything together.  Eclipse would then be able to generate the "hints" as you're typing and the array that is passed in wouldn't be as mysterious to a new user.

Anyway, this will be a really useful piece of code once it's finished, and I look forward to seeing it completed.</description>
		<content:encoded><![CDATA[<p>I really like what you&#8217;ve done so far.  It would certainly make the SQL creation much easier.  The Adobe application, Employee Directory, (I think) uses the Cairngorm model and moves all of the SQL calls into separate AS classes.  These are then passed to a SQLmanager which invokes the necessary SQL call, and passes the results back to the calling page.  This somewhat separates the SQL code from the AS code, but requires one page for each SQL statement, which can get a little overwhelming if you have many calls to the SQLite dB.</p>
<p>The only thing that I did not like *too* much is passing in the objects into the filter array.  It&#8217;s all a little mysterious as to what to pass in to the array.  A new user would not know exactly what to pass in without either the code or an API.</p>
<p>Here&#8217;s something that I&#8217;m not sure would work completely, but might or might be a step in the right direction <img src='http://www.angrysprite.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>How about creating a FilterableObject?  This object would have public methods for each of the properties within your case statements in your parseTerms method.  Each of the methods would return &#8220;this&#8221; (the FilterableObject), so you could do<br />
new FilterableObject().isNotNull( &#8216;insider_id&#8217; ).iExact( &#8216;name&#8217;, &#8216;adsf&#8217; ) etc., and chain everything together.  Eclipse would then be able to generate the &#8220;hints&#8221; as you&#8217;re typing and the array that is passed in wouldn&#8217;t be as mysterious to a new user.</p>
<p>Anyway, this will be a really useful piece of code once it&#8217;s finished, and I look forward to seeing it completed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
