|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.arsdigita.acs.Selection
Represents a generic multiple-row data source pulled in from the database. To ensure scalability of large queries, does not cache any query results. If it's necessary to call the rowcount or seek methods, you should use SeekableSelection instead.
| Field Summary | |
static java.lang.String |
cvsId
|
protected java.lang.String[] |
keys
|
protected com.arsdigita.db.SimpleResultSet |
srs
The result set that we're managing |
| Constructor Summary | |
Selection(java.lang.Object obj)
Casts the given object to SimpleResultSet |
|
Selection(com.arsdigita.db.SimpleResultSet srs)
Creates a new Selection, initialized from a SimpleResultSet. |
|
| Method Summary | |
boolean |
contains(java.lang.String column)
Returns true if this contains a column named
column. |
java.lang.String |
get(java.lang.String key)
Returns the value of the column named by key. |
java.lang.String[] |
keys()
Returns a list of available keys (column names) in the Selection. |
boolean |
next()
Advances to the next row in the data source, if there is one. |
int |
rowcount()
Not implemented by this object. |
int |
rownum()
Returns the current row number in the datasource. |
void |
seek(int rownum)
This object only implements sequential access, so calling seek with any row other than the current row results in a DataSourceException being thrown. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String cvsId
protected com.arsdigita.db.SimpleResultSet srs
protected java.lang.String[] keys
| Constructor Detail |
public Selection(java.lang.Object obj)
throws java.sql.SQLException
public Selection(com.arsdigita.db.SimpleResultSet srs)
throws java.sql.SQLException
| Method Detail |
public boolean contains(java.lang.String column)
throws DataSourceException
true if this contains a column named
column.contains in interface DataSource
public void seek(int rownum)
throws DataSourceException
seek in interface MultiDataSource
public java.lang.String get(java.lang.String key)
throws DataSourceException
key.
Returns the empty string if the column value is null.get in interface DataSourceInvalidKeyException - if key is not found.
public boolean next()
throws DataSourceException
next in interface MultiDataSource
public java.lang.String[] keys()
throws DataSourceException
keys in interface DataSource
public int rownum()
throws DataSourceException
rownum in interface MultiDataSource
public int rowcount()
throws DataSourceException
rowcount in interface MultiDataSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||