|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--litebase.RowIterator
Class used to iterate through the rows of a database. It can access some attributes from the row that easy the control of which row was changed, deleted or is newer since a synchronization.
| Field Summary | |
byte |
attr
The attribute for this row. |
byte[] |
data
The data for the current row. |
static byte |
ROW_ATTR_DELETED
|
static byte |
ROW_ATTR_NEW
|
static byte |
ROW_ATTR_SYNCED
|
static byte |
ROW_ATTR_UPDATED
|
int |
rowid
The rowid for the current row |
int |
rowNumber
The number of the row. |
| Method Summary | |
void |
close()
Closes this iterator. |
boolean |
next()
Moves to the next record and fills the data members. |
boolean |
nextNotSynced()
Moves to the next with an attribute different of SYNCED. |
void |
reset()
Reset the counter to zero so you can restart to fetch records. |
void |
setSynced()
If the attribute is currently NEW or UPDATED, this method sets them to SYNCED. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final byte ROW_ATTR_SYNCED
public static final byte ROW_ATTR_NEW
public static final byte ROW_ATTR_UPDATED
public static final byte ROW_ATTR_DELETED
public byte[] data
public int rowid
public byte attr
public int rowNumber
| Method Detail |
public boolean next()
public boolean nextNotSynced()
public void setSynced()
public void close()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||