flex.messaging.io
Class ASRecordSet

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by flex.messaging.io.ASObject
              extended by flex.messaging.io.ASRecordSet
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class ASRecordSet
extends ASObject

Version:
$Revision: 1.29 $, $Date: 2006/03/25 22:17:44 $
Author:
Jason Calabrese
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static String SERVICE_NAME
           
 
Constructor Summary
ASRecordSet()
           
 
Method Summary
 String[] getColumnNames()
           
 int getCursor()
           
 String getId()
           
 List<?> getInitialData()
           
 Map<String,Object> getRecords(int from, int count)
           
 String getServiceName()
           
 int getTotalCount()
           
 double getVersion()
           
 void populate(List<?> list, String[] ignoreProperties)
           
 void populate(ResultSet rs)
           
 void populate(String[] columnNames, List<List<Object>> rows)
           
 List<List<Object>> rows()
           
 void setColumnNames(String[] columnNames)
           
 void setCursor(int cursor)
           
 void setId(String id)
           
 void setInitialData(List<?> initialData)
           
 void setServiceName(String serviceName)
           
 void setTotalCount(int totalCount)
           
 void setVersion(double version)
           
 String toString()
           
 
Methods inherited from class flex.messaging.io.ASObject
containsKey, get, getType, instantiate, put, remove, setType
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

ASRecordSet

public ASRecordSet()
Method Detail

getId

public String getId()

setId

public void setId(String id)

getTotalCount

public int getTotalCount()

setTotalCount

public void setTotalCount(int totalCount)

getInitialData

public List<?> getInitialData()

setInitialData

public void setInitialData(List<?> initialData)

getRecords

public Map<String,Object> getRecords(int from,
                                     int count)

getCursor

public int getCursor()

setCursor

public void setCursor(int cursor)

getServiceName

public String getServiceName()

setServiceName

public void setServiceName(String serviceName)

getColumnNames

public String[] getColumnNames()

setColumnNames

public void setColumnNames(String[] columnNames)

getVersion

public double getVersion()

setVersion

public void setVersion(double version)

rows

public List<List<Object>> rows()

populate

public void populate(ResultSet rs)
              throws IOException
Throws:
IOException

populate

public void populate(String[] columnNames,
                     List<List<Object>> rows)
Parameters:
columnNames -
rows - ArrayList containing a ArrayList for each row

populate

public void populate(List<?> list,
                     String[] ignoreProperties)
              throws IllegalArgumentException,
                     IllegalAccessException,
                     InvocationTargetException
Parameters:
list - List of JavaBeans, all beans should be of the same type
ignoreProperties - properties that should not be added to the RecordSet
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

toString

public String toString()
Overrides:
toString in class ASObject