|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsky.engine.connector.database.DBRowIterator
DBRowIterator is an interface over JDBC ResultSet and ResultSetMetaData classes which has the ability to iterate over the rows in the result set, fetch, modify, or delete data in the current row.
$RCSfile: DBRowIterator.java,v $
$Revision: 1.4 $, $Date: 2005/04/24 03:14:03 $
| Field Summary | |
protected int |
_id
id of the query that led to creation of this row iterator. |
protected java.sql.ResultSet |
_rset
JDBC result set object produced by executing query with id _id. |
protected java.sql.ResultSetMetaData |
_rsmd
JDBC ResultSetMetaData object produced by executing the query with id _id. |
static FormattedResourceBundle |
STRINGS
|
| Constructor Summary | |
DBRowIterator(int id,
java.sql.ResultSet rset,
java.sql.ResultSetMetaData rsmd)
Constructor |
|
| Method Summary | |
boolean |
absolute(int row)
Position this row iterator over the row with specified id. |
void |
deleteRow()
|
boolean |
first()
Position this Row Iterator over the first row of the result set. |
DBCachedRow |
getCachedRow()
Get the current row as a DBCachedRow object. |
int |
getCursorDirection()
|
java.lang.String |
getCursorName()
|
DBDirectRow |
getDirectRow()
Get current row as DBDirectRow object. |
int |
getFetchSize()
|
int |
getPos()
Get absolute position of the current row. |
boolean |
hasData()
Check if there are any rows in the result set. |
void |
insertRow(DBRow row)
|
boolean |
isFirst()
Is the row positioned over the first row. |
boolean |
isLast()
Is the row positioned over the last row. |
boolean |
last()
Position this Row Iterator over the last row of the result set. |
boolean |
next()
Position this row iterator over the next row of the result set. |
boolean |
previous()
Position this row iterator over the previous row of the result set. |
boolean |
relative(int rows)
Position this row iterator over the row which is at specified offset with the current row. |
boolean |
rowDeleted()
|
boolean |
rowInserted()
|
boolean |
rowUpdated()
|
void |
setCursorDirection(int direction)
|
void |
setFetchSize(int size)
|
void |
updateRow(DBRow row)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int _id
protected java.sql.ResultSet _rset
protected java.sql.ResultSetMetaData _rsmd
public static final FormattedResourceBundle STRINGS
| Constructor Detail |
public DBRowIterator(int id,
java.sql.ResultSet rset,
java.sql.ResultSetMetaData rsmd)
id - id of the query over which this row iterator operates.rset - ResetSet produced by executing query of specified id.rsmd - ResultSetMetaData produced by executing query of specified id.| Method Detail |
public boolean hasData()
throws ErrorMessage
ErrorMessage - if there is a problem.
public boolean first()
throws ErrorMessage
ErrorMessage - if iterator could not be appropriately positioned.
public boolean last()
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public boolean next()
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public boolean previous()
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public boolean relative(int rows)
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public boolean absolute(int row)
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public boolean isFirst()
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public boolean isLast()
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public int getPos()
throws ErrorMessage
ErrorMessage - if there was a runtime error.
public java.lang.String getCursorName()
throws ErrorMessage
ErrorMessage
public int getCursorDirection()
throws ErrorMessage
ErrorMessage
public void setCursorDirection(int direction)
throws ErrorMessage
ErrorMessage
public int getFetchSize()
throws ErrorMessage
ErrorMessage
public void setFetchSize(int size)
throws ErrorMessage
ErrorMessage
public boolean rowDeleted()
throws ErrorMessage
ErrorMessage
public boolean rowUpdated()
throws ErrorMessage
ErrorMessage
public boolean rowInserted()
throws ErrorMessage
ErrorMessage
public void deleteRow()
throws ErrorMessage
ErrorMessage
public void updateRow(DBRow row)
throws ErrorMessage
ErrorMessage
public void insertRow(DBRow row)
throws ErrorMessage
ErrorMessagepublic DBCachedRow getCachedRow()
public DBDirectRow getDirectRow()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||