| java.lang.Object com.mysql.jdbc.ResultSetRow
ResultSetRow | abstract public class ResultSetRow (Code) | | Classes that implement this interface represent one row of data from the
MySQL server that might be stored in different ways depending on whether the
result set was streaming (so they wrap a reusable packet), or whether the
result set was cached or via a server-side cursor (so they represent a
byte[][]).
Notice that no bounds checking is expected for implementors
of this interface, it happens in ResultSetImpl.
version: $Id: $ |
Field Summary | |
protected Field[] | metadata The metadata of the fields of this result set. |
Method Summary | |
abstract public void | closeOpenStreams() Called during navigation to next row to close all open
streams. | abstract public InputStream | getBinaryInputStream(int columnIndex) Returns data at the given index as an InputStream with no
character conversion.
Parameters: columnIndex - of the column value (starting at 0) to return. | abstract public byte[] | getColumnValue(int index) Returns the value at the given column (index starts at 0) "raw" (i.e.
as-returned by the server).
Parameters: index - of the column value (starting at 0) to return. | final protected java.sql.Date | getDateFast(int columnIndex, byte[] dateAsBytes, int offset, int length, ConnectionImpl conn, ResultSetImpl rs) | abstract public java.sql.Date | getDateFast(int columnIndex, ConnectionImpl conn, ResultSetImpl rs) | abstract public int | getInt(int columnIndex) Returns the value at the given column (index starts at 0) as an int. | abstract public long | getLong(int columnIndex) Returns the value at the given column (index starts at 0) as a long. | protected java.sql.Date | getNativeDate(int columnIndex, byte[] bits, int offset, int length, ConnectionImpl conn, ResultSetImpl rs) | abstract public Date | getNativeDate(int columnIndex, ConnectionImpl conn, ResultSetImpl rs) | protected Object | getNativeDateTimeValue(int columnIndex, byte[] bits, int offset, int length, Calendar targetCalendar, int jdbcType, int mysqlType, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | abstract public Object | getNativeDateTimeValue(int columnIndex, Calendar targetCalendar, int jdbcType, int mysqlType, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | protected double | getNativeDouble(byte[] bits, int offset) | abstract public double | getNativeDouble(int columnIndex) | protected float | getNativeFloat(byte[] bits, int offset) | abstract public float | getNativeFloat(int columnIndex) | protected int | getNativeInt(byte[] bits, int offset) | abstract public int | getNativeInt(int columnIndex) | protected long | getNativeLong(byte[] bits, int offset) | abstract public long | getNativeLong(int columnIndex) | protected short | getNativeShort(byte[] bits, int offset) | abstract public short | getNativeShort(int columnIndex) | protected Time | getNativeTime(int columnIndex, byte[] bits, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | abstract public Time | getNativeTime(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | protected Timestamp | getNativeTimestamp(byte[] bits, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | abstract public Timestamp | getNativeTimestamp(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | abstract public Reader | getReader(int columnIndex) | abstract public String | getString(int index, String encoding, ConnectionImpl conn) Returns the value at the given column (index starts at 0) as a
java.lang.String with the requested encoding, using the given
ConnectionImpl to find character converters. | protected String | getString(String encoding, ConnectionImpl conn, byte[] value, int offset, int length) Convenience method for turning a byte[] into a string with the given
encoding. | protected Time | getTimeFast(int columnIndex, byte[] timeAsBytes, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | abstract public Time | getTimeFast(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | protected Timestamp | getTimestampFast(int columnIndex, byte[] timestampAsBytes, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | abstract public Timestamp | getTimestampFast(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) | abstract public boolean | isFloatingPointNumber(int index) Could the column value at the given index (which starts at 0) be
interpreted as a floating-point number (has +/-/E/e in it)?
Parameters: index - of the column value (starting at 0) to check. | abstract public boolean | isNull(int index) Is the column value at the given index (which starts at 0) NULL?
Parameters: index - of the column value (starting at 0) to check. | abstract public long | length(int index) Returns the length of the column at the given index (which starts at 0).
Parameters: index - of the column value (starting at 0) for which to return thelength. | abstract public void | setColumnValue(int index, byte[] value) Sets the given column value (only works currently with
ByteArrayRowHolder). | public void | setMetadata(Field[] f) |
metadata | protected Field[] metadata(Code) | | The metadata of the fields of this result set.
|
closeOpenStreams | abstract public void closeOpenStreams()(Code) | | Called during navigation to next row to close all open
streams.
|
getBinaryInputStream | abstract public InputStream getBinaryInputStream(int columnIndex) throws SQLException(Code) | | Returns data at the given index as an InputStream with no
character conversion.
Parameters: columnIndex - of the column value (starting at 0) to return. the value at the given index as an InputStream or nullif null. throws: SQLException - if an error occurs while retrieving the value. |
getColumnValue | abstract public byte[] getColumnValue(int index) throws SQLException(Code) | | Returns the value at the given column (index starts at 0) "raw" (i.e.
as-returned by the server).
Parameters: index - of the column value (starting at 0) to return. the value for the given column (including NULL if it is) throws: SQLException - if an error occurs while retrieving the value. |
getInt | abstract public int getInt(int columnIndex) throws SQLException(Code) | | Returns the value at the given column (index starts at 0) as an int. *
Parameters: index - of the column value (starting at 0) to return. the value for the given column (returns 0 if NULL, use isNull()to determine if the value was actually NULL) throws: SQLException - if an error occurs while retrieving the value. |
getLong | abstract public long getLong(int columnIndex) throws SQLException(Code) | | Returns the value at the given column (index starts at 0) as a long. *
Parameters: index - of the column value (starting at 0) to return. the value for the given column (returns 0 if NULL, use isNull()to determine if the value was actually NULL) throws: SQLException - if an error occurs while retrieving the value. |
getNativeDateTimeValue | protected Object getNativeDateTimeValue(int columnIndex, byte[] bits, int offset, int length, Calendar targetCalendar, int jdbcType, int mysqlType, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code) | | |
getNativeDouble | protected double getNativeDouble(byte[] bits, int offset)(Code) | | |
getNativeDouble | abstract public double getNativeDouble(int columnIndex) throws SQLException(Code) | | |
getNativeFloat | protected float getNativeFloat(byte[] bits, int offset)(Code) | | |
getNativeFloat | abstract public float getNativeFloat(int columnIndex) throws SQLException(Code) | | |
getNativeInt | protected int getNativeInt(byte[] bits, int offset)(Code) | | |
getNativeLong | protected long getNativeLong(byte[] bits, int offset)(Code) | | |
getNativeLong | abstract public long getNativeLong(int columnIndex) throws SQLException(Code) | | |
getNativeShort | protected short getNativeShort(byte[] bits, int offset)(Code) | | |
getNativeShort | abstract public short getNativeShort(int columnIndex) throws SQLException(Code) | | |
getString | abstract public String getString(int index, String encoding, ConnectionImpl conn) throws SQLException(Code) | | Returns the value at the given column (index starts at 0) as a
java.lang.String with the requested encoding, using the given
ConnectionImpl to find character converters.
Parameters: index - of the column value (starting at 0) to return. Parameters: encoding - the Java name for the character encoding Parameters: conn - the connection that created this result set row the value for the given column (including NULL if it is) as aString throws: SQLException - if an error occurs while retrieving the value. |
getString | protected String getString(String encoding, ConnectionImpl conn, byte[] value, int offset, int length) throws SQLException(Code) | | Convenience method for turning a byte[] into a string with the given
encoding.
Parameters: encoding - the Java encoding name for the byte[] -> char conversion Parameters: conn - the ConnectionImpl that created the result set Parameters: value - the String value as a series of bytes, encoded using"encoding" Parameters: offset - where to start the decoding Parameters: length - how many bytes to decode the String as decoded from bytes with the given encoding throws: SQLException - if an error occurs |
isFloatingPointNumber | abstract public boolean isFloatingPointNumber(int index) throws SQLException(Code) | | Could the column value at the given index (which starts at 0) be
interpreted as a floating-point number (has +/-/E/e in it)?
Parameters: index - of the column value (starting at 0) to check. true if the column value at the given index looks like it mightbe a floating-point number, false if not. throws: SQLException - if an error occurs |
isNull | abstract public boolean isNull(int index) throws SQLException(Code) | | Is the column value at the given index (which starts at 0) NULL?
Parameters: index - of the column value (starting at 0) to check. true if the column value is NULL, false if not. throws: SQLException - if an error occurs |
length | abstract public long length(int index) throws SQLException(Code) | | Returns the length of the column at the given index (which starts at 0).
Parameters: index - of the column value (starting at 0) for which to return thelength. the length of the requested column, 0 if null (clients of thisinterface should use isNull() beforehand to determine status ofNULL values in the column). throws: SQLException - |
setColumnValue | abstract public void setColumnValue(int index, byte[] value) throws SQLException(Code) | | Sets the given column value (only works currently with
ByteArrayRowHolder).
Parameters: index - index of the column value (starting at 0) to set. Parameters: value - the (raw) value to set throws: SQLException - if an error occurs, or the concrete RowHolder doesn't supportthis operation. |
|
|