Java Reference
In-Depth Information
if(rows==null){
initialise();
}
if(row > 0)rowIndex = row - 1;
else if(row < 0){
rowIndex = rowCount + row;
}
if(rowIndex<-1){
rowIndex=-1;
onValidRow = false;
}
if(row > rowCount){
rowIndex = rowCount;
onValidRow = false;
}
currentRow = (Element)rows.item(rowIndex);
return onValidRow;
}
public boolean relative(int row) throws SQLException {
boolean onValidRow = true;
if(rows==null){
initialise();
}
return absolute(row + rowIndex + 1);
}
public void beforeFirst() throws SQLException {
if(rows==null){
initialise();
}
rowIndex = -1;
}
public void afterLast() throws SQLException {
if(rows==null){
initialise();
}
rowIndex = rowCount;
}
public boolean first() throws SQLException {
Search WWH ::




Custom Search