|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.arsdigita.acs.VectorDataSource
datasource wrapper for a Vector of SingleSelections. Useful when we have a query from a database that we might want to loop over several times. This also allows us to use Vectors as sources of ad:loop.
| Constructor Summary | |
VectorDataSource(Vector v)
creates a new VectorDataSource from a Vector of DataSources. |
|
| Method Summary | |
boolean |
contains(String key)
Returns true if column is a valid column in
this datasource; returns false otherwise. |
String |
get(String key)
Generic get-property method; returns the value of the column named by key for the currently active |
String[] |
keys()
Returns a list of valid keys in this datasource, for use with get(). |
boolean |
next()
Advances to the next item, if there is one, and returns true; returns false otherwise. |
void |
reset()
rewinds this datasource to the beginning so we can loop over it again. |
int |
rownum()
Returns the current row number in the datasource. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public VectorDataSource(Vector v)
| Method Detail |
public boolean next()
DataSourcenext in interface DataSource
public String get(String key)
throws DataSourceException
DataSourcekey for the currently activeget in interface DataSource
public boolean contains(String key)
throws DataSourceException
DataSourcecolumn is a valid column in
this datasource; returns false otherwise.contains in interface DataSource
public String[] keys()
throws DataSourceException
DataSourcekeys in interface DataSourcepublic int rownum()
DataSourcerownum in interface DataSourcepublic void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||