RESULT_SET_SIZE_UNKNOWN| Constructor and Description |
|---|
RowDataCursor(MysqlIO ioChannel,
ServerPreparedStatement creatingStatement,
Field[] metadata)
Creates a new cursor-backed row provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(ResultSetRow row)
Adds a row to this row data.
|
void |
afterLast()
Moves to after last.
|
void |
beforeFirst()
Moves to before first.
|
void |
beforeLast()
Moves to before last so next el is the last el.
|
void |
close()
We're done.
|
ResultSetRow |
getAt(int ind)
Only works on non dynamic result sets.
|
int |
getCurrentRowNumber()
Returns the current position in the result set as a row number.
|
ResultSetInternalMethods |
getOwner()
Returns the result set that 'owns' this RowData
|
boolean |
hasNext()
Returns true if another row exists.
|
boolean |
isAfterLast()
Returns true if we got the last element.
|
boolean |
isBeforeFirst()
Returns if iteration has not occured yet.
|
boolean |
isDynamic()
Returns true if the result set is dynamic.
|
boolean |
isEmpty()
Has no records.
|
boolean |
isFirst()
Are we on the first row of the result set?
|
boolean |
isLast()
Are we on the last row of the result set?
|
void |
moveRowRelative(int rows)
Moves the current position relative 'rows' from the current position.
|
ResultSetRow |
next()
Returns the next row.
|
protected void |
nextRecord() |
void |
removeRow(int ind)
Removes the row at the given index.
|
void |
setCurrentRow(int rowNumber)
Moves the current position in the result set to the given row number.
|
void |
setMetadata(Field[] metadata)
Sometimes the driver doesn't have metadata until after
the statement has the result set in-hand (because it's cached),
so it can call this to set it after the fact.
|
void |
setOwner(ResultSetImpl rs)
Set the result set that 'owns' this RowData
|
int |
size()
Only works on non dynamic result sets.
|
boolean |
wasEmpty()
Did this result set have no rows?
|
public RowDataCursor(MysqlIO ioChannel, ServerPreparedStatement creatingStatement, Field[] metadata)
ioChannel - connection to the server.creatingStatement - statement that opened the cursor.metadata - field-level metadata for the results that this cursor covers.public boolean isAfterLast()
isAfterLast in interface RowDatapublic ResultSetRow getAt(int ind) throws java.sql.SQLException
public boolean isBeforeFirst()
throws java.sql.SQLException
isBeforeFirst in interface RowDatajava.sql.SQLException - if a database error occurspublic void setCurrentRow(int rowNumber)
throws java.sql.SQLException
setCurrentRow in interface RowDatarowNumber - row to move tojava.sql.SQLException - if a database error occurspublic int getCurrentRowNumber()
throws java.sql.SQLException
getCurrentRowNumber in interface RowDatajava.sql.SQLException - if a database error occurspublic boolean isDynamic()
public boolean isEmpty()
throws java.sql.SQLException
public boolean isFirst()
throws java.sql.SQLException
public boolean isLast()
throws java.sql.SQLException
public void addRow(ResultSetRow row) throws java.sql.SQLException
public void afterLast()
throws java.sql.SQLException
public void beforeFirst()
throws java.sql.SQLException
beforeFirst in interface RowDatajava.sql.SQLException - if a database error occurspublic void beforeLast()
throws java.sql.SQLException
beforeLast in interface RowDatajava.sql.SQLException - if a database error occurspublic void close()
throws java.sql.SQLException
public boolean hasNext()
throws java.sql.SQLException
public void moveRowRelative(int rows)
throws java.sql.SQLException
moveRowRelative in interface RowDatarows - the relative number of rows to movejava.sql.SQLException - if a database error occurspublic ResultSetRow next() throws java.sql.SQLException
public void removeRow(int ind)
throws java.sql.SQLException
public int size()
protected void nextRecord()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setOwner(ResultSetImpl rs)
RowDatapublic ResultSetInternalMethods getOwner()
RowDatapublic boolean wasEmpty()
RowDatapublic void setMetadata(Field[] metadata)
RowDatasetMetadata in interface RowDatametadata - field-level metadata for the result set