|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.sqlunit.beans.ResultSetBean
public class ResultSetBean
Models a ResultSet element, wrapping multiple Row objects.
| Constructor Summary | |
|---|---|
ResultSetBean()
Default constructor. |
|
ResultSetBean(java.sql.ResultSet rs,
int id)
Constructs and populates a ResultSetBean object from a ResultSet object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
Returns the Id for this row. |
int |
getRowCount()
Returns the rowCount override (if specified) for the resultset. |
Row[] |
getRows()
Returns the rows in the resultset. |
java.lang.String[] |
getSortBy()
Returns the array of column ids on which the rows of this ResultSetBean was sorted. |
boolean |
isPartial()
Return true if the resultset specifies rows partially, else false. |
boolean |
isRowCountOverriden()
Returns true if rowcount has been overriden by the caller. |
void |
setId(java.lang.String id)
Set the id for this row. |
void |
setPartial(java.lang.String partial)
Sets the partial row specification attribute for the resultset. |
void |
setRowCount(int rowCount)
Sets the rowCount override for the resultset. |
void |
setRows(Row[] rows)
Sets the rows in the resultset. |
void |
setSortBy(java.lang.String colIdList)
Sets the colIds from the colIdList. |
void |
sort()
Allows sorting of rows in a resultset by the columns specified in the sortColIds array. |
org.jdom.Element |
toElement()
Returns a JDOM Element representing this ResultSet object. |
java.lang.String |
toString()
Useful method for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetBean()
public ResultSetBean(java.sql.ResultSet rs,
int id)
throws SQLUnitException
rs - the ResultSet object to build from.id - the id for the resultset, defaults to 1 if not set.
SQLUnitException - if there was a problem building the bean.| Method Detail |
|---|
public final java.lang.String getId()
public final void setId(java.lang.String id)
id - the id for this row.public final boolean isPartial()
public final void setPartial(java.lang.String partial)
partial - true or false.public final int getRowCount()
public final void setRowCount(int rowCount)
rowCount - the rowcount override to set.public final boolean isRowCountOverriden()
public final Row[] getRows()
public final void setRows(Row[] rows)
rows - an array of Row objects to set.public final java.lang.String[] getSortBy()
public final void setSortBy(java.lang.String colIdList)
colIdList - a comma-separated list of col ids to sort by.public final void sort()
public final org.jdom.Element toElement()
public final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||