public class MySQLResultSet extends MongoResultSet<MySQLResultDoc> implements java.sql.ResultSet
ARRAY, BINARY, BOOLEAN, BSON, closed, current, cursor, DATE, dateFormat, DB_POINTER, DECIMAL128, DOCUMENT, DOUBLE, END_OF_DOCUMENT, INT32, INT64, JAVASCRIPT, JAVASCRIPT_WITH_CODE, logger, MAX_KEY, MIN_KEY, OBJECT, OBJECT_ID, REGEX, rowNum, rsMetaData, statement, STRING, SYMBOL, TIMESTAMP, wasNull| Constructor and Description |
|---|
MySQLResultSet(MongoLogger parentLogger,
com.mongodb.client.MongoCursor<MySQLResultDoc> cursor,
boolean relaxed)
* Constructor for a resultset not tied to a statement for DatabaseMetadata resultsets.
|
MySQLResultSet(MongoStatement statement,
com.mongodb.client.MongoCursor<MySQLResultDoc> cursor,
boolean relaxed)
Constructor for a resultset tied to a statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkNull(org.bson.BsonValue o) |
protected java.math.BigDecimal |
getBigDecimal(org.bson.BsonValue o) |
protected boolean |
getBoolean(org.bson.BsonValue o) |
protected org.bson.BsonValue |
getBsonValue(int columnIndex) |
protected org.bson.BsonValue |
getBsonValue(java.lang.String columnLabel) |
protected byte[] |
getBytes(org.bson.BsonValue o) |
protected double |
getDouble(org.bson.BsonValue o) |
protected long |
getLong(org.bson.BsonValue o) |
protected java.lang.Object |
getObject(org.bson.BsonValue o,
int columnType) |
java.lang.Object |
getObject(int columnIndex) |
<T> T |
getObject(int columnIndex,
java.lang.Class<T> type) |
java.lang.Object |
getObject(int columnIndex,
java.util.Map<java.lang.String,java.lang.Class<?>> map) |
java.lang.Object |
getObject(java.lang.String columnLabel) |
<T> T |
getObject(java.lang.String columnLabel,
java.lang.Class<T> type) |
java.lang.Object |
getObject(java.lang.String columnLabel,
java.util.Map<java.lang.String,java.lang.Class<?>> map) |
protected java.lang.String |
getString(org.bson.BsonValue o) |
protected java.util.Date |
getUtilDate(org.bson.BsonValue o) |
protected java.math.BigDecimal |
handleBigDecimalConversionFailure(java.lang.String from) |
protected boolean |
handleBooleanConversionFailure(java.lang.String from) |
protected byte[] |
handleBytesConversionFailure(java.lang.String from) |
protected double |
handleDoubleConversionFailure(java.lang.String from) |
protected long |
handleLongConversionFailure(java.lang.String from) |
protected java.lang.String |
handleStringConversionFailure(java.lang.String from) |
protected java.util.Date |
handleUtilDateConversionFailure(java.lang.String from) |
absolute, afterLast, beforeFirst, cancelRowUpdates, checkBounds, checkClosed, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getFloat, getHoldability, getInt, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNewBlob, getNewByteArrayInputStream, getNString, getNString, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNullpublic MySQLResultSet(MongoStatement statement, com.mongodb.client.MongoCursor<MySQLResultDoc> cursor, boolean relaxed) throws java.sql.SQLException
statement - The statement related to this resultset.cursor - The resultset cursor.relaxed - Flag for the relaxed mode.java.sql.SQLExceptionpublic MySQLResultSet(MongoLogger parentLogger, com.mongodb.client.MongoCursor<MySQLResultDoc> cursor, boolean relaxed) throws java.sql.SQLException
parentLogger - The parent connection logger.cursor - The resultset cursor.relaxed - Flag for the relaxed mode.java.sql.SQLExceptionprotected boolean checkNull(org.bson.BsonValue o)
checkNull in class MongoResultSet<MySQLResultDoc>protected org.bson.BsonValue getBsonValue(int columnIndex)
throws java.sql.SQLException
getBsonValue in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected org.bson.BsonValue getBsonValue(java.lang.String columnLabel)
throws java.sql.SQLException
getBsonValue in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected java.lang.Object getObject(org.bson.BsonValue o,
int columnType)
throws java.sql.SQLException
getObject in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected byte[] handleBytesConversionFailure(java.lang.String from)
throws java.sql.SQLException
handleBytesConversionFailure in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected byte[] getBytes(org.bson.BsonValue o)
throws java.sql.SQLException
getBytes in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected java.lang.String handleStringConversionFailure(java.lang.String from)
throws java.sql.SQLException
handleStringConversionFailure in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected java.lang.String getString(org.bson.BsonValue o)
throws java.sql.SQLException
getString in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected boolean handleBooleanConversionFailure(java.lang.String from)
throws java.sql.SQLException
handleBooleanConversionFailure in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected boolean getBoolean(org.bson.BsonValue o)
throws java.sql.SQLException
getBoolean in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected long handleLongConversionFailure(java.lang.String from)
throws java.sql.SQLException
handleLongConversionFailure in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected long getLong(org.bson.BsonValue o)
throws java.sql.SQLException
getLong in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected double handleDoubleConversionFailure(java.lang.String from)
throws java.sql.SQLException
handleDoubleConversionFailure in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected double getDouble(org.bson.BsonValue o)
throws java.sql.SQLException
getDouble in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected java.math.BigDecimal handleBigDecimalConversionFailure(java.lang.String from)
throws java.sql.SQLException
handleBigDecimalConversionFailure in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected java.math.BigDecimal getBigDecimal(org.bson.BsonValue o)
throws java.sql.SQLException
getBigDecimal in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected java.util.Date handleUtilDateConversionFailure(java.lang.String from)
throws java.sql.SQLException
handleUtilDateConversionFailure in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionprotected java.util.Date getUtilDate(org.bson.BsonValue o)
throws java.sql.SQLException
getUtilDate in class MongoResultSet<MySQLResultDoc>java.sql.SQLExceptionpublic java.lang.Object getObject(int columnIndex)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetjava.sql.SQLExceptionpublic java.lang.Object getObject(java.lang.String columnLabel)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetjava.sql.SQLExceptionpublic java.lang.Object getObject(int columnIndex,
java.util.Map<java.lang.String,java.lang.Class<?>> map)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetjava.sql.SQLExceptionpublic java.lang.Object getObject(java.lang.String columnLabel,
java.util.Map<java.lang.String,java.lang.Class<?>> map)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetjava.sql.SQLExceptionpublic <T> T getObject(int columnIndex,
java.lang.Class<T> type)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetjava.sql.SQLExceptionpublic <T> T getObject(java.lang.String columnLabel,
java.lang.Class<T> type)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetjava.sql.SQLException