|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.koala.koalautil.RowCollection
Allows the storing in memory of the result of a query on a data repository. It is structured like java.sql.ResultSet, provides a similar interface, but does not depend on the DBMS conection to provide information
Constructor Summary | |
RowCollection()
Creates an empty RowCollection |
|
RowCollection(java.sql.ResultSet rs)
Creates a new RowCollection obtaining data from a ResultSet |
Method Summary | |
void |
addRow()
|
void |
firstRow()
Positions the cursor on the first record |
java.math.BigInteger |
getBigInteger(java.lang.String fieldName)
|
double |
getDouble(java.lang.String fieldName)
|
java.util.GregorianCalendar |
getGregorianCalendar(java.lang.String fieldName)
|
int |
getInt(java.lang.String fieldName)
|
java.lang.Object |
getObject(java.lang.String fieldName)
Given a fields name, it returns it's value in the current record. |
java.lang.String |
getString(java.lang.String fieldName)
|
void |
insert(java.lang.String fieldName,
java.lang.Object object)
|
boolean |
next()
If there is a next element, we move one position |
int |
position()
returns the current record's index |
void |
removeRow()
|
int |
rowCount()
Returns the ammount of rows in the object |
boolean |
search(java.lang.String fieldName,
java.lang.String keyValue)
|
java.lang.String |
toCSV()
converts the RowCollection into a csv String |
org.koala.koalaxml.XML |
toXML()
Converts data to XML, generating a |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RowCollection() throws ChainedException
ChainedException
public RowCollection(java.sql.ResultSet rs) throws ChainedException
rs
- ResultSet from which we obtain data
ChainedException
Method Detail |
public java.lang.String toCSV() throws ChainedException
ChainedException
public org.koala.koalaxml.XML toXML() throws ChainedException
ChainedException
public boolean next() throws ChainedException
ChainedException
public int rowCount() throws ChainedException
ChainedException
public java.lang.Object getObject(java.lang.String fieldName) throws ChainedException
fieldName
- Nombre del fieldName.
ChainedException
public int getInt(java.lang.String fieldName) throws ChainedException
fieldName
- Nombre del fieldName.
ChainedException
public java.util.GregorianCalendar getGregorianCalendar(java.lang.String fieldName) throws ChainedException
fieldName
-
ChainedException
public double getDouble(java.lang.String fieldName) throws ChainedException
fieldName
-
ChainedException
public java.lang.String getString(java.lang.String fieldName) throws ChainedException
fieldName
- Nombre del fieldName.
ChainedException
public java.math.BigInteger getBigInteger(java.lang.String fieldName) throws ChainedException
fieldName
- Nombre del fieldName.
ChainedException
public void addRow() throws ChainedException
ChainedException
public void insert(java.lang.String fieldName, java.lang.Object object) throws ChainedException
object
- fieldName
- Nombre del fieldName.
ChainedException
public boolean search(java.lang.String fieldName, java.lang.String keyValue) throws ChainedException
keyValue
- fieldName
-
ChainedException
public void removeRow() throws ChainedException
ChainedException
public void firstRow()
public int position()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |