|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.zentense.step2.view.View
com.zentense.step2.view.RowView
public class RowView
This class is a view of a single row. A row is a group of pairs (key, value), as in a Hashtable (in fact a RowView is a wrapper of a Hashtable) and this is the simplest view possible and can contain a row or none.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.zentense.step2.view.View |
|---|
View.Empty |
| Field Summary | |
|---|---|
protected java.util.Hashtable |
row
Current row values |
| Fields inherited from class com.zentense.step2.view.View |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
RowView()
Empty constructor |
|
RowView(java.util.Hashtable row)
Constructs a RowView from a Hashtable |
|
RowView(java.util.Vector v)
Constructs a RowView from a Vector. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String colName)
Gets a column value |
java.lang.String[] |
getCols()
Gets column names (keys) |
java.util.Hashtable |
getRow()
Gets the row of this view |
int |
getSize()
Gets results size |
boolean |
isEmpty()
Is this row empty? |
void |
set(java.lang.String colName,
java.lang.Object obj)
Sets a (key, value) pair |
void |
setRow(java.util.Hashtable row)
Sets the row (the Hashtable) of this view. |
void |
setRow(java.util.Vector v)
Sets the row of this view. |
RowView |
setRowOp(java.util.Vector v)
This method is used internally by 2step. |
java.lang.String |
toString()
Returns an string representation of this object |
| Methods inherited from class com.zentense.step2.view.View |
|---|
asDelegated, asDelegatedResultSet, asResultSet, fillFromRow, fillRowFromRequest, first, getBool, getCachedClone, getColsAsView, getCount, getDouble, getIndent, getInt, getOrdinal, getRow, getStart, getSum, insertRow, next, open, randomPosition, setPageBounds, setPageBounds, setPageBounds, setPageBounds, setPosition, updateRow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable row
| Constructor Detail |
|---|
public RowView()
public RowView(java.util.Hashtable row)
row - The (key, value) pairs.public RowView(java.util.Vector v)
v - A Vector| Method Detail |
|---|
public final void setRow(java.util.Hashtable row)
row - A Hashtablepublic final void setRow(java.util.Vector v)
v - An empty Vector, or a Vector that contains a Hashtable as the first element.public final RowView setRowOp(java.util.Vector v)
v - A Vector
public final java.util.Hashtable getRow()
getRow in class Viewpublic final boolean isEmpty()
public int getSize()
throws java.lang.Exception
getSize in class Viewjava.lang.Exception
public void set(java.lang.String colName,
java.lang.Object obj)
throws java.lang.Exception
set in class ViewcolName - Column name (key)obj - Value
java.lang.Exceptionpublic java.lang.Object get(java.lang.String colName)
get in class ViewcolName - Column name (key)
public java.lang.String[] getCols()
throws java.lang.Exception
getCols in class Viewjava.lang.Exceptionpublic 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 | |||||||