<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
	<channel>
<title>My RSS Feed</title><link>http://web.me.com/bruce.deen/index.html</link><description>Hot News&#x21;</description><dc:language>en</dc:language><dc:creator>bruce.deen@me.com</dc:creator><dc:rights>Copyright 2008 Bruce Deen</dc:rights><dc:date>2008-10-06T01:09:25-06:00</dc:date><admin:generatorAgent rdf:resource="http://www.realmacsoftware.com/" />
<admin:errorReportsTo rdf:resource="mailto:bruce.deen@me.com" /><sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<lastBuildDate>Fri, 10 Jul 2009 03:14:17 -0600</lastBuildDate><item><title>Clone Wars&#x21; &#x3c;smaller&#x3e;Which side are you on?&#x3c;/smaller&#x3e;</title><dc:creator>bruce.deen@me.com</dc:creator><category>Adobe flex</category><dc:date>2008-10-06T01:09:25-06:00</dc:date><link>http://web.me.com/bruce.deen/files/cd31934c1a02cdc0a687794dde22ee4a-2.html#unique-entry-id-2</link><guid isPermaLink="true">http://web.me.com/bruce.deen/files/cd31934c1a02cdc0a687794dde22ee4a-2.html#unique-entry-id-2</guid><content:encoded><![CDATA[However (and here&rsquo;s the bullet to byte) you have to use either RemoteObject metadata or registerClass actionscript.  ...  So if you&rsquo;re using a RemoteObject metadata or registerClass then this solution is for you! 

...Option 2a: Create/Implement a clone methodSo for this one you would first create an interface and then implement it.


...So for this one you might think that it&rsquo;s not too bad or overly complicated.  ...  However (and here&rsquo;s the bullet to byte) this can get unwieldy with large property sets or a large Class collection, you have to implement the interface/method and then provide the needed assistance to pull this out.  

...                // Do not user the property if it can't be read or written


...It requires you to create the new instance and pass it in or you can let the function try to create the new object but the class will require a constructor that doesn&rsquo;t need any parameters passed in.    So this function uses describeType to get an understanding of the class information of the passed in object and to map it&rsquo;s variables and accessors.    Notice that the accessors require a &lsquo;readwrite&rsquo; access, since we need to read the value from the old object and assign the value to the clone object.


Option 2c: Create a clone method that&rsquo;s a little from column A and a little from column Bpublic class ValueObject {


...                // Do not user the property if it can't be read or written


...Also if you notice this function takes into consideration a need for a deep copy of only other ValueObjects and Array/ArrayCollection.    Now  if you do a deep copy all constructors will need to allow for no parameter pass in.    I like this one the most, as it takes from option A and option B and makes it easy but extending the ValueObject, although there is the issue of basic Collection, such as if you wanted to clone an XMLList or clone a dynamic hash array, you would have to build that functionality and testing in.    This one trades off not having to write a specific clone implementation for each method with having to design to get to underlying object that might be contained inside a property.
]]></content:encoded></item><item><title>Pageable Row Set???</title><dc:creator>bruce.deen@me.com</dc:creator><category>Adobe flex</category><dc:date>2008-09-18T04:14:25-06:00</dc:date><link>http://web.me.com/bruce.deen/files/6c630e9aa98ade14e3946a946e8a1b65-0.html#unique-entry-id-0</link><guid isPermaLink="true">http://web.me.com/bruce.deen/files/6c630e9aa98ade14e3946a946e8a1b65-0.html#unique-entry-id-0</guid><content:encoded><![CDATA[So my coworker Justin has been telling me that I should be writing a blog about some of the stuff I&rsquo;ve been working on with Flex and Java.  

...I&rsquo;ve been working with decently large datasets, about 10k to 20k rows of data.    The data has many attributes, so the size of it is quite large, 10M or so.  


Of course I started with a nice gzip on the server, so that compressed the data down which increases the download of the dataset, but of course this is a stop gap measure because as the size of the data grows the difficulty of dealing with it grows. 


I&rsquo;ve looked at java side RowSet and using BlazeDS PageableRowSetCache, with a homegrown actionscript paged array collection.


I didn&rsquo;t find much information to do this, so I thought I would write up what I did.


...With this row set we can now call the PageableRowSetCache.cacheRowSet.  


...The initialData holds the first page of data and you should use the  length to identify the pageSize to fetch.  


...It has a default value of PageableRowSetCache, you have to setup the JavaAdapter in the remoting-config.xml file i.e.


...PageableRowSetCache has a method called getRecords(id:String, start:int, numOfRecords:int)   which is used to retrieve other data from the Row Set.  

...So at this point we&rsquo;ve set up everything without writing much Flex code.  

...    override public function getItemAt(index:int, prefetch:int = 0):Object {


...        var token:Object = pageService.getRecords(pagedObject.id, page * pageSize, pageSize);


...	▪	Sorting and filtering can be problematic, (I&rsquo;m hoping to have a post to address this issue)


...The one thing I really like about this implementation is how it allows the ArrayCollection to deal with keeping the data and this class to deal with acquiring the pending data, as well as being able to replace an ArrayCollection with a PageableCollection.  
]]></content:encoded></item></channel>
</rss>