Package com.mysql.cj.jdbc.result
Class UpdatableResultSet
java.lang.Object
com.mysql.cj.protocol.a.result.NativeResultset
com.mysql.cj.jdbc.result.ResultSetImpl
com.mysql.cj.jdbc.result.UpdatableResultSet
- All Implemented Interfaces:
ResultSetInternalMethods,ProtocolEntity,Resultset,ResultsetRowsOwner,WarningListener,java.lang.AutoCloseable,java.sql.ResultSet,java.sql.Wrapper
public class UpdatableResultSet extends ResultSetImpl
A result set that is updatable.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mysql.cj.protocol.Resultset
Resultset.Concurrency, Resultset.Type -
Field Summary
Fields Modifier and Type Field Description protected booleandoingUpdatesAre we in the middle of doing updates to the current row?protected ClientPreparedStatementinserterPreparedStatement used to insert dataprotected ClientPreparedStatementupdaterPreparedStatement used to delete dataFields inherited from class com.mysql.cj.jdbc.result.ResultSetImpl
columnUsed, connection, currentRow, db, emulateLocators, eventSink, fetchDirection, fetchSize, firstCharOfQuery, gatherPerfMetrics, isClosed, resultSetConcurrency, resultSetType, session, useUsageAdvisor, warningChain, wrapperStatement, yearIsDateTypeFields inherited from class com.mysql.cj.protocol.a.result.NativeResultset
columnDefinition, nextResultset, resultId, rowData, serverInfo, thisRow, updateCount, updateId -
Constructor Summary
Constructors Constructor Description UpdatableResultSet(ResultsetRows tuples, JdbcConnection conn, StatementImpl creatorStmt)Creates a new ResultSet object. -
Method Summary
Modifier and Type Method Description booleanabsolute(int row)voidafterLast()voidbeforeFirst()voidcancelRowUpdates()protected voidcheckRowPos()Ensures that the cursor is positioned on a valid row and that the result set is not closedvoidcheckUpdatability()Is this ResultSet updatable?voiddeleteRow()booleanfirst()protected voidgenerateStatements()Figure out whether or not this ResultSet is updatable, and if so, generate the PreparedStatements to support updates.intgetConcurrency()intgetHoldability()java.io.ReadergetNCharacterStream(int columnIndex)java.io.ReadergetNCharacterStream(java.lang.String columnLabel)java.sql.NClobgetNClob(int columnIndex)java.sql.NClobgetNClob(java.lang.String columnLabel)java.lang.StringgetNString(int columnIndex)java.lang.StringgetNString(java.lang.String columnLabel)java.sql.SQLXMLgetSQLXML(int columnIndex)java.sql.SQLXMLgetSQLXML(java.lang.String columnLabel)voidinsertRow()booleanisAfterLast()booleanisBeforeFirst()booleanisClosed()booleanisFirst()booleanisLast()booleanisWrapperFor(java.lang.Class<?> iface)booleanlast()voidmoveToCurrentRow()voidmoveToInsertRow()booleannext()booleanprev()The prev method is not part of JDBC, but because of the architecture of this driver it is possible to move both forward and backward within the result set.booleanprevious()voidrealClose(boolean calledExplicitly)Closes this ResultSet and releases resources.voidrefreshRow()booleanrelative(int rows)booleanrowDeleted()booleanrowInserted()booleanrowUpdated()voidsetResultSetConcurrency(int concurrencyFlag)Sets the concurrencyprotected voidsyncUpdate()Reset UPDATE prepared statement to value in current row.<T> Tunwrap(java.lang.Class<T> iface)voidupdateAsciiStream(int columnIndex, java.io.InputStream x)voidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)voidupdateAsciiStream(int columnIndex, java.io.InputStream x, long length)voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x)voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length)voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length)voidupdateBigDecimal(int columnIndex, java.math.BigDecimal x)voidupdateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x)voidupdateBinaryStream(int columnIndex, java.io.InputStream x)voidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)voidupdateBinaryStream(int columnIndex, java.io.InputStream x, long length)voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x)voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length)voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length)voidupdateBlob(int columnIndex, java.io.InputStream inputStream)voidupdateBlob(int columnIndex, java.io.InputStream inputStream, long length)voidupdateBlob(int columnIndex, java.sql.Blob blob)voidupdateBlob(java.lang.String columnLabel, java.io.InputStream inputStream)voidupdateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length)voidupdateBlob(java.lang.String columnLabel, java.sql.Blob blob)voidupdateBoolean(int columnIndex, boolean x)voidupdateBoolean(java.lang.String columnLabel, boolean x)voidupdateByte(int columnIndex, byte x)voidupdateByte(java.lang.String columnLabel, byte x)voidupdateBytes(int columnIndex, byte[] x)voidupdateBytes(java.lang.String columnLabel, byte[] x)voidupdateCharacterStream(int columnIndex, java.io.Reader x)voidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)voidupdateCharacterStream(int columnIndex, java.io.Reader x, long length)voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader)voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length)voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateClob(int columnIndex, java.io.Reader reader)voidupdateClob(int columnIndex, java.io.Reader reader, long length)voidupdateClob(int columnIndex, java.sql.Clob clob)voidupdateClob(java.lang.String columnLabel, java.io.Reader reader)voidupdateClob(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateClob(java.lang.String columnLabel, java.sql.Clob clob)voidupdateDate(int columnIndex, java.sql.Date x)voidupdateDate(java.lang.String columnLabel, java.sql.Date x)voidupdateDouble(int columnIndex, double x)voidupdateDouble(java.lang.String columnLabel, double x)voidupdateFloat(int columnIndex, float x)voidupdateFloat(java.lang.String columnLabel, float x)voidupdateInt(int columnIndex, int x)voidupdateInt(java.lang.String columnLabel, int x)voidupdateLong(int columnIndex, long x)voidupdateLong(java.lang.String columnLabel, long x)voidupdateNCharacterStream(int columnIndex, java.io.Reader x)voidupdateNCharacterStream(int columnIndex, java.io.Reader x, long length)voidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader)voidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateNClob(int columnIndex, java.io.Reader reader)voidupdateNClob(int columnIndex, java.io.Reader reader, long length)voidupdateNClob(int columnIndex, java.sql.NClob nClob)voidupdateNClob(java.lang.String columnLabel, java.io.Reader reader)voidupdateNClob(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateNClob(java.lang.String columnLabel, java.sql.NClob nClob)voidupdateNString(int columnIndex, java.lang.String x)voidupdateNString(java.lang.String columnLabel, java.lang.String x)voidupdateNull(int columnIndex)voidupdateNull(java.lang.String columnLabel)voidupdateObject(int columnIndex, java.lang.Object x)voidupdateObject(int columnIndex, java.lang.Object x, int scale)voidupdateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType)voidupdateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength)voidupdateObject(java.lang.String columnLabel, java.lang.Object x)voidupdateObject(java.lang.String columnLabel, java.lang.Object x, int scale)voidupdateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType)voidupdateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength)protected voidupdateObjectInternal(int columnIndex, java.lang.Object x, java.lang.Integer targetType, int scaleOrLength)Internal setObject implementation.protected voidupdateObjectInternal(int columnIndex, java.lang.Object x, java.sql.SQLType targetType, int scaleOrLength)Internal setObject implementation.voidupdateRow()voidupdateShort(int columnIndex, short x)voidupdateShort(java.lang.String columnLabel, short x)voidupdateSQLXML(int columnIndex, java.sql.SQLXML xmlObject)voidupdateSQLXML(java.lang.String columnLabel, java.sql.SQLXML xmlObject)voidupdateString(int columnIndex, java.lang.String x)voidupdateString(java.lang.String columnLabel, java.lang.String x)voidupdateTime(int columnIndex, java.sql.Time x)voidupdateTime(java.lang.String columnLabel, java.sql.Time x)voidupdateTimestamp(int columnIndex, java.sql.Timestamp x)voidupdateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x)Methods inherited from class com.mysql.cj.jdbc.result.ResultSetImpl
checkClosed, checkColumnBounds, clearWarnings, close, closeOwner, findColumn, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConnection, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getExceptionInterceptor, getFetchDirection, getFetchSize, getFirstCharOfQuery, getFloat, getFloat, getInt, getInt, getLocalDate, getLocalDateTime, getLocalTime, getLong, getLong, getMetadata, getMetaData, getObject, getObject, getObject, getObject, getObject, getObject, getObjectStoredProc, getObjectStoredProc, getObjectStoredProc, getObjectStoredProc, getOwnerFetchSize, getOwningQuery, getOwningStatement, getOwningStatementFetchSize, getOwningStatementMaxRows, getOwningStatementServerId, getPointOfOrigin, getRef, getRef, getRow, getRowId, getRowId, getSession, getShort, getShort, getStatement, getString, getString, getSyncMutex, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getUtilCalendar, getWarnings, initializeWithMetadata, populateCachedMetaData, setFetchDirection, setFetchSize, setFirstCharOfQuery, setOwningStatement, setResultSetType, setServerInfo, setStatementUsedForFetchingRows, setWrapperStatement, toString, updateArray, updateArray, updateRef, updateRef, updateRowId, updateRowId, warningEncountered, wasNullMethods inherited from class com.mysql.cj.protocol.a.result.NativeResultset
clearNextResultset, getColumnDefinition, getNextResultset, getResultId, getRows, getServerInfo, getUpdateCount, getUpdateID, hasRows, initRowsWithMetadata, setColumnDefinition, setNextResultsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mysql.cj.protocol.Resultset
clearNextResultset, getColumnDefinition, getNextResultset, getResultId, getRows, getServerInfo, getUpdateCount, getUpdateID, hasRows, initRowsWithMetadata, setColumnDefinition, setNextResultset
-
Field Details
-
inserter
PreparedStatement used to insert data -
updater
PreparedStatement used to delete data -
doingUpdates
protected boolean doingUpdatesAre we in the middle of doing updates to the current row?
-
-
Constructor Details
-
UpdatableResultSet
public UpdatableResultSet(ResultsetRows tuples, JdbcConnection conn, StatementImpl creatorStmt) throws java.sql.SQLExceptionCreates a new ResultSet object.- Parameters:
tuples- actual row dataconn- the Connection that created us.creatorStmt- statement owning this result set- Throws:
java.sql.SQLException- if an error occurs
-
-
Method Details
-
absolute
public boolean absolute(int row) throws java.sql.SQLException- Specified by:
absolutein interfacejava.sql.ResultSet- Overrides:
absolutein classResultSetImpl- Throws:
java.sql.SQLException
-
afterLast
public void afterLast() throws java.sql.SQLException- Specified by:
afterLastin interfacejava.sql.ResultSet- Overrides:
afterLastin classResultSetImpl- Throws:
java.sql.SQLException
-
beforeFirst
public void beforeFirst() throws java.sql.SQLException- Specified by:
beforeFirstin interfacejava.sql.ResultSet- Overrides:
beforeFirstin classResultSetImpl- Throws:
java.sql.SQLException
-
cancelRowUpdates
public void cancelRowUpdates() throws java.sql.SQLException- Specified by:
cancelRowUpdatesin interfacejava.sql.ResultSet- Overrides:
cancelRowUpdatesin classResultSetImpl- Throws:
java.sql.SQLException
-
checkRowPos
protected void checkRowPos() throws java.sql.SQLExceptionDescription copied from class:ResultSetImplEnsures that the cursor is positioned on a valid row and that the result set is not closed- Overrides:
checkRowPosin classResultSetImpl- Throws:
java.sql.SQLException- if the result set is not in a valid state for traversal
-
checkUpdatability
public void checkUpdatability() throws java.sql.SQLExceptionIs this ResultSet updatable?- Throws:
java.sql.SQLException- if an error occurs
-
deleteRow
public void deleteRow() throws java.sql.SQLException- Specified by:
deleteRowin interfacejava.sql.ResultSet- Overrides:
deleteRowin classResultSetImpl- Throws:
java.sql.SQLException
-
first
public boolean first() throws java.sql.SQLException- Specified by:
firstin interfacejava.sql.ResultSet- Overrides:
firstin classResultSetImpl- Throws:
java.sql.SQLException
-
generateStatements
protected void generateStatements() throws java.sql.SQLExceptionFigure out whether or not this ResultSet is updatable, and if so, generate the PreparedStatements to support updates.- Throws:
java.sql.SQLException- if an error occursNotUpdatable- if result set was marked as not updatable
-
getConcurrency
public int getConcurrency() throws java.sql.SQLException- Specified by:
getConcurrencyin interfacejava.sql.ResultSet- Overrides:
getConcurrencyin classResultSetImpl- Throws:
java.sql.SQLException
-
insertRow
public void insertRow() throws java.sql.SQLException- Specified by:
insertRowin interfacejava.sql.ResultSet- Overrides:
insertRowin classResultSetImpl- Throws:
java.sql.SQLException
-
isAfterLast
public boolean isAfterLast() throws java.sql.SQLException- Specified by:
isAfterLastin interfacejava.sql.ResultSet- Overrides:
isAfterLastin classResultSetImpl- Throws:
java.sql.SQLException
-
isBeforeFirst
public boolean isBeforeFirst() throws java.sql.SQLException- Specified by:
isBeforeFirstin interfacejava.sql.ResultSet- Overrides:
isBeforeFirstin classResultSetImpl- Throws:
java.sql.SQLException
-
isFirst
public boolean isFirst() throws java.sql.SQLException- Specified by:
isFirstin interfacejava.sql.ResultSet- Overrides:
isFirstin classResultSetImpl- Throws:
java.sql.SQLException
-
isLast
public boolean isLast() throws java.sql.SQLException- Specified by:
isLastin interfacejava.sql.ResultSet- Overrides:
isLastin classResultSetImpl- Throws:
java.sql.SQLException
-
last
public boolean last() throws java.sql.SQLException- Specified by:
lastin interfacejava.sql.ResultSet- Overrides:
lastin classResultSetImpl- Throws:
java.sql.SQLException
-
moveToCurrentRow
public void moveToCurrentRow() throws java.sql.SQLException- Specified by:
moveToCurrentRowin interfacejava.sql.ResultSet- Overrides:
moveToCurrentRowin classResultSetImpl- Throws:
java.sql.SQLException
-
moveToInsertRow
public void moveToInsertRow() throws java.sql.SQLException- Specified by:
moveToInsertRowin interfacejava.sql.ResultSet- Overrides:
moveToInsertRowin classResultSetImpl- Throws:
java.sql.SQLException
-
next
public boolean next() throws java.sql.SQLException- Specified by:
nextin interfacejava.sql.ResultSet- Overrides:
nextin classResultSetImpl- Throws:
java.sql.SQLException
-
prev
public boolean prev() throws java.sql.SQLExceptionDescription copied from class:ResultSetImplThe prev method is not part of JDBC, but because of the architecture of this driver it is possible to move both forward and backward within the result set.If an input stream from the previous row is open, it is implicitly closed. The ResultSet's warning chain is cleared when a new row is read
- Overrides:
previn classResultSetImpl- Returns:
- true if the new current is valid; false if there are no more rows
- Throws:
java.sql.SQLException- if a database access error occurs
-
previous
public boolean previous() throws java.sql.SQLException- Specified by:
previousin interfacejava.sql.ResultSet- Overrides:
previousin classResultSetImpl- Throws:
java.sql.SQLException
-
realClose
public void realClose(boolean calledExplicitly) throws java.sql.SQLExceptionDescription copied from interface:ResultSetInternalMethodsCloses this ResultSet and releases resources.- Specified by:
realClosein interfaceResultSetInternalMethods- Overrides:
realClosein classResultSetImpl- Parameters:
calledExplicitly- was realClose called by the standard ResultSet.close() method, or was it closed internally by the driver?- Throws:
java.sql.SQLException- if an error occurs
-
refreshRow
public void refreshRow() throws java.sql.SQLException- Specified by:
refreshRowin interfacejava.sql.ResultSet- Overrides:
refreshRowin classResultSetImpl- Throws:
java.sql.SQLException
-
relative
public boolean relative(int rows) throws java.sql.SQLException- Specified by:
relativein interfacejava.sql.ResultSet- Overrides:
relativein classResultSetImpl- Throws:
java.sql.SQLException
-
rowDeleted
public boolean rowDeleted() throws java.sql.SQLException- Specified by:
rowDeletedin interfacejava.sql.ResultSet- Overrides:
rowDeletedin classResultSetImpl- Throws:
java.sql.SQLException
-
rowInserted
public boolean rowInserted() throws java.sql.SQLException- Specified by:
rowInsertedin interfacejava.sql.ResultSet- Overrides:
rowInsertedin classResultSetImpl- Throws:
java.sql.SQLException
-
rowUpdated
public boolean rowUpdated() throws java.sql.SQLException- Specified by:
rowUpdatedin interfacejava.sql.ResultSet- Overrides:
rowUpdatedin classResultSetImpl- Throws:
java.sql.SQLException
-
setResultSetConcurrency
public void setResultSetConcurrency(int concurrencyFlag)Description copied from class:ResultSetImplSets the concurrency- Overrides:
setResultSetConcurrencyin classResultSetImpl- Parameters:
concurrencyFlag- CONCUR_UPDATABLE or CONCUR_READONLY
-
syncUpdate
protected void syncUpdate() throws java.sql.SQLExceptionReset UPDATE prepared statement to value in current row. This_Row MUST point to current, valid row.- Throws:
java.sql.SQLException- if an error occurs
-
updateRow
public void updateRow() throws java.sql.SQLException- Specified by:
updateRowin interfacejava.sql.ResultSet- Overrides:
updateRowin classResultSetImpl- Throws:
java.sql.SQLException
-
getHoldability
public int getHoldability() throws java.sql.SQLException- Specified by:
getHoldabilityin interfacejava.sql.ResultSet- Overrides:
getHoldabilityin classResultSetImpl- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x) throws java.sql.SQLException- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Overrides:
updateBigDecimalin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws java.sql.SQLException- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Overrides:
updateBigDecimalin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.sql.Blob blob) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.sql.Blob blob) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(java.lang.String columnLabel, boolean x) throws java.sql.SQLException- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Overrides:
updateBooleanin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws java.sql.SQLException- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Overrides:
updateBooleanin classResultSetImpl- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(java.lang.String columnLabel, byte x) throws java.sql.SQLException- Specified by:
updateBytein interfacejava.sql.ResultSet- Overrides:
updateBytein classResultSetImpl- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(int columnIndex, byte x) throws java.sql.SQLException- Specified by:
updateBytein interfacejava.sql.ResultSet- Overrides:
updateBytein classResultSetImpl- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(java.lang.String columnLabel, byte[] x) throws java.sql.SQLException- Specified by:
updateBytesin interfacejava.sql.ResultSet- Overrides:
updateBytesin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(int columnIndex, byte[] x) throws java.sql.SQLException- Specified by:
updateBytesin interfacejava.sql.ResultSet- Overrides:
updateBytesin classResultSetImpl- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.sql.Clob clob) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.sql.Clob clob) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(java.lang.String columnLabel, java.sql.Date x) throws java.sql.SQLException- Specified by:
updateDatein interfacejava.sql.ResultSet- Overrides:
updateDatein classResultSetImpl- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(int columnIndex, java.sql.Date x) throws java.sql.SQLException- Specified by:
updateDatein interfacejava.sql.ResultSet- Overrides:
updateDatein classResultSetImpl- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(java.lang.String columnLabel, double x) throws java.sql.SQLException- Specified by:
updateDoublein interfacejava.sql.ResultSet- Overrides:
updateDoublein classResultSetImpl- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(int columnIndex, double x) throws java.sql.SQLException- Specified by:
updateDoublein interfacejava.sql.ResultSet- Overrides:
updateDoublein classResultSetImpl- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(java.lang.String columnLabel, float x) throws java.sql.SQLException- Specified by:
updateFloatin interfacejava.sql.ResultSet- Overrides:
updateFloatin classResultSetImpl- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(int columnIndex, float x) throws java.sql.SQLException- Specified by:
updateFloatin interfacejava.sql.ResultSet- Overrides:
updateFloatin classResultSetImpl- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(java.lang.String columnLabel, int x) throws java.sql.SQLException- Specified by:
updateIntin interfacejava.sql.ResultSet- Overrides:
updateIntin classResultSetImpl- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(int columnIndex, int x) throws java.sql.SQLException- Specified by:
updateIntin interfacejava.sql.ResultSet- Overrides:
updateIntin classResultSetImpl- Throws:
java.sql.SQLException
-
updateLong
public void updateLong(java.lang.String columnLabel, long x) throws java.sql.SQLException- Specified by:
updateLongin interfacejava.sql.ResultSet- Overrides:
updateLongin classResultSetImpl- Throws:
java.sql.SQLException
-
updateLong
public void updateLong(int columnIndex, long x) throws java.sql.SQLException- Specified by:
updateLongin interfacejava.sql.ResultSet- Overrides:
updateLongin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(java.lang.String columnLabel) throws java.sql.SQLException- Specified by:
updateNullin interfacejava.sql.ResultSet- Overrides:
updateNullin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(int columnIndex) throws java.sql.SQLException- Specified by:
updateNullin interfacejava.sql.ResultSet- Overrides:
updateNullin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, int scale) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, int scale) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObjectInternal
protected void updateObjectInternal(int columnIndex, java.lang.Object x, java.lang.Integer targetType, int scaleOrLength) throws java.sql.SQLExceptionInternal setObject implementation. Although targetType is not part of default ResultSet methods signatures, it is used for type conversions from JDBC42UpdatableResultSet new JDBC 4.2 updateObject() methods.- Parameters:
columnIndex- column indexx- valuetargetType- target typescaleOrLength- scale or length, depending on target type- Throws:
java.sql.SQLException- if an error occurs
-
updateObjectInternal
protected void updateObjectInternal(int columnIndex, java.lang.Object x, java.sql.SQLType targetType, int scaleOrLength) throws java.sql.SQLExceptionInternal setObject implementation.- Parameters:
columnIndex- column indexx- valuetargetType- target typescaleOrLength- scale or length, depending on target type- Throws:
java.sql.SQLException- if an error occurs
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSetImpl- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(java.lang.String columnLabel, short x) throws java.sql.SQLException- Specified by:
updateShortin interfacejava.sql.ResultSet- Overrides:
updateShortin classResultSetImpl- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(int columnIndex, short x) throws java.sql.SQLException- Specified by:
updateShortin interfacejava.sql.ResultSet- Overrides:
updateShortin classResultSetImpl- Throws:
java.sql.SQLException
-
updateString
public void updateString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException- Specified by:
updateStringin interfacejava.sql.ResultSet- Overrides:
updateStringin classResultSetImpl- Throws:
java.sql.SQLException
-
updateString
public void updateString(int columnIndex, java.lang.String x) throws java.sql.SQLException- Specified by:
updateStringin interfacejava.sql.ResultSet- Overrides:
updateStringin classResultSetImpl- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(java.lang.String columnLabel, java.sql.Time x) throws java.sql.SQLException- Specified by:
updateTimein interfacejava.sql.ResultSet- Overrides:
updateTimein classResultSetImpl- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(int columnIndex, java.sql.Time x) throws java.sql.SQLException- Specified by:
updateTimein interfacejava.sql.ResultSet- Overrides:
updateTimein classResultSetImpl- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x) throws java.sql.SQLException- Specified by:
updateTimestampin interfacejava.sql.ResultSet- Overrides:
updateTimestampin classResultSetImpl- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws java.sql.SQLException- Specified by:
updateTimestampin interfacejava.sql.ResultSet- Overrides:
updateTimestampin classResultSetImpl- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.sql.NClob nClob) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.sql.NClob nClob) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
updateSQLXML
public void updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML xmlObject) throws java.sql.SQLException- Specified by:
updateSQLXMLin interfacejava.sql.ResultSet- Overrides:
updateSQLXMLin classResultSetImpl- Throws:
java.sql.SQLException
-
updateSQLXML
public void updateSQLXML(int columnIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException- Specified by:
updateSQLXMLin interfacejava.sql.ResultSet- Overrides:
updateSQLXMLin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException- Specified by:
updateNStringin interfacejava.sql.ResultSet- Overrides:
updateNStringin classResultSetImpl- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(int columnIndex, java.lang.String x) throws java.sql.SQLException- Specified by:
updateNStringin interfacejava.sql.ResultSet- Overrides:
updateNStringin classResultSetImpl- Throws:
java.sql.SQLException
-
getNCharacterStream
public java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException- Specified by:
getNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
getNCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
getNCharacterStream
public java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException- Specified by:
getNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
getNCharacterStreamin classResultSetImpl- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob(java.lang.String columnLabel) throws java.sql.SQLException- Specified by:
getNClobin interfacejava.sql.ResultSet- Overrides:
getNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob(int columnIndex) throws java.sql.SQLException- Specified by:
getNClobin interfacejava.sql.ResultSet- Overrides:
getNClobin classResultSetImpl- Throws:
java.sql.SQLException
-
getNString
public java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLException- Specified by:
getNStringin interfacejava.sql.ResultSet- Overrides:
getNStringin classResultSetImpl- Throws:
java.sql.SQLException
-
getNString
public java.lang.String getNString(int columnIndex) throws java.sql.SQLException- Specified by:
getNStringin interfacejava.sql.ResultSet- Overrides:
getNStringin classResultSetImpl- Throws:
java.sql.SQLException
-
getSQLXML
public java.sql.SQLXML getSQLXML(java.lang.String columnLabel) throws java.sql.SQLException- Specified by:
getSQLXMLin interfacejava.sql.ResultSet- Overrides:
getSQLXMLin classResultSetImpl- Throws:
java.sql.SQLException
-
getSQLXML
public java.sql.SQLXML getSQLXML(int columnIndex) throws java.sql.SQLException- Specified by:
getSQLXMLin interfacejava.sql.ResultSet- Overrides:
getSQLXMLin classResultSetImpl- Throws:
java.sql.SQLException
-
isClosed
public boolean isClosed() throws java.sql.SQLException- Specified by:
isClosedin interfacejava.sql.ResultSet- Overrides:
isClosedin classResultSetImpl- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException- Specified by:
isWrapperForin interfacejava.sql.Wrapper- Overrides:
isWrapperForin classResultSetImpl- Throws:
java.sql.SQLException
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException- Specified by:
unwrapin interfacejava.sql.Wrapper- Overrides:
unwrapin classResultSetImpl- Throws:
java.sql.SQLException
-