org.openamf.recordset
Class ASRecordSet

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byflashgateway.io.ASObject
              extended byorg.openamf.recordset.ASRecordSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ASRecordSet
extends ASObject

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

Field Summary
static java.lang.String SERVICE_NAME
           
 
Constructor Summary
ASRecordSet()
           
 
Method Summary
 java.lang.String[] getColumnNames()
           
 int getCursor()
           
 java.lang.String getId()
           
 java.util.List getInitialData()
           
 java.util.Map getRecords(int from, int count)
           
 java.lang.String getServiceName()
           
 int getTotalCount()
           
 double getVersion()
           
 void populate(java.util.List list, java.lang.String[] ignoreProperties)
           
 void populate(java.sql.ResultSet rs)
           
 void populate(java.lang.String[] columnNames, java.util.List rows)
           
 java.util.List rows()
           
 void setColumnNames(java.lang.String[] columnNames)
           
 void setCursor(int cursor)
           
 void setId(java.lang.String id)
           
 void setInitialData(java.util.List initialData)
           
 void setServiceName(java.lang.String serviceName)
           
 void setTotalCount(int totalCount)
           
 void setVersion(double version)
           
 java.lang.String toString()
           
 
Methods inherited from class flashgateway.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 java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

ASRecordSet

public ASRecordSet()
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getTotalCount

public int getTotalCount()

setTotalCount

public void setTotalCount(int totalCount)

getInitialData

public java.util.List getInitialData()

setInitialData

public void setInitialData(java.util.List initialData)

getRecords

public java.util.Map getRecords(int from,
                                int count)

getCursor

public int getCursor()

setCursor

public void setCursor(int cursor)

getServiceName

public java.lang.String getServiceName()

setServiceName

public void setServiceName(java.lang.String serviceName)

getColumnNames

public java.lang.String[] getColumnNames()

setColumnNames

public void setColumnNames(java.lang.String[] columnNames)

getVersion

public double getVersion()

setVersion

public void setVersion(double version)

rows

public java.util.List rows()

populate

public void populate(java.sql.ResultSet rs)
              throws java.io.IOException
Throws:
java.io.IOException

populate

public void populate(java.lang.String[] columnNames,
                     java.util.List rows)
Parameters:
columnNames -
rows - ArrayList containing a ArrayList for each row

populate

public void populate(java.util.List list,
                     java.lang.String[] ignoreProperties)
              throws java.lang.IllegalArgumentException,
                     java.lang.IllegalAccessException,
                     java.lang.reflect.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:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

toString

public java.lang.String toString()
Overrides:
toString in class ASObject