Class ClientResultSet
- All Implemented Interfaces:
AutoCloseable, ResultSet, Wrapper, ResultSetCallbackInterface, UnitOfWorkListener
- Direct Known Subclasses:
NetResultSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprotected Agent(package private) booleanprivate boolean[]private boolean[]Indicates which columns have been fetched as a stream or as a LOB for a row.private final ClientConnectionprivate Readerprivate longprivate CloseFilterInputStreambooleanprivate booleanprivate static final byteprivate static final byteprivate intintprivate longprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanbooleanprivate booleanprivate longprivate booleanprivate LOBStateTrackerTracker object for LOB state, used to free locators on the server.private long(package private) booleanboolean(package private) ClientStatementprivate ClientPreparedStatementprivate ClientPreparedStatementprivate ClientPreparedStatementlong(package private) int(package private) intintprivate longSqlca[]intintprivate byteprivate booleanbooleanstatic final intstatic final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intstatic final intintstatic final intstatic final intstatic final intstatic final intprotected intprivate Object[]private SqlWarningprivate static final intprivate static final intprivate static final intprivate intFields inherited from interface ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientResultSet(Agent agent, ClientStatement statement, Cursor cursor, int resultSetType, int resultSetConcurrency, int resultSetHoldability) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int row) private booleanabsoluteX(int row) voidprivate voidadjustAbsoluteRowset(long rowNumber) private voidprivate voidadjustLastRowset(long row) private voidprivate voidadjustPreviousRowset(int orientation, long rowNumber, boolean isAfterLastRow) private voidprivate voidadjustRelativeRowset(long rowNumber) voidprivate voidvoidprivate voidprivate Stringprivate Stringprivate Stringvoidprotected final voidprotected final voidcheckForClosedResultSet(String operation) private final voidcheckForUpdatableResultSet(String operation) private voidcheckForValidColumnIndex(int column) private final voidprivate final voidcheckGetterPreconditions(int column, String operation) private voidcheckLOBMultiCall(int columnIndex) Checks if a stream or a LOB object has already been created for the specified LOB column.private final voidprivate final intprivate final intcheckRowsetSqlca(int row) private final voidprivate final voidprivate final voidcheckUpdatePreconditions(int column, String operation) final voidClear all warnings on thisResultSetand make subsequent calls togetWarnings()returnnulluntil a new warning is reported.private voidvoidclose()private voidCloses the current stream, if there is one.private voidClose Statement if it is set to closeOnCompletionfinal voidcloseX()voidcompleteLocalCommit(Iterator listenerIterator) voidcompleteLocalRollback(Iterator listenerIterator) intcompleteSqlca(Sqlca sqlca) private DateconvertFromDefaultCalendar(Date date, Calendar cal) Convert a date originally set using the default calendar to a value representing the same date in a different calendar.private TimeconvertFromDefaultCalendar(Time time, Calendar cal) Convert a time originally set using the default calendar to a value representing the same time in a different calendar.private TimestampconvertFromDefaultCalendar(Timestamp ts, Calendar cal) Convert a timestamp originally set using the default calendar to a value representing the same timestamp in a different calendar.private static CalendarcreateCalendar(Date date) Create a calendar with default locale and time zone.private CloseFilterInputStream(package private) final voidInitializes the LOB state tracker.private voiddelete()voidprivate voidvoidearlyCloseComplete(Sqlca sqlca) voidfinal intfindColumn(String columnName) protected final intfindColumnX(String columnName, String operation) booleanfirst()private booleanfirstX()private voidprivate voidflowGetRowset(int orientation, long rowNumber) private voidflowPositioningFetch(int scrollOrientation, int rowToFetch) private booleangetAbsoluteRowset(long row) getArray(int column) final ArraygetAsciiStream(int column) final InputStreamgetAsciiStream(String columnName) getBigDecimal(int column) getBigDecimal(int column, int scale) Deprecated.final BigDecimalgetBigDecimal(String columnName) final BigDecimalgetBigDecimal(String columnName, int scale) Deprecated.getBinaryStream(int column) final InputStreamgetBinaryStream(String columnName) getBlob(int column) final BlobbooleangetBoolean(int column) final booleangetBoolean(String columnName) bytegetByte(int column) final bytebyte[]getBytes(int column) final byte[]getCharacterStream(int column) final ReadergetCharacterStream(String columnName) getClob(int column) final ClobintgetDate(int column) final Datefinal DatedoublegetDouble(int column) final doubleintintprivate booleanfloatgetFloat(int column) final floatfinal intRetrieves the holdability for thisResultSetobject.intgetInt(int column) final intprivate booleangetLastRowset(long row) longgetLong(int column) final long(package private) ColumnMetaDatagetNCharacterStream(int columnIndex) getNCharacterStream(String columnName) getNClob(int i) private booleangetNString(int columnIndex) getNString(String columnName) getObject(int column) <T> TRetrieve the column as an object of the desired type.final Object<T> Tfinal Object(package private) ObjectgetObjectX(int column) private voidprivate voidprivate voidprivate booleangetRef(int column) final Refprivate booleanprivate booleangetRelativeRowset(long rows) intgetRow()protected voidgetRowId(int columnIndex) private final longprivate intgetRowX()byteprivate StringshortgetShort(int column) final shortgetSQLXML(int columnIndex) Retrieves theStatementobject that produced this object, ornullif theResultSetwas not produced by aStatementobject.getString(int column) final Stringprivate StringgetTime(int column) final Timefinal TimegetTimestamp(int column) getTimestamp(int column, Calendar calendar) final TimestampgetTimestamp(String columnName) final TimestampgetTimestamp(String columnName, Calendar cal) intgetType()getUnicodeStream(int column) Deprecated.final InputStreamgetUnicodeStream(String columnName) Deprecated.getURL(int columnIndex) final SQLWarningReturns the firstSQLWarningreported on thisResultSetobject, ornullif there are no warnings.private voidinsert()voidprivate voidbooleanprivate booleanbooleanprivate booleanfinal booleanisClosed()Checks whether thisResultSetobject has been closed, either automatically or becauseclose()has been called.booleanisFirst()private booleanisFirstX()booleanisLast()private booleanisLastX()private booleanisNull(int column) private booleanprivate booleanbooleanisWrapperFor(Class<?> interfaces) Returns false unlessinterfacesis implementedprivate SQLExceptionbooleanlast()private booleanlastX()void(package private) void(package private) voidMark this ResultSet as closed.(package private) voidmarkClosed(boolean removeListener) Mark this ResultSet as closed.voidMark this ResultSet as closed on the server.final voidmarkLOBAsPublished(int index) Marks the LOB at the specified column as published.private voidprivate SQLExceptionmismatchException(String targetTypeName, int columnIndex) private voidprivate voidvoidprivate voidMoves off the insert row if positioned there, and checks the current row for releasable LOB locators if positioned on a valid data row.voidfinal booleannext()(package private) booleannextX()private voidprivate voidprotected abstract void(package private) voidprivate voidprivate voidprotected abstract voidMethod that is invoked bycloseX()before the result set is actually being closed.booleanprevious()private booleanprivate void(package private) voidprivate voidreadCloseAndAutoCommit(boolean readAutoCommit) abstract voidprivate voidabstract voidprivate voidabstract voidabstract voidprivate voidvoidprivate voidbooleanrelative(int rows) private booleanrelativeX(int rows) (package private) booleanprivate voidprivate voidprivate final voidprivate final voidprivate boolean(package private) booleanbooleanbooleanprivate booleanrowIsInCurrentRowset(long rowNumber) private booleanrowIsInCurrentRowset(long rowNumber, int orientation) booleanprivate voidvoidsetFetchDirection(int direction) voidsetFetchSize(int rows) abstract voidsetFetchSize_(int rows) voidsetRowCountEvent(long rowCount) private voidprivate voidprivate voidvoidsetRSReturnability(byte rsReturnability) voidsetValidCursorPosition(boolean isValidCursorPosition) private voidsetWasNull(int column) private voidClears the flags for used columns, typically invoked when changing the result set position.<T> TReturnsthisif this class implements the interfaceprivate voidupdate()voidupdateArray(int columnIndex, Array x) voidupdateArray(String columnName, Array x) voidupdateAsciiStream(int columnIndex, InputStream x) Updates the designated column with an ascii stream value.voidupdateAsciiStream(int column, InputStream x, int length) voidupdateAsciiStream(int columnIndex, InputStream x, long length) Update a column with an ascii stream value.voidupdateAsciiStream(String columnName, InputStream x) Updates the designated column with an ascii stream value.voidupdateAsciiStream(String columnName, InputStream x, int length) voidupdateAsciiStream(String columnName, InputStream x, long length) Update a column with an ascii stream value.voidupdateBigDecimal(int column, BigDecimal x) voidupdateBigDecimal(String columnName, BigDecimal x) voidupdateBinaryStream(int columnIndex, InputStream x) Updates the designated column with a binary stream value.voidupdateBinaryStream(int column, InputStream x, int length) voidupdateBinaryStream(int columnIndex, InputStream x, long length) Update a column with a binary stream value.voidupdateBinaryStream(String columnLabel, InputStream x) Updates the designated column with a binary stream value.voidupdateBinaryStream(String columnName, InputStream x, int length) voidupdateBinaryStream(String columnName, InputStream x, long length) Update a column with a binary stream value.voidupdateBlob(int columnIndex, InputStream x) Updates the designated column using the given input stream.voidupdateBlob(int columnIndex, InputStream x, long length) Updates the designated column using the given input stream, which will have the specified number of bytes.voidupdateBlob(int columnIndex, Blob x) Updates the designated column with ajava.sql.Blobvalue.voidupdateBlob(String columnLabel, InputStream x) Updates the designated column using the given input stream.voidupdateBlob(String columnName, InputStream x, long length) Updates the designated column using the given input stream, which will have the specified number of bytes.voidupdateBlob(String columnName, Blob x) Updates the designated column with ajava.sql.Blobvalue.voidupdateBoolean(int column, boolean x) voidupdateBoolean(String columnName, boolean x) voidupdateByte(int column, byte x) voidupdateByte(String columnName, byte x) voidupdateBytes(int column, byte[] x) voidupdateBytes(String columnName, byte[] x) voidupdateCharacterStream(int columnIndex, Reader reader) Updates the designated column with a character stream value.voidupdateCharacterStream(int column, Reader x, int length) voidupdateCharacterStream(int columnIndex, Reader x, long length) Update a column with a character stream value.voidupdateCharacterStream(String columnLabel, Reader reader) Updates the designated column with a character stream value.voidupdateCharacterStream(String columnName, Reader x, int length) voidupdateCharacterStream(String columnName, Reader reader, long length) Update a column with a character stream value.voidupdateClob(int columnIndex, Reader reader) Updates the designated column using the givenReaderobject.voidupdateClob(int columnIndex, Reader x, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateClob(int columnIndex, Clob x) Updates the designated column with ajava.sql.Clobvalue.voidupdateClob(String columnLabel, Reader reader) Updates the designated column using the givenReaderobject.voidupdateClob(String columnName, Reader x, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateClob(String columnLabel, Clob x) Updates the designated column with ajava.sql.Clobvalue.private voidupdateColumn(int column, Object value) private voidvoidupdateDate(int column, Date x) voidupdateDate(String columnName, Date x) voidupdateDouble(int column, double x) voidupdateDouble(String columnName, double x) voidupdateFloat(int column, float x) voidupdateFloat(String columnName, float x) voidupdateInt(int column, int x) voidvoidupdateLong(int column, long x) voidupdateLong(String columnName, long x) voidupdateNCharacterStream(int columnIndex, Reader x) voidupdateNCharacterStream(int columnIndex, Reader x, long length) voidupdateNCharacterStream(String columnName, Reader x) voidupdateNCharacterStream(String columnName, Reader x, long length) voidupdateNClob(int columnIndex, Reader reader) voidupdateNClob(int columnIndex, Reader x, long length) Updates the designated column with a java.sql.NClob value.voidupdateNClob(int columnIndex, NClob nClob) voidupdateNClob(String columnName, InputStream x, long length) Updates the designated column with a java.sql.NClob value.voidupdateNClob(String columnName, Reader reader) voidupdateNClob(String columnName, Reader x, long length) Updates the designated column with a java.sql.NClob value.voidupdateNClob(String columnName, NClob nClob) voidupdateNString(int columnIndex, String nString) voidupdateNString(String columnName, String nString) voidupdateNull(int column) voidupdateNull(String columnName) voidupdateObject(int column, Object x) voidupdateObject(int column, Object x, int scale) voidupdateObject(String columnName, Object x) voidupdateObject(String columnName, Object x, int scale) voidvoidvoidvoidupdateRowId(int columnIndex, RowId x) voidupdateRowId(String columnName, RowId x) private booleanvoidupdateShort(int column, short x) voidupdateShort(String columnName, short x) voidupdateSQLXML(int columnIndex, SQLXML xmlObject) voidupdateSQLXML(String columnName, SQLXML xmlObject) voidupdateString(int column, String x) voidupdateString(String columnName, String x) voidupdateTime(int column, Time x) voidupdateTime(String columnName, Time x) voidupdateTimestamp(int column, Timestamp x) voidupdateTimestamp(String columnName, Timestamp x) private voiduseStreamOrLOB(int columnIndex) Mark a column as already having a stream or LOB accessed from it.private booleanwasNonNullSensitiveUpdate(int column) booleanwasNull()private booleanwasNullSensitiveUpdate(int column) (package private) voidprivate booleanabstract voidwriteCursorClose_(Section section) private voidabstract voidwriteFetch_(Section section) private voidwriteInsertRow(boolean chainedWritesFollowingSetLob) abstract voidwritePositioningFetch_(Section section, int orientation, long rowToFetch) abstract voidwriteScrollableFetch_(Section section, int fetchSize, int orientation, long rowToFetch, boolean resetQueryBlocks) private voidwriteUpdateRow(boolean chainedWritesFollowingSetLob) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResultSet
updateObject, updateObject, updateObject, updateObject
-
Field Details
-
statement_
-
outerStatement_
ClientStatement outerStatement_ -
resultSetMetaData_
-
warnings_
-
cursor_
-
lobState
Tracker object for LOB state, used to free locators on the server. -
agent_
-
generatedSection_
-
currentStream
-
currentReader
-
connection_
-
scrollOrientation_relative__
public static final int scrollOrientation_relative__- See Also:
-
scrollOrientation_absolute__
public static final int scrollOrientation_absolute__- See Also:
-
scrollOrientation_after__
public static final int scrollOrientation_after__- See Also:
-
scrollOrientation_before__
public static final int scrollOrientation_before__- See Also:
-
scrollOrientation_prior__
private static final int scrollOrientation_prior__- See Also:
-
scrollOrientation_first__
private static final int scrollOrientation_first__- See Also:
-
scrollOrientation_last__
private static final int scrollOrientation_last__- See Also:
-
scrollOrientation_current__
private static final int scrollOrientation_current__- See Also:
-
scrollOrientation_next__
private static final int scrollOrientation_next__- See Also:
-
sensitivity_unknown__
public static final int sensitivity_unknown__- See Also:
-
sensitivity_insensitive__
public static final int sensitivity_insensitive__- See Also:
-
sensitivity_sensitive_static__
public static final int sensitivity_sensitive_static__- See Also:
-
sensitivity_sensitive_dynamic__
public static final int sensitivity_sensitive_dynamic__- See Also:
-
WAS_NULL
private static final int WAS_NULL- See Also:
-
WAS_NOT_NULL
private static final int WAS_NOT_NULL- See Also:
-
WAS_NULL_UNSET
private static final int WAS_NULL_UNSET- See Also:
-
DDM_RETURN_CALLER
private static final byte DDM_RETURN_CALLER- See Also:
-
DDM_RETURN_CLIENT
private static final byte DDM_RETURN_CLIENT- See Also:
-
wasNull_
private int wasNull_ -
rsReturnability_
private byte rsReturnability_ -
openOnClient_
boolean openOnClient_ -
openOnServer_
public boolean openOnServer_ -
queryTerminatingSqlca_
-
autoCommitted_
boolean autoCommitted_ -
isValidCursorPosition_
private boolean isValidCursorPosition_ -
savedIsValidCursorPosition_
private boolean savedIsValidCursorPosition_ -
cursorHold_
public boolean cursorHold_ -
queryInstanceIdentifier_
public long queryInstanceIdentifier_ -
resultSetType_
public int resultSetType_ -
resultSetConcurrency_
int resultSetConcurrency_ -
resultSetHoldability_
int resultSetHoldability_ -
scrollable_
public boolean scrollable_ -
sensitivity_
public int sensitivity_ -
isRowsetCursor_
public boolean isRowsetCursor_ -
isBeforeFirst_
private boolean isBeforeFirst_ -
isAfterLast_
private boolean isAfterLast_ -
isFirst_
private boolean isFirst_ -
isLast_
private boolean isLast_ -
rowsetSqlca_
-
suggestedFetchSize_
protected int suggestedFetchSize_ -
fetchSize_
public int fetchSize_ -
fetchDirection_
private int fetchDirection_ -
rowCount_
private long rowCount_ -
absolutePosition_
private long absolutePosition_ -
firstRowInRowset_
private long firstRowInRowset_ -
lastRowInRowset_
private long lastRowInRowset_ -
currentRowInRowset_
private long currentRowInRowset_ -
isOnInsertRow_
private boolean isOnInsertRow_ -
isOnCurrentRow_
private boolean isOnCurrentRow_ -
rowsReceivedInCurrentRowset_
public int rowsReceivedInCurrentRowset_ -
rowsYetToBeReceivedForRowset_
public int rowsYetToBeReceivedForRowset_ -
updatedColumns_
-
columnUpdated_
private boolean[] columnUpdated_ -
preparedStatementForUpdate_
-
preparedStatementForDelete_
-
preparedStatementForInsert_
-
cursorUnpositionedOnServer_
private boolean cursorUnpositionedOnServer_ -
maxRows_
private long maxRows_ -
columnUsedFlags_
private boolean[] columnUsedFlags_Indicates which columns have been fetched as a stream or as a LOB for a row. Created on-demand by a getXXXStream or a get[BC]lob call. Note that we only track columns that can be accessed as a stream or a LOB object. -
listenToUnitOfWork_
private boolean listenToUnitOfWork_
-
-
Constructor Details
-
ClientResultSet
protected ClientResultSet(Agent agent, ClientStatement statement, Cursor cursor, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
-
Method Details
-
next
- Specified by:
nextin interfaceResultSet- Throws:
SQLException
-
nextX
- Throws:
SqlException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet- Throws:
SQLException
-
closeX
- Throws:
SqlException
-
closeStatementOnCompletion
private void closeStatementOnCompletion()Close Statement if it is set to closeOnCompletion -
nullDataForGC
private void nullDataForGC() -
flowCloseAndAutoCommitIfNotAutoCommitted
- Throws:
SqlException
-
writeCloseAndAutoCommit
- Throws:
SqlException
-
readCloseAndAutoCommit
- Throws:
SqlException
-
writeClose
- Throws:
SqlException
-
readClose
- Throws:
SqlException
-
readAutoCommitIfNotAutoCommitted
- Throws:
SqlException
-
wasNull
- Specified by:
wasNullin interfaceResultSet- Throws:
SQLException
-
getBoolean
- Specified by:
getBooleanin interfaceResultSet- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceResultSet- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceResultSet- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceResultSet- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceResultSet- Throws:
SQLException
-
getFloat
- Specified by:
getFloatin interfaceResultSet- Throws:
SQLException
-
getDouble
- Specified by:
getDoublein interfaceResultSet- Throws:
SQLException
-
getBigDecimal
Deprecated.- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
createCalendar
-
convertFromDefaultCalendar
Convert a date originally set using the default calendar to a value representing the same date in a different calendar.- Parameters:
date- the date to convertcal- the calendar to convert it to- Returns:
- a date object that represents the date in
cal
-
convertFromDefaultCalendar
Convert a time originally set using the default calendar to a value representing the same time in a different calendar.- Parameters:
time- the time to convertcal- the calendar to convert it to- Returns:
- a time object that represents the time in
cal
-
convertFromDefaultCalendar
Convert a timestamp originally set using the default calendar to a value representing the same timestamp in a different calendar.- Parameters:
ts- the timestamp to convertcal- the calendar to convert it to- Returns:
- a timestamp object that represents the timestamp in
cal
-
getString
- Specified by:
getStringin interfaceResultSet- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceResultSet- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceResultSet- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceResultSet- Throws:
SQLException
-
getUnicodeStream
Deprecated.Retrieve the value of the specified column as a stream of two-byte Unicode characters. Deprecated in JDBC 2.0 and this method will just throw a feature not implemented exception.- Specified by:
getUnicodeStreamin interfaceResultSet- Parameters:
column- the column to retrieve as a Unicode stream- Throws:
SQLException- throws feature not implemented
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getBlob
- Specified by:
getBlobin interfaceResultSet- Throws:
SQLException
-
getClob
- Specified by:
getClobin interfaceResultSet- Throws:
SQLException
-
getRef
- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObjectX
- Throws:
SqlException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
wasNonNullSensitiveUpdate
private boolean wasNonNullSensitiveUpdate(int column) -
wasNullSensitiveUpdate
private boolean wasNullSensitiveUpdate(int column) -
setWasNull
private void setWasNull(int column) -
isNull
private boolean isNull(int column) -
getBoolean
- Specified by:
getBooleanin interfaceResultSet- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceResultSet- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceResultSet- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceResultSet- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceResultSet- Throws:
SQLException
-
getFloat
- Specified by:
getFloatin interfaceResultSet- Throws:
SQLException
-
getDouble
- Specified by:
getDoublein interfaceResultSet- Throws:
SQLException
-
getBigDecimal
Deprecated.- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
getString
- Specified by:
getStringin interfaceResultSet- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceResultSet- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceResultSet- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceResultSet- Throws:
SQLException
-
getUnicodeStream
Deprecated.- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getBlob
- Specified by:
getBlobin interfaceResultSet- Throws:
SQLException
-
getClob
- Specified by:
getClobin interfaceResultSet- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceResultSet- Throws:
SQLException
-
getRef
- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getWarnings
Returns the firstSQLWarningreported on thisResultSetobject, ornullif there are no warnings. Subsequent warnings are chained on the returned object.- Specified by:
getWarningsin interfaceResultSet- Returns:
- the first
SQLWarningin the chain, ornullif no warnings are reported - Throws:
SQLException- if a database error occurs or the result set is closed
-
clearWarnings
Clear all warnings on thisResultSetand make subsequent calls togetWarnings()returnnulluntil a new warning is reported.- Specified by:
clearWarningsin interfaceResultSet- Throws:
SQLException- if a database error occurs or the result set is closed
-
clearWarningsX
private void clearWarningsX() -
getCursorName
- Specified by:
getCursorNamein interfaceResultSet- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfaceResultSet- Throws:
SQLException
-
getMetaDataX
- Throws:
SqlException
-
findColumn
- Specified by:
findColumnin interfaceResultSet- Throws:
SQLException
-
findColumnX
- Throws:
SqlException
-
isBeforeFirst
- Specified by:
isBeforeFirstin interfaceResultSet- Throws:
SQLException
-
isBeforeFirstX
- Throws:
SqlException
-
isAfterLast
- Specified by:
isAfterLastin interfaceResultSet- Throws:
SQLException
-
isAfterLastX
- Throws:
SqlException
-
isFirst
- Specified by:
isFirstin interfaceResultSet- Throws:
SQLException
-
isFirstX
private boolean isFirstX() -
isLast
- Specified by:
isLastin interfaceResultSet- Throws:
SQLException
-
isLastX
- Throws:
SqlException
-
beforeFirst
- Specified by:
beforeFirstin interfaceResultSet- Throws:
SQLException
-
beforeFirstX
- Throws:
SqlException
-
afterLast
- Specified by:
afterLastin interfaceResultSet- Throws:
SQLException
-
afterLastX
- Throws:
SqlException
-
first
- Specified by:
firstin interfaceResultSet- Throws:
SQLException
-
firstX
- Throws:
SqlException
-
last
- Specified by:
lastin interfaceResultSet- Throws:
SQLException
-
lastX
- Throws:
SqlException
-
getRow
- Specified by:
getRowin interfaceResultSet- Throws:
SQLException
-
getRowX
- Throws:
SqlException
-
absolute
- Specified by:
absolutein interfaceResultSet- Throws:
SQLException
-
absoluteX
- Throws:
SqlException
-
relative
- Specified by:
relativein interfaceResultSet- Throws:
SQLException
-
relativeX
- Throws:
SqlException
-
previous
- Specified by:
previousin interfaceResultSet- Throws:
SQLException
-
previousX
- Throws:
SqlException
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceResultSet- Throws:
SQLException
-
getFetchDirection
- Specified by:
getFetchDirectionin interfaceResultSet- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceResultSet- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSizein interfaceResultSet- Throws:
SQLException
-
getType
- Specified by:
getTypein interfaceResultSet- Throws:
SQLException
-
getConcurrency
- Specified by:
getConcurrencyin interfaceResultSet- Throws:
SQLException
-
rowUpdated
- Specified by:
rowUpdatedin interfaceResultSet- Throws:
SQLException
-
rowInserted
- Specified by:
rowInsertedin interfaceResultSet- Throws:
SQLException
-
rowDeleted
- Specified by:
rowDeletedin interfaceResultSet- Throws:
SQLException
-
updateNull
- Specified by:
updateNullin interfaceResultSet- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBooleanin interfaceResultSet- Throws:
SQLException
-
updateByte
- Specified by:
updateBytein interfaceResultSet- Throws:
SQLException
-
updateShort
- Specified by:
updateShortin interfaceResultSet- Throws:
SQLException
-
updateInt
- Specified by:
updateIntin interfaceResultSet- Throws:
SQLException
-
updateLong
- Specified by:
updateLongin interfaceResultSet- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloatin interfaceResultSet- Throws:
SQLException
-
updateDouble
- Specified by:
updateDoublein interfaceResultSet- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimalin interfaceResultSet- Throws:
SQLException
-
updateDate
- Specified by:
updateDatein interfaceResultSet- Throws:
SQLException
-
updateTime
- Specified by:
updateTimein interfaceResultSet- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestampin interfaceResultSet- Throws:
SQLException
-
updateString
- Specified by:
updateStringin interfaceResultSet- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytesin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNull
- Specified by:
updateNullin interfaceResultSet- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBooleanin interfaceResultSet- Throws:
SQLException
-
updateByte
- Specified by:
updateBytein interfaceResultSet- Throws:
SQLException
-
updateShort
- Specified by:
updateShortin interfaceResultSet- Throws:
SQLException
-
updateInt
- Specified by:
updateIntin interfaceResultSet- Throws:
SQLException
-
updateLong
- Specified by:
updateLongin interfaceResultSet- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloatin interfaceResultSet- Throws:
SQLException
-
updateDouble
- Specified by:
updateDoublein interfaceResultSet- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimalin interfaceResultSet- Throws:
SQLException
-
updateDate
- Specified by:
updateDatein interfaceResultSet- Throws:
SQLException
-
updateTime
- Specified by:
updateTimein interfaceResultSet- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestampin interfaceResultSet- Throws:
SQLException
-
updateString
- Specified by:
updateStringin interfaceResultSet- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytesin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
insertRow
- Specified by:
insertRowin interfaceResultSet- Throws:
SQLException
-
insertRowX
- Throws:
SqlException
-
updateRow
- Specified by:
updateRowin interfaceResultSet- Throws:
SQLException
-
updateRowX
- Throws:
SqlException
-
deleteRow
- Specified by:
deleteRowin interfaceResultSet- Throws:
SQLException
-
deleteRowX
- Throws:
SqlException
-
refreshRow
- Specified by:
refreshRowin interfaceResultSet- Throws:
SQLException
-
refreshRowX
- Throws:
SqlException
-
cancelRowUpdates
- Specified by:
cancelRowUpdatesin interfaceResultSet- Throws:
SQLException
-
moveToInsertRow
- Specified by:
moveToInsertRowin interfaceResultSet- Throws:
SQLException
-
moveToCurrentRow
- Specified by:
moveToCurrentRowin interfaceResultSet- Throws:
SQLException
-
moveToCurrentRowX
Moves off the insert row if positioned there, and checks the current row for releasable LOB locators if positioned on a valid data row.- Throws:
SqlException- if releasing a LOB locator fails
-
getStatement
Retrieves theStatementobject that produced this object, ornullif theResultSetwas not produced by aStatementobject.- Specified by:
getStatementin interfaceResultSet- Returns:
- the
Statementthat produced this object ornull - Throws:
SQLException- if a database error occurs or the result set is closed
-
getURL
- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
getURL
- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
updateRef
- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
updateRef
- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
updateBlob
Updates the designated column with ajava.sql.Blobvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateBlob
Updates the designated column with ajava.sql.Blobvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnName- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateBlob
Updates the designated column using the given input stream, which will have the specified number of bytes. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- An object that contains the data to set the parameter value to.length- the number of bytes in the parameter data.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateBlob
Updates the designated column using the given input stream, which will have the specified number of bytes. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnName- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- An object that contains the data to set the parameter value to.length- the number of bytes in the parameter data.- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateArray
- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException
-
updateArray
- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException
-
repositionScrollableResultSetBeforeJDBC1PositionedUpdateDelete
- Throws:
SqlException
-
flowPositioningFetch
- Throws:
DisconnectException
-
positionToCurrentRowAndUpdate
- Throws:
SqlException
-
insert
- Throws:
SqlException
-
update
- Throws:
SqlException
-
positionToCurrentRowAndDelete
- Throws:
SqlException
-
delete
- Throws:
SqlException
-
setRowsetAfterLastEvent
- Throws:
SqlException
-
setRowsetBeforeFirstEvent
- Throws:
SqlException
-
setRowsetNoRowsEvent
private void setRowsetNoRowsEvent() -
isServersCursorPositionBeforeFirst
- Throws:
SqlException
-
isServerCursorPositionAfterLast
private boolean isServerCursorPositionAfterLast() -
setValidCursorPosition
public void setValidCursorPosition(boolean isValidCursorPosition) -
moveToAfterLast
- Throws:
DisconnectException
-
moveToBeforeFirst
- Throws:
DisconnectException
-
writeInsertRow
- Throws:
SQLException
-
writeUpdateRow
- Throws:
SQLException
-
writeDeleteRow
- Throws:
SQLException
-
readInsertRow
- Throws:
DisconnectExceptionSqlException
-
readUpdateRow
- Throws:
DisconnectExceptionSqlException
-
readDeleteRow
- Throws:
DisconnectExceptionSqlException
-
listenToUnitOfWork
public void listenToUnitOfWork()- Specified by:
listenToUnitOfWorkin interfaceUnitOfWorkListener
-
completeLocalCommit
- Specified by:
completeLocalCommitin interfaceUnitOfWorkListener
-
completeLocalRollback
- Specified by:
completeLocalRollbackin interfaceUnitOfWorkListener
-
nullOutReferenceInStatement
private void nullOutReferenceInStatement() -
markClosed
void markClosed()Mark this ResultSet as closed. The ResultSet will not be removed from the commit and rollback listeners list inConnection. -
markClosed
void markClosed(boolean removeListener) Mark this ResultSet as closed.- Parameters:
removeListener- if true the ResultSet will be removed from the commit and rollback listeners list inConnection.
-
markClosedOnServer
public void markClosedOnServer()Mark this ResultSet as closed on the server. -
markAutoCommitted
void markAutoCommitted() -
earlyCloseComplete
- Specified by:
earlyCloseCompletein interfaceResultSetCallbackInterface
-
completeSqlca
- Specified by:
completeSqlcain interfaceResultSetCallbackInterface
-
setRowCountEvent
- Throws:
DisconnectException
-
accumulateWarning
- Specified by:
accumulateWarningin interfaceResultSetCallbackInterface
-
rowCountIsUnknown
boolean rowCountIsUnknown() -
updateColumn
-
buildInsertString
- Throws:
SqlException
-
buildUpdateString
- Throws:
SqlException
-
buildDeleteString
- Throws:
SqlException
-
getTableName
- Throws:
SqlException
-
getServerCursorName
- Throws:
SqlException
-
getPreparedStatementForInsert
- Throws:
SqlException
-
getPreparedStatementForUpdate
- Throws:
SqlException
-
getPreparedStatementForDelete
- Throws:
SqlException
-
resetUpdatedColumnsForInsert
private final void resetUpdatedColumnsForInsert() -
resetUpdatedColumns
private final void resetUpdatedColumns() -
getRowUncast
private final long getRowUncast() -
checkGetterPreconditions
- Throws:
SqlException
-
checkUpdatePreconditions
- Throws:
SqlException
-
checkForValidColumnIndex
- Throws:
SqlException
-
checkForClosedResultSet
- Throws:
SqlException
-
checkForUpdatableResultSet
- Throws:
SqlException
-
checkForValidCursorPosition
- Throws:
SqlException
-
checkPositionedOnPlainRow
- Throws:
SqlException
-
checkThatResultSetTypeIsScrollable
- Throws:
SqlException
-
checkThatResultSetIsNotDynamic
- Throws:
SqlException
-
resultSetContainsNoRows
- Throws:
SqlException
-
rowIsInCurrentRowset
- Throws:
SqlException
-
rowIsInCurrentRowset
private boolean rowIsInCurrentRowset(long rowNumber) -
markPositionedUpdateDeletePreparedStatementsClosed
private void markPositionedUpdateDeletePreparedStatementsClosed() -
updateColumnInfoFromCache
private void updateColumnInfoFromCache() -
checkAndThrowReceivedQueryTerminatingException
- Throws:
SqlException
-
parseScrollableRowset
- Throws:
SqlException
-
getRSReturnability
public byte getRSReturnability() -
setRSReturnability
public void setRSReturnability(byte rsReturnability) -
getRowCount
- Throws:
SqlException
-
flowGetRowset
- Throws:
SqlException
-
getNextRowset
- Throws:
SqlException
-
adjustNextRowset
private void adjustNextRowset() -
getPreviousRowset
- Throws:
SqlException
-
adjustPreviousRowset
private void adjustPreviousRowset(int orientation, long rowNumber, boolean isAfterLastRow) -
getAbsoluteRowset
- Throws:
SqlException
-
adjustAbsoluteRowset
private void adjustAbsoluteRowset(long rowNumber) -
getRelativeRowset
- Throws:
SqlException
-
adjustRelativeRowset
private void adjustRelativeRowset(long rowNumber) -
getFirstRowset
- Throws:
SqlException
-
adjustFirstRowset
private void adjustFirstRowset() -
getLastRowset
- Throws:
SqlException
-
adjustLastRowset
private void adjustLastRowset(long row) -
getRefreshRowset
- Throws:
SqlException
-
adjustRefreshRowset
private void adjustRefreshRowset() -
setAbsolutePositionBasedOnAllRowsReceived
private void setAbsolutePositionBasedOnAllRowsReceived() -
writeFetch_
- Throws:
SqlException
-
readFetch_
- Throws:
SqlException
-
writeScrollableFetch_
public abstract void writeScrollableFetch_(Section section, int fetchSize, int orientation, long rowToFetch, boolean resetQueryBlocks) throws SqlException - Throws:
SqlException
-
readScrollableFetch_
- Throws:
SqlException
-
writePositioningFetch_
public abstract void writePositioningFetch_(Section section, int orientation, long rowToFetch) throws SqlException - Throws:
SqlException
-
readPositioningFetch_
- Throws:
SqlException
-
writeCursorClose_
- Throws:
SqlException
-
readCursorClose_
- Throws:
SqlException
-
parseRowset_
- Throws:
SqlException
-
setFetchSize_
public abstract void setFetchSize_(int rows) -
preClose_
Method that is invoked bycloseX()before the result set is actually being closed. Subclasses may override this method if work needs to be done before closing.- Throws:
SqlException
-
getConnectionCallbackInterface
- Specified by:
getConnectionCallbackInterfacein interfaceResultSetCallbackInterface
-
getStatementCallbackInterface
- Specified by:
getStatementCallbackInterfacein interfaceResultSetCallbackInterface
-
expandRowsetSqlca
public void expandRowsetSqlca() -
checkRowsetSqlca
- Throws:
SqlException
-
checkRowsetSqlca
- Throws:
SqlException
-
resetRowsetFlags
private void resetRowsetFlags() -
resetRowsetSqlca
private void resetRowsetSqlca() -
createCloseFilterInputStream
- Throws:
SqlException
-
closeOpenStreams
Closes the current stream, if there is one.Note that streams are implicitly closed when the next value is fetched.
- Throws:
SqlException- if closing the stream fails
-
useStreamOrLOB
Mark a column as already having a stream or LOB accessed from it. If the column was already accessed, throw an exception.- Parameters:
columnIndex- 1-based column index- Throws:
SQLException- if the column has already been accessedSqlException
-
checkLOBMultiCall
Checks if a stream or a LOB object has already been created for the specified LOB column.Accessing a LOB column more than once is not forbidden by the JDBC specification, but the Java API states that for maximum portability, result set columns within each row should be read in left-to-right order, and each column should be read only once. The restriction was implemented in Derby due to complexities with the positioning of store streams when the user was given multiple handles to the stream.
- Parameters:
columnIndex- 1-based index of the LOB column- Throws:
SqlException- if the column has already been accessed
-
unuseStreamsAndLOBs
private void unuseStreamsAndLOBs()Clears the flags for used columns, typically invoked when changing the result set position. -
jdbc3MethodNotSupported
-
getHoldability
Retrieves the holdability for thisResultSetobject.- Specified by:
getHoldabilityin interfaceResultSet- Returns:
- either
ResultSet.HOLD_CURSORS_OVER_COMMITorResultSet.CLOSE_CURSORS_AT_COMMIT - Throws:
SQLException- if a database error occurs
-
isClosed
Checks whether thisResultSetobject has been closed, either automatically or becauseclose()has been called.- Specified by:
isClosedin interfaceResultSet- Returns:
trueif theResultSetis closed,falseotherwise- Throws:
SQLException- if a database error occurs
-
updateAsciiStream
Updates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateAsciiStream
Update a column with an ascii stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- if a database-access error occurs
-
updateBinaryStream
Updates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateBinaryStream
Update a column with a binary stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- if a database-access error occurs
-
updateBlob
Updates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateCharacterStream
Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...reader- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateCharacterStream
Update a column with a character stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- if a database-access error occurs
-
updateClob
Updates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...reader- an object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateAsciiStream
Updates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnName- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateAsciiStream
Update a column with an ascii stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column valuelength- of the stream- Throws:
SQLException- if a database-access error occurs
-
updateBinaryStream
Updates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateBinaryStream
Update a column with a binary stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column valuelength- of the stream- Throws:
SQLException- if a database-access error occurs
-
updateBlob
Updates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateCharacterStream
Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateCharacterStream
public void updateCharacterStream(String columnName, Reader reader, long length) throws SQLException Update a column with a character stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnName- the name of the columnreader- the new column valuelength- length of the stream- Throws:
SQLException- if a database-access error occurs
-
updateClob
Updates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- an object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateClob
Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method
-
updateClob
Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnName- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method
-
updateClob
Updates the designated column with ajava.sql.Clobvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
updateClob
Updates the designated column with ajava.sql.Clobvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result set
-
markLOBAsPublished
public final void markLOBAsPublished(int index) Marks the LOB at the specified column as published.When a LOB is marked as published, the release mechanism will not be invoked by the result set. It is expected that the code accessing the LOB releases the locator when it is done with the LOB, or that the commit/rollback handles the release.
- Parameters:
index- 1-based column index
-
createLOBColumnTracker
final void createLOBColumnTracker()Initializes the LOB state tracker.The state tracker is used to free LOB locators on the server. If the server doesn't support locators, or there are no LOBs in the result set, a no-op tracker will be used.
-
getNCharacterStream
- Specified by:
getNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getNString
- Specified by:
getNStringin interfaceResultSet- Throws:
SQLException
-
getNString
- Specified by:
getNStringin interfaceResultSet- Throws:
SQLException
-
getRowId
- Specified by:
getRowIdin interfaceResultSet- Throws:
SQLException
-
getRowId
- Specified by:
getRowIdin interfaceResultSet- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowIdin interfaceResultSet- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowIdin interfaceResultSet- Throws:
SQLException
-
updateNString
- Specified by:
updateNStringin interfaceResultSet- Throws:
SQLException
-
updateNString
- Specified by:
updateNStringin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
getNClob
- Specified by:
getNClobin interfaceResultSet- Throws:
SQLException
-
getNClob
- Specified by:
getNClobin interfaceResultSet- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXMLin interfaceResultSet- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXMLin interfaceResultSet- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXMLin interfaceResultSet- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXMLin interfaceResultSet- Throws:
SQLException
-
isWrapperFor
Returns false unlessinterfacesis implemented- Specified by:
isWrapperForin interfaceWrapper- Parameters:
interfaces- a Class defining an interface.- Returns:
- true if this implements the interface or directly or indirectly wraps an object that does.
- Throws:
SQLException- if an error occurs while determining whether this is a wrapper for an object with the given interface.
-
unwrap
Returnsthisif this class implements the interface- Specified by:
unwrapin interfaceWrapper- Parameters:
interfaces- a Class defining an interface- Returns:
- an object that implements the interface
- Throws:
SQLException- if no object if found that implements the interface
-
updateNClob
Updates the designated column with a java.sql.NClob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnIndex- - the first column is 1, the second is 2x- - the new column value- Throws:
SQLException- Feature not implemented for now.
-
updateNClob
Updates the designated column with a java.sql.NClob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.- Parameters:
columnName- - the name of the Clob columnx- - the new column value- Throws:
SQLException- Feature not implemented for now.
-
updateNClob
Updates the designated column with a java.sql.NClob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnName- - the name of the Clob columnx- - the new column value- Throws:
SQLException- Feature not implemented for now.
-
getObject
Retrieve the column as an object of the desired type.- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
mismatchException
- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-