|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysql.jdbc.ResultSetRow
com.mysql.jdbc.ByteArrayRow
public class ByteArrayRow
A RowHolder implementation that is for cached results (a-la mysql_store_result()).
| Field Summary |
|---|
| Fields inherited from class com.mysql.jdbc.ResultSetRow |
|---|
metadata |
| Constructor Summary | |
|---|---|
ByteArrayRow(byte[][] internalRowData)
|
|
| Method Summary | |
|---|---|
void |
closeOpenStreams()
Called during navigation to next row to close all open streams. |
java.io.InputStream |
getBinaryInputStream(int columnIndex)
Returns data at the given index as an InputStream with no character conversion. |
byte[] |
getColumnValue(int index)
Returns the value at the given column (index starts at 0) "raw" (i.e. |
java.sql.Date |
getDateFast(int columnIndex,
ConnectionImpl conn,
ResultSetImpl rs,
java.util.Calendar targetCalendar)
|
int |
getInt(int columnIndex)
Returns the value at the given column (index starts at 0) as an int. |
long |
getLong(int columnIndex)
Returns the value at the given column (index starts at 0) as a long. |
java.sql.Date |
getNativeDate(int columnIndex,
ConnectionImpl conn,
ResultSetImpl rs)
|
java.lang.Object |
getNativeDateTimeValue(int columnIndex,
java.util.Calendar targetCalendar,
int jdbcType,
int mysqlType,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
|
double |
getNativeDouble(int columnIndex)
|
float |
getNativeFloat(int columnIndex)
|
int |
getNativeInt(int columnIndex)
|
long |
getNativeLong(int columnIndex)
|
short |
getNativeShort(int columnIndex)
|
java.sql.Time |
getNativeTime(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
|
java.sql.Timestamp |
getNativeTimestamp(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
|
java.io.Reader |
getReader(int columnIndex)
|
java.lang.String |
getString(int index,
java.lang.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. |
java.sql.Time |
getTimeFast(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
|
java.sql.Timestamp |
getTimestampFast(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
|
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)? |
boolean |
isNull(int index)
Is the column value at the given index (which starts at 0) NULL? |
long |
length(int index)
Returns the length of the column at the given index (which starts at 0). |
void |
setColumnValue(int index,
byte[] value)
Sets the given column value (only works currently with ByteArrayRowHolder). |
| Methods inherited from class com.mysql.jdbc.ResultSetRow |
|---|
getDateFast, getNativeDate, getNativeDateTimeValue, getNativeDouble, getNativeFloat, getNativeInt, getNativeLong, getNativeShort, getNativeTime, getNativeTimestamp, getString, getTimeFast, getTimestampFast, setMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayRow(byte[][] internalRowData)
| Method Detail |
|---|
public byte[] getColumnValue(int index)
throws java.sql.SQLException
ResultSetRow
getColumnValue in class ResultSetRowindex - of the column value (starting at 0) to return.
java.sql.SQLException - if an error occurs while retrieving the value.
public void setColumnValue(int index,
byte[] value)
throws java.sql.SQLException
ResultSetRow
setColumnValue in class ResultSetRowindex - index of the column value (starting at 0) to set.value - the (raw) value to set
java.sql.SQLException - if an error occurs, or the concrete RowHolder doesn't support
this operation.
public java.lang.String getString(int index,
java.lang.String encoding,
ConnectionImpl conn)
throws java.sql.SQLException
ResultSetRow
getString in class ResultSetRowindex - of the column value (starting at 0) to return.encoding - the Java name for the character encodingconn - the connection that created this result set row
java.sql.SQLException - if an error occurs while retrieving the value.
public boolean isNull(int index)
throws java.sql.SQLException
ResultSetRow
isNull in class ResultSetRowindex - of the column value (starting at 0) to check.
java.sql.SQLException - if an error occurs
public boolean isFloatingPointNumber(int index)
throws java.sql.SQLException
ResultSetRow
isFloatingPointNumber in class ResultSetRowindex - of the column value (starting at 0) to check.
java.sql.SQLException - if an error occurs
public long length(int index)
throws java.sql.SQLException
ResultSetRow
length in class ResultSetRowindex - of the column value (starting at 0) for which to return the
length.
java.sql.SQLExceptionpublic int getInt(int columnIndex)
ResultSetRow
getInt in class ResultSetRowpublic long getLong(int columnIndex)
ResultSetRow
getLong in class ResultSetRow
public java.sql.Timestamp getTimestampFast(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
throws java.sql.SQLException
getTimestampFast in class ResultSetRowjava.sql.SQLException
public double getNativeDouble(int columnIndex)
throws java.sql.SQLException
getNativeDouble in class ResultSetRowjava.sql.SQLException
public float getNativeFloat(int columnIndex)
throws java.sql.SQLException
getNativeFloat in class ResultSetRowjava.sql.SQLException
public int getNativeInt(int columnIndex)
throws java.sql.SQLException
getNativeInt in class ResultSetRowjava.sql.SQLException
public long getNativeLong(int columnIndex)
throws java.sql.SQLException
getNativeLong in class ResultSetRowjava.sql.SQLException
public short getNativeShort(int columnIndex)
throws java.sql.SQLException
getNativeShort in class ResultSetRowjava.sql.SQLException
public java.sql.Timestamp getNativeTimestamp(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
throws java.sql.SQLException
getNativeTimestamp in class ResultSetRowjava.sql.SQLExceptionpublic void closeOpenStreams()
ResultSetRow
closeOpenStreams in class ResultSetRow
public java.io.InputStream getBinaryInputStream(int columnIndex)
throws java.sql.SQLException
ResultSetRow
getBinaryInputStream in class ResultSetRowcolumnIndex - of the column value (starting at 0) to return.
java.sql.SQLException - if an error occurs while retrieving the value.
public java.io.Reader getReader(int columnIndex)
throws java.sql.SQLException
getReader in class ResultSetRowjava.sql.SQLException
public java.sql.Time getTimeFast(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
throws java.sql.SQLException
getTimeFast in class ResultSetRowjava.sql.SQLException
public java.sql.Date getDateFast(int columnIndex,
ConnectionImpl conn,
ResultSetImpl rs,
java.util.Calendar targetCalendar)
throws java.sql.SQLException
getDateFast in class ResultSetRowjava.sql.SQLException
public java.lang.Object getNativeDateTimeValue(int columnIndex,
java.util.Calendar targetCalendar,
int jdbcType,
int mysqlType,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
throws java.sql.SQLException
getNativeDateTimeValue in class ResultSetRowjava.sql.SQLException
public java.sql.Date getNativeDate(int columnIndex,
ConnectionImpl conn,
ResultSetImpl rs)
throws java.sql.SQLException
getNativeDate in class ResultSetRowjava.sql.SQLException
public java.sql.Time getNativeTime(int columnIndex,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward,
ConnectionImpl conn,
ResultSetImpl rs)
throws java.sql.SQLException
getNativeTime in class ResultSetRowjava.sql.SQLException
|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||