|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.beans.Row
public class Row
Models a row element, (wrapping multiple Col objects) in a database result.
Constructor Summary | |
---|---|
Row()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Returns a negative, zero or positive value depending on whether the contents of this column is less than, equal to or greater than the contents of the passed in Col object. |
Col |
getColById(java.lang.String colId)
Convenience method to return a Col object by its id. |
Col[] |
getCols()
Return an array of Col objects for this row. |
java.lang.String |
getId()
Returns the Id for this row. |
boolean |
isPartial()
Returns true if the row is partially specified. |
void |
setCols(Col[] columns)
Set the Col object array for this row. |
void |
setId(java.lang.String rowId)
Set the id for this row. |
void |
setPartial(java.lang.String partial)
Sets whether the row is partially specified. |
void |
setSortCols(java.lang.String[] colIdsToSort)
Sets a string array of ids to sort this row by. |
org.jdom.Element |
toElement()
Returns a JDOM element that represents this Col object. |
java.lang.String |
toString()
Returns the string representation of the Row bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Row()
Method Detail |
---|
public final java.lang.String getId()
public final void setId(java.lang.String rowId)
rowId
- the id for this row.public final boolean isPartial()
public final void setPartial(java.lang.String partial)
partial
- "true" or "false", default is "false".public final Col[] getCols()
public final void setCols(Col[] columns)
columns
- an array of Col objects.public final Col getColById(java.lang.String colId)
colId
- the id of the Col object.
public final void setSortCols(java.lang.String[] colIdsToSort)
colIdsToSort
- a String array of column ids.public final int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- an instance of a Col object.
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 |