|
|||||||||
| Home >> All >> com >> mysql >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mysql.jdbc
Class RowDataDynamic

java.lang.Objectcom.mysql.jdbc.RowDataDynamic
- All Implemented Interfaces:
- RowData
- public class RowDataDynamic
- extends java.lang.Object
- implements RowData
- extends java.lang.Object
Allows streaming of MySQL data.
- Version:
- $Id: RowDataDynamic.java,v 1.8.2.9 2004/08/09 22:15:10 mmatthew Exp $
| Nested Class Summary | |
(package private) class |
RowDataDynamic.OperationNotSupportedException
|
| Field Summary | |
private int |
columnCount
|
private int |
index
|
private MysqlIO |
io
|
private boolean |
isAfterEnd
|
private boolean |
isAtEnd
|
private long |
lastSuccessfulReadTimeMs
|
private long |
netWriteTimeoutMs
|
private byte[][] |
nextRow
|
private ResultSet |
owner
|
private boolean |
streamerClosed
|
| Fields inherited from interface com.mysql.jdbc.RowData |
RESULT_SET_SIZE_UNKNOWN |
| Constructor Summary | |
RowDataDynamic(MysqlIO io,
int colCount)
Creates a new RowDataDynamic object. |
|
| Method Summary | |
void |
addRow(byte[][] 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. |
byte[][] |
getAt(int index)
Only works on non dynamic result sets. |
int |
getCurrentRowNumber()
Returns the current position in the result set as a row number. |
ResultSet |
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. |
byte[][] |
next()
Returns the next row. |
private void |
nextRecord()
|
private void |
notSupported()
|
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 |
setOwner(ResultSet rs)
Set the result set that 'owns' this RowData |
int |
size()
Only works on non dynamic result sets. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
io
private MysqlIO io
nextRow
private byte[][] nextRow
isAfterEnd
private boolean isAfterEnd
isAtEnd
private boolean isAtEnd
streamerClosed
private boolean streamerClosed
columnCount
private int columnCount
index
private int index
lastSuccessfulReadTimeMs
private long lastSuccessfulReadTimeMs
netWriteTimeoutMs
private long netWriteTimeoutMs
owner
private ResultSet owner
| Constructor Detail |
RowDataDynamic
public RowDataDynamic(MysqlIO io, int colCount) throws java.sql.SQLException
- Creates a new RowDataDynamic object.
| Method Detail |
isAfterLast
public boolean isAfterLast()
throws java.sql.SQLException
- Returns true if we got the last element.
- Specified by:
isAfterLastin interfaceRowData
getAt
public byte[][] getAt(int index)
throws java.sql.SQLException
isBeforeFirst
public boolean isBeforeFirst()
throws java.sql.SQLException
- Returns if iteration has not occured yet.
- Specified by:
isBeforeFirstin interfaceRowData
setCurrentRow
public void setCurrentRow(int rowNumber)
throws java.sql.SQLException
- Moves the current position in the result set to the given row number.
- Specified by:
setCurrentRowin interfaceRowData
setOwner
public void setOwner(ResultSet rs)
- Description copied from interface:
RowData - Set the result set that 'owns' this RowData
getOwner
public ResultSet getOwner()
- Description copied from interface:
RowData - Returns the result set that 'owns' this RowData
getCurrentRowNumber
public int getCurrentRowNumber()
throws java.sql.SQLException
- Returns the current position in the result set as a row number.
- Specified by:
getCurrentRowNumberin interfaceRowData
isDynamic
public boolean isDynamic()
- Returns true if the result set is dynamic. This means that move back and
move forward won't work because we do not hold on to the records.
isEmpty
public boolean isEmpty()
throws java.sql.SQLException
isFirst
public boolean isFirst()
throws java.sql.SQLException
isLast
public boolean isLast()
throws java.sql.SQLException
addRow
public void addRow(byte[][] row)
throws java.sql.SQLException
afterLast
public void afterLast()
throws java.sql.SQLException
beforeFirst
public void beforeFirst()
throws java.sql.SQLException
- Moves to before first.
- Specified by:
beforeFirstin interfaceRowData
beforeLast
public void beforeLast()
throws java.sql.SQLException
- Moves to before last so next el is the last el.
- Specified by:
beforeLastin interfaceRowData
close
public void close()
throws java.sql.SQLException
hasNext
public boolean hasNext()
throws java.sql.SQLException
moveRowRelative
public void moveRowRelative(int rows)
throws java.sql.SQLException
- Moves the current position relative 'rows' from the current position.
- Specified by:
moveRowRelativein interfaceRowData
next
public byte[][] next()
throws java.sql.SQLException
removeRow
public void removeRow(int index)
throws java.sql.SQLException
size
public int size()
nextRecord
private void nextRecord()
throws java.sql.SQLException
notSupported
private void notSupported()
throws java.sql.SQLException
|
|||||||||
| Home >> All >> com >> mysql >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.mysql.jdbc.RowDataDynamic