public class JDBC4ResultSet extends ResultSetImpl
catalog, columnLabelToIndex, columnNameToIndex, columnToIndexCache, columnUsed, connection, connectionId, currentRow, doingUpdates, EMPTY_SPACE, eventSink, fastClientCal, fastDefaultCal, fetchDirection, fetchSize, fields, firstCharOfQuery, fullColumnNameToIndex, gmtCalendar, hasBuiltIndexMapping, isBinaryEncoded, isClosed, MAX_DIFF_PREC, MIN_DIFF_PREC, nextResultSet, onInsertRow, owningStatement, pointOfOrigin, profileSql, reallyResult, resultCounter, resultId, resultSetConcurrency, resultSetType, retainOwningStatement, rowData, serverInfo, statementUsedForFetchingRows, thisRow, updateCount, updateId, useFastDateParsing, useLegacyDatetimeCode, useUsageAdvisor, warningChain, wasNullFlag, wrapperStatement| Constructor and Description |
|---|
JDBC4ResultSet(long updateCount,
long updateID,
MySQLConnection conn,
StatementImpl creatorStmt) |
JDBC4ResultSet(java.lang.String catalog,
Field[] fields,
RowData tuples,
MySQLConnection conn,
StatementImpl creatorStmt) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHoldability() |
protected java.sql.NClob |
getNativeNClob(int columnIndex)
JDBC 4.0 Get a NCLOB column.
|
java.io.Reader |
getNCharacterStream(int columnIndex)
JDBC 4.0
Get the value of a column in the current row as a java.io.Reader.
|
java.io.Reader |
getNCharacterStream(java.lang.String columnName)
JDBC 4.0
Get the value of a column in the current row as a java.io.Reader.
|
java.sql.NClob |
getNClob(int columnIndex)
JDBC 4.0 Get a NCLOB column.
|
java.sql.NClob |
getNClob(java.lang.String columnName)
JDBC 4.0 Get a NCLOB column.
|
java.lang.String |
getNString(int columnIndex)
JDBC 4.0
Get the value of a column in the current row as a Java String
|
java.lang.String |
getNString(java.lang.String columnName)
JDBC 4.0
The following routines simply convert the columnName into a columnIndex
and then call the appropriate routine above.
|
<T> T |
getObject(int columnIndex,
java.lang.Class<T> type) |
java.sql.RowId |
getRowId(int columnIndex) |
java.sql.RowId |
getRowId(java.lang.String columnLabel) |
java.sql.SQLXML |
getSQLXML(int columnIndex) |
java.sql.SQLXML |
getSQLXML(java.lang.String columnLabel) |
boolean |
isWrapperFor(java.lang.Class<?> iface)
Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does.
|
<T> T |
unwrap(java.lang.Class<T> iface)
Returns an object that implements the given interface to allow access to non-standard methods,
or standard methods not exposed by the proxy.
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x) |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateClob(int columnIndex,
java.io.Reader reader) |
void |
updateClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
int length)
JDBC 4.0 Update a column with a character stream value.
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNCharacterStream(java.lang.String columnName,
java.io.Reader reader,
int length)
JDBC 4.0 Update a column with a character stream value.
|
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNClob(int columnIndex,
java.sql.NClob nClob) |
void |
updateNClob(int columnIndex,
java.io.Reader reader) |
void |
updateNClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateNClob(java.lang.String columnName,
java.sql.NClob nClob) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNString(int columnIndex,
java.lang.String nString) |
void |
updateNString(java.lang.String columnLabel,
java.lang.String nString) |
void |
updateRowId(int columnIndex,
java.sql.RowId x) |
void |
updateRowId(java.lang.String columnName,
java.sql.RowId x) |
void |
updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject) |
void |
updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject) |
absolute, afterLast, arraysEqual, beforeFirst, buildIndexMapping, cancelRowUpdates, checkClosed, checkColumnBounds, checkRowPos, clearNextResult, clearWarnings, close, convertLongToUlong, copy, deleteRow, fastDateCreate, fastTimeCreate, fastTimestampCreate, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getBytes, getBytesSize, getCalendarInstanceForSessionOrNew, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getDoubleInternal, getDoubleInternal, getExceptionInterceptor, getFetchDirection, getFetchSize, getFirstCharOfQuery, getFloat, getFloat, getGmtCalendar, getInstance, getInstance, getInt, getInt, getLong, getLong, getMetaData, getNativeArray, getNativeAsciiStream, getNativeBigDecimal, getNativeBigDecimal, getNativeBinaryStream, getNativeBlob, getNativeByte, getNativeByte, getNativeBytes, getNativeCharacterStream, getNativeClob, getNativeDate, getNativeDate, getNativeDateViaParseConversion, getNativeDouble, getNativeFloat, getNativeInt, getNativeInt, getNativeLong, getNativeLong, getNativeRef, getNativeShort, getNativeShort, getNativeString, getNativeTimestampViaParseConversion, getNativeTimeViaParseConversion, getNativeUnicodeStream, getNativeURL, getNextResultSet, getObject, getObject, getObject, getObject, getObject, getObjectStoredProc, getObjectStoredProc, getObjectStoredProc, getObjectStoredProc, getRef, getRef, getRow, getServerInfo, getShort, getShort, getStatement, getString, getString, getStringInternal, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getUpdateCount, getUpdateID, getURL, getURL, getWarnings, initializeFromCachedMetaData, initializeWithMetadata, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, populateCachedMetaData, prev, previous, realClose, reallyResult, redefineFieldsForDBMD, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setBinaryEncoded, setFetchDirection, setFetchSize, setFirstCharOfQuery, setNextResultSet, setOwningStatement, setResultSetConcurrency, setResultSetType, setServerInfo, setStatementUsedForFetchingRows, setWrapperStatement, toString, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNullpublic JDBC4ResultSet(long updateCount,
long updateID,
MySQLConnection conn,
StatementImpl creatorStmt)
public JDBC4ResultSet(java.lang.String catalog,
Field[] fields,
RowData tuples,
MySQLConnection conn,
StatementImpl creatorStmt)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader getNCharacterStream(int columnIndex)
throws java.sql.SQLException
Get the value of a column in the current row as a java.io.Reader.
columnIndex - the column to get the value fromjava.sql.SQLException - if an error occurspublic java.io.Reader getNCharacterStream(java.lang.String columnName)
throws java.sql.SQLException
Get the value of a column in the current row as a java.io.Reader.
columnName - the column name to retrieve the value fromjava.sql.SQLException - if an error occurspublic java.sql.NClob getNClob(int columnIndex)
throws java.sql.SQLException
i - the first column is 1, the second is 2, ...java.sql.SQLException - if an error occurspublic java.sql.NClob getNClob(java.lang.String columnName)
throws java.sql.SQLException
colName - the column namejava.sql.SQLException - if an error occursprotected java.sql.NClob getNativeNClob(int columnIndex)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...java.sql.SQLException - if an error occurspublic java.lang.String getNString(int columnIndex)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2...java.sql.SQLException - if a database access error occurspublic java.lang.String getNString(java.lang.String columnName)
throws java.sql.SQLException
columnName - is the SQL name of the columnjava.sql.SQLException - if a database access error occurspublic void updateNCharacterStream(int columnIndex,
java.io.Reader x,
int length)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuelength - the length of the streamjava.sql.SQLException - if a database-access error occursNotUpdatablepublic void updateNCharacterStream(java.lang.String columnName,
java.io.Reader reader,
int length)
throws java.sql.SQLException
columnName - the name of the columnreader - the stream to update the column withlength - of the streamjava.sql.SQLException - if a database-access error occurspublic void updateNClob(java.lang.String columnName,
java.sql.NClob nClob)
throws java.sql.SQLException
java.sql.SQLExceptionResultSet#updateNClob(String, NClob)public void updateRowId(int columnIndex,
java.sql.RowId x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateRowId(java.lang.String columnName,
java.sql.RowId x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getHoldability()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.RowId getRowId(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.RowId getRowId(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.SQLXML getSQLXML(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.SQLXML getSQLXML(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.sql.NClob nClob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNString(int columnIndex,
java.lang.String nString)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNString(java.lang.String columnLabel,
java.lang.String nString)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor on the wrapped
object. If this does not implement the interface and is not a wrapper, return false.
This method should be implemented as a low-cost operation compared to unwrap so that
callers can use this method to avoid expensive unwrap calls that may fail. If this method
returns true then calling unwrap with the same argument should succeed.interfaces - a Class defining an interface.java.sql.SQLException - if an error occurs while determining whether this is a wrapper
for an object with the given interface.public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap recursively on the wrapped object. If the receiver is not a
wrapper and does not implement the interface, then an SQLException is thrown.iface - A Class defining an interface that the result must implement.java.sql.SQLException - If no object found that implements the interfacepublic <T> T getObject(int columnIndex,
java.lang.Class<T> type)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetgetObject in class ResultSetImpljava.sql.SQLException