Top Description Fields Methods
com.mysql.cj.jdbc.result

public Interface ResultSetInternalMethods

extends ResultSet, ResultsetRowsOwner, Resultset
Known Direct Implementers
com.mysql.cj.jdbc.result.ResultSetImpl
Imports
java.math.BigInteger, java.sql.SQLException, .Types, com.mysql.cj.jdbc.CloseOption, .JdbcPreparedStatement, .JdbcStatement, com.mysql.cj.protocol.Resultset, .ResultsetRowsOwner

This interface is intended to be used by implementors of statement interceptors so that implementors can create static or dynamic (via java.lang.reflect.Proxy) proxy instances of ResultSets. It consists of methods outside of java.sql.Result that are used internally by other classes in the driver. This interface, although public is not designed to be consumed publicly other than for the statement interceptor use case.

Field Summary

Inherited from java.sql.ResultSet:
CLOSE_CURSORS_AT_COMMITCONCUR_READ_ONLYCONCUR_UPDATABLEFETCH_FORWARDFETCH_REVERSEFETCH_UNKNOWNHOLD_CURSORS_OVER_COMMITTYPE_FORWARD_ONLYTYPE_SCROLL_INSENSITIVETYPE_SCROLL_SENSITIVE

Method Summary

Modifier and TypeMethod and Description
public void
doClose(CloseOption...
options indicating how the close was initiated and/or what should be performed during the close
options
)

Close this ResultSet and release resources.

public BigInteger
getBigInteger(int columnIndex)

public char

Returns:

character
getFirstCharOfQuery
()

Returns the first character of the query that was issued to create this result set, upper-cased.

public Object

Returns:

object
getObjectStoredProc
(int
1-based column index
columnIndex
,
int
desired column type, one of Types
desiredSqlType
)

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

public Object

Returns:

object
getObjectStoredProc
(int
1-based column index
i
,
Map<Object, Object>
map
map
,
int
desired column type, one of Types
desiredSqlType
)

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

public Object

Returns:

object
getObjectStoredProc
(String
column name
columnName
,
int
desired column type, one of Types
desiredSqlType
)

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

public Object

Returns:

object
getObjectStoredProc
(String
column name
colName
,
Map<Object, Object>
map
map
,
int
desired column type, one of Types
desiredSqlType
)

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

public void
public void
public void
setFirstCharOfQuery(char
character
firstCharUpperCase
)

Sets the first character of the query that was issued to create this result set.

public void
setOwningStatement(JdbcStatement
the statement this result set will belong to
owningStatement
)

Sets the statement that "owns" this result set (usually used when the result set should internally "belong" to one statement, but is created by another.

public void
public void
setWrapperStatement(Statement
The wrapperStatement to set.
wrapperStatement
)

Inherited from com.mysql.cj.protocol.Resultset:
clearNextResultsetgetColumnDefinitiongetNextResultsetgetResultIdgetRowsgetServerInfogetUpdateCountgetUpdateIDhasRowsinitRowsWithMetadatasetColumnDefinitionsetNextResultset
Inherited from com.mysql.cj.protocol.ResultsetRowsOwner:
closeOwnergetConnectiongetLockgetOwnerFetchSizegetOwningQuerygetOwningStatementFetchSizegetOwningStatementMaxRowsgetOwningStatementServerIdgetPointOfOrigingetSession
Inherited from java.sql.ResultSet:
absoluteafterLastbeforeFirstcancelRowUpdatesclearWarningsclosedeleteRowfindColumnfirstgetArraygetArraygetAsciiStreamgetAsciiStreamgetBigDecimalgetBigDecimalgetBigDecimalgetBigDecimalgetBinaryStreamgetBinaryStreamgetBlobgetBlobgetBooleangetBooleangetBytegetBytegetBytesgetBytesgetCharacterStreamgetCharacterStreamgetClobgetClobgetConcurrencygetCursorNamegetDategetDategetDategetDategetDoublegetDoublegetFetchDirectiongetFetchSizegetFloatgetFloatgetHoldabilitygetIntgetIntgetLonggetLonggetMetaDatagetNCharacterStreamgetNCharacterStreamgetNClobgetNClobgetNStringgetNStringgetObjectgetObjectgetObjectgetObjectgetObjectgetObjectgetRefgetRefgetRowgetRowIdgetRowIdgetShortgetShortgetSQLXMLgetSQLXMLgetStatementgetStringgetStringgetTimegetTimegetTimegetTimegetTimestampgetTimestampgetTimestampgetTimestampgetTypegetUnicodeStreamgetUnicodeStreamgetURLgetURLgetWarningsinsertRowisAfterLastisBeforeFirstisClosedisFirstisLastlastmoveToCurrentRowmoveToInsertRownextpreviousrefreshRowrelativerowDeletedrowInsertedrowUpdatedsetFetchDirectionsetFetchSizeupdateArrayupdateArrayupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateBigDecimalupdateBigDecimalupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBlobupdateBlobupdateBlobupdateBlobupdateBlobupdateBlobupdateBooleanupdateBooleanupdateByteupdateByteupdateBytesupdateBytesupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateClobupdateClobupdateClobupdateClobupdateClobupdateClobupdateDateupdateDateupdateDoubleupdateDoubleupdateFloatupdateFloatupdateIntupdateIntupdateLongupdateLongupdateNCharacterStreamupdateNCharacterStreamupdateNCharacterStreamupdateNCharacterStreamupdateNClobupdateNClobupdateNClobupdateNClobupdateNClobupdateNClobupdateNStringupdateNStringupdateNullupdateNullupdateObjectupdateObjectupdateObjectupdateObjectupdateObjectupdateObjectupdateObjectupdateObjectupdateRefupdateRefupdateRowupdateRowIdupdateRowIdupdateShortupdateShortupdateSQLXMLupdateSQLXMLupdateStringupdateStringupdateTimeupdateTimeupdateTimestampupdateTimestampwasNull

Method Detail

doCloseback to summary
public void doClose(CloseOption... options) throws SQLException

Close this ResultSet and release resources.

Parameters
options:CloseOption[]

options indicating how the close was initiated and/or what should be performed during the close

Exceptions
SQLException:
if an error occurs
getBigIntegerback to summary
public BigInteger getBigInteger(int columnIndex) throws SQLException
getFirstCharOfQueryback to summary
public char getFirstCharOfQuery()

Returns the first character of the query that was issued to create this result set, upper-cased.

Returns:char

character

getObjectStoredProcback to summary
public Object getObjectStoredProc(int columnIndex, int desiredSqlType) throws SQLException

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

Parameters
columnIndex:int

1-based column index

desiredSqlType:int

desired column type, one of Types

Returns:Object

object

Exceptions
SQLException:
if an error occurs
getObjectStoredProcback to summary
public Object getObjectStoredProc(int i, Map<Object, Object> map, int desiredSqlType) throws SQLException

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

Parameters
i:int

1-based column index

map:Map<Object, Object>

map

desiredSqlType:int

desired column type, one of Types

Returns:Object

object

Exceptions
SQLException:
if an error occurs
getObjectStoredProcback to summary
public Object getObjectStoredProc(String columnName, int desiredSqlType) throws SQLException

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

Parameters
columnName:String

column name

desiredSqlType:int

desired column type, one of Types

Returns:Object

object

Exceptions
SQLException:
if an error occurs
getObjectStoredProcback to summary
public Object getObjectStoredProc(String colName, Map<Object, Object> map, int desiredSqlType) throws SQLException

Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).

Parameters
colName:String

column name

map:Map<Object, Object>

map

desiredSqlType:int

desired column type, one of Types

Returns:Object

object

Exceptions
SQLException:
if an error occurs
initializeWithMetadataback to summary
public void initializeWithMetadata() throws SQLException
populateCachedMetaDataback to summary
public void populateCachedMetaData(CachedResultSetMetaData cachedMetaData) throws SQLException
setFirstCharOfQueryback to summary
public void setFirstCharOfQuery(char firstCharUpperCase)

Sets the first character of the query that was issued to create this result set. The character should be upper-cased.

Parameters
firstCharUpperCase:char

character

setOwningStatementback to summary
public void setOwningStatement(JdbcStatement owningStatement)

Sets the statement that "owns" this result set (usually used when the result set should internally "belong" to one statement, but is created by another.

Parameters
owningStatement:JdbcStatement

the statement this result set will belong to

setStatementUsedForFetchingRowsback to summary
public void setStatementUsedForFetchingRows(JdbcPreparedStatement stmt)
setWrapperStatementback to summary
public void setWrapperStatement(Statement wrapperStatement)
Parameters
wrapperStatement:Statement

The wrapperStatement to set.