|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.RowDataKeyset
class RowDataKeyset
Field Summary |
---|
Fields inherited from interface com.mysql.jdbc.RowData |
---|
RESULT_SET_SIZE_UNKNOWN |
Constructor Summary | |
---|---|
RowDataKeyset()
|
Method Summary | |
---|---|
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 index)
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 exsists. |
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. |
void |
removeRow(int index)
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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
RowDataKeyset()
Method Detail |
---|
public void addRow(ResultSetRow row) throws java.sql.SQLException
RowData
addRow
in interface RowData
row
- the row to add
java.sql.SQLException
- if a database error occurspublic void afterLast() throws java.sql.SQLException
RowData
afterLast
in interface RowData
java.sql.SQLException
- if a database error occurspublic void beforeFirst() throws java.sql.SQLException
RowData
beforeFirst
in interface RowData
java.sql.SQLException
- if a database error occurspublic void beforeLast() throws java.sql.SQLException
RowData
beforeLast
in interface RowData
java.sql.SQLException
- if a database error occurspublic void close() throws java.sql.SQLException
RowData
close
in interface RowData
java.sql.SQLException
- if a database error occurspublic ResultSetRow getAt(int index) throws java.sql.SQLException
RowData
getAt
in interface RowData
index
- row number to get at
java.sql.SQLException
- if a database error occurspublic int getCurrentRowNumber() throws java.sql.SQLException
RowData
getCurrentRowNumber
in interface RowData
java.sql.SQLException
- if a database error occurspublic ResultSetInternalMethods getOwner()
RowData
getOwner
in interface RowData
public boolean hasNext() throws java.sql.SQLException
RowData
hasNext
in interface RowData
java.sql.SQLException
- if a database error occurspublic boolean isAfterLast() throws java.sql.SQLException
RowData
isAfterLast
in interface RowData
java.sql.SQLException
- if a database error occurspublic boolean isBeforeFirst() throws java.sql.SQLException
RowData
isBeforeFirst
in interface RowData
java.sql.SQLException
- if a database error occurspublic boolean isDynamic() throws java.sql.SQLException
RowData
isDynamic
in interface RowData
java.sql.SQLException
- if a database error occurspublic boolean isEmpty() throws java.sql.SQLException
RowData
isEmpty
in interface RowData
java.sql.SQLException
- if a database error occurspublic boolean isFirst() throws java.sql.SQLException
RowData
isFirst
in interface RowData
java.sql.SQLException
- if a database error occurspublic boolean isLast() throws java.sql.SQLException
RowData
isLast
in interface RowData
java.sql.SQLException
- if a database error occurspublic void moveRowRelative(int rows) throws java.sql.SQLException
RowData
moveRowRelative
in interface RowData
rows
- the relative number of rows to move
java.sql.SQLException
- if a database error occurspublic ResultSetRow next() throws java.sql.SQLException
RowData
next
in interface RowData
java.sql.SQLException
- if a database error occurspublic void removeRow(int index) throws java.sql.SQLException
RowData
removeRow
in interface RowData
index
- the row to move to
java.sql.SQLException
- if a database error occurspublic void setCurrentRow(int rowNumber) throws java.sql.SQLException
RowData
setCurrentRow
in interface RowData
rowNumber
- row to move to
java.sql.SQLException
- if a database error occurspublic void setOwner(ResultSetImpl rs)
RowData
setOwner
in interface RowData
rs
- the result set that 'owns' this RowDatapublic int size() throws java.sql.SQLException
RowData
size
in interface RowData
java.sql.SQLException
- if a database error occurspublic boolean wasEmpty()
RowData
wasEmpty
in interface RowData
public void setMetadata(Field[] metadata)
RowData
setMetadata
in interface RowData
metadata
- field-level metadata for the result set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |