public class UpdatableResultSet extends ResultSetImpl
Resultset.Concurrency, Resultset.Type| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doingUpdates
Are we in the middle of doing updates to the current row?
|
protected ClientPreparedStatement |
inserter
PreparedStatement used to insert data
|
protected ClientPreparedStatement |
updater
PreparedStatement used to delete data
|
columnUsed, connection, currentRow, db, emulateLocators, eventSink, fetchDirection, fetchSize, firstCharOfQuery, gatherPerfMetrics, isClosed, resultSetConcurrency, resultSetType, session, useUsageAdvisor, warningChain, wrapperStatement, yearIsDateTypecolumnDefinition, nextResultset, resultId, rowData, serverInfo, thisRow, updateCount, updateId| Constructor and Description |
|---|
UpdatableResultSet(ResultsetRows tuples,
JdbcConnection conn,
StatementImpl creatorStmt)
Creates a new ResultSet object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row) |
void |
afterLast() |
void |
beforeFirst() |
void |
cancelRowUpdates() |
protected void |
checkRowPos()
Ensures that the cursor is positioned on a valid row and that the result
set is not closed
|
void |
checkUpdatability()
Is this ResultSet updatable?
|
void |
deleteRow() |
boolean |
first() |
protected void |
generateStatements()
Figure out whether or not this ResultSet is updatable, and if so,
generate the PreparedStatements to support updates.
|
int |
getConcurrency() |
int |
getHoldability() |
java.io.Reader |
getNCharacterStream(int columnIndex) |
java.io.Reader |
getNCharacterStream(java.lang.String columnLabel) |
java.sql.NClob |
getNClob(int columnIndex) |
java.sql.NClob |
getNClob(java.lang.String columnLabel) |
java.lang.String |
getNString(int columnIndex) |
java.lang.String |
getNString(java.lang.String columnLabel) |
java.sql.SQLXML |
getSQLXML(int columnIndex) |
java.sql.SQLXML |
getSQLXML(java.lang.String columnLabel) |
void |
insertRow() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isClosed() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
boolean |
last() |
void |
moveToCurrentRow() |
void |
moveToInsertRow() |
boolean |
next() |
boolean |
prev()
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.
|
boolean |
previous() |
void |
realClose(boolean calledExplicitly)
Closes this ResultSet and releases resources.
|
void |
refreshRow() |
boolean |
relative(int rows) |
boolean |
rowDeleted() |
boolean |
rowInserted() |
boolean |
rowUpdated() |
void |
setResultSetConcurrency(int concurrencyFlag)
Sets the concurrency
|
protected void |
syncUpdate()
Reset UPDATE prepared statement to value in current row.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x) |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
int length) |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
int length) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBigDecimal(int columnIndex,
java.math.BigDecimal x) |
void |
updateBigDecimal(java.lang.String columnLabel,
java.math.BigDecimal x) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
int length) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
int length) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBlob(int columnIndex,
java.sql.Blob blob) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length) |
void |
updateBlob(java.lang.String columnLabel,
java.sql.Blob blob) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length) |
void |
updateBoolean(int columnIndex,
boolean x) |
void |
updateBoolean(java.lang.String columnLabel,
boolean x) |
void |
updateByte(int columnIndex,
byte x) |
void |
updateByte(java.lang.String columnLabel,
byte x) |
void |
updateBytes(int columnIndex,
byte[] x) |
void |
updateBytes(java.lang.String columnLabel,
byte[] x) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
int length) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
int length) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateClob(int columnIndex,
java.sql.Clob clob) |
void |
updateClob(int columnIndex,
java.io.Reader reader) |
void |
updateClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateClob(java.lang.String columnLabel,
java.sql.Clob clob) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateDate(int columnIndex,
java.sql.Date x) |
void |
updateDate(java.lang.String columnLabel,
java.sql.Date x) |
void |
updateDouble(int columnIndex,
double x) |
void |
updateDouble(java.lang.String columnLabel,
double x) |
void |
updateFloat(int columnIndex,
float x) |
void |
updateFloat(java.lang.String columnLabel,
float x) |
void |
updateInt(int columnIndex,
int x) |
void |
updateInt(java.lang.String columnLabel,
int x) |
void |
updateLong(int columnIndex,
long x) |
void |
updateLong(java.lang.String columnLabel,
long x) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNClob(int columnIndex,
java.sql.NClob nClob) |
void |
updateNClob(int columnIndex,
java.io.Reader reader) |
void |
updateNClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateNClob(java.lang.String columnLabel,
java.sql.NClob nClob) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNString(int columnIndex,
java.lang.String x) |
void |
updateNString(java.lang.String columnLabel,
java.lang.String x) |
void |
updateNull(int columnIndex) |
void |
updateNull(java.lang.String columnLabel) |
void |
updateObject(int columnIndex,
java.lang.Object x) |
void |
updateObject(int columnIndex,
java.lang.Object x,
int scale) |
void |
updateObject(int columnIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType) |
void |
updateObject(int columnIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength) |
void |
updateObject(java.lang.String columnLabel,
java.lang.Object x) |
void |
updateObject(java.lang.String columnLabel,
java.lang.Object x,
int scale) |
void |
updateObject(java.lang.String columnLabel,
java.lang.Object x,
java.sql.SQLType targetSqlType) |
void |
updateObject(java.lang.String columnLabel,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength) |
protected void |
updateObjectInternal(int columnIndex,
java.lang.Object x,
java.lang.Integer targetType,
int scaleOrLength)
Internal setObject implementation.
|
protected void |
updateObjectInternal(int columnIndex,
java.lang.Object x,
java.sql.SQLType targetType,
int scaleOrLength)
Internal setObject implementation.
|
void |
updateRow() |
void |
updateShort(int columnIndex,
short x) |
void |
updateShort(java.lang.String columnLabel,
short x) |
void |
updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject) |
void |
updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject) |
void |
updateString(int columnIndex,
java.lang.String x) |
void |
updateString(java.lang.String columnLabel,
java.lang.String x) |
void |
updateTime(int columnIndex,
java.sql.Time x) |
void |
updateTime(java.lang.String columnLabel,
java.sql.Time x) |
void |
updateTimestamp(int columnIndex,
java.sql.Timestamp x) |
void |
updateTimestamp(java.lang.String columnLabel,
java.sql.Timestamp x) |
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, wasNullclearNextResultset, getColumnDefinition, getNextResultset, getResultId, getRows, getServerInfo, getUpdateCount, getUpdateID, hasRows, initRowsWithMetadata, setColumnDefinition, setNextResultsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearNextResultset, getColumnDefinition, getNextResultset, getResultId, getRows, getServerInfo, getUpdateCount, getUpdateID, hasRows, initRowsWithMetadata, setColumnDefinition, setNextResultsetprotected ClientPreparedStatement inserter
protected ClientPreparedStatement updater
protected boolean doingUpdates
public UpdatableResultSet(ResultsetRows tuples, JdbcConnection conn, StatementImpl creatorStmt) throws java.sql.SQLException
tuples - actual row dataconn - the Connection that created us.creatorStmt - statement owning this result setjava.sql.SQLException - if an error occurspublic boolean absolute(int row)
throws java.sql.SQLException
absolute in interface java.sql.ResultSetabsolute in class ResultSetImpljava.sql.SQLExceptionpublic void afterLast()
throws java.sql.SQLException
afterLast in interface java.sql.ResultSetafterLast in class ResultSetImpljava.sql.SQLExceptionpublic void beforeFirst()
throws java.sql.SQLException
beforeFirst in interface java.sql.ResultSetbeforeFirst in class ResultSetImpljava.sql.SQLExceptionpublic void cancelRowUpdates()
throws java.sql.SQLException
cancelRowUpdates in interface java.sql.ResultSetcancelRowUpdates in class ResultSetImpljava.sql.SQLExceptionprotected void checkRowPos()
throws java.sql.SQLException
ResultSetImplcheckRowPos in class ResultSetImpljava.sql.SQLException - if the result set is not in a valid state for traversalpublic void checkUpdatability()
throws java.sql.SQLException
java.sql.SQLException - if an error occurspublic void deleteRow()
throws java.sql.SQLException
deleteRow in interface java.sql.ResultSetdeleteRow in class ResultSetImpljava.sql.SQLExceptionpublic boolean first()
throws java.sql.SQLException
first in interface java.sql.ResultSetfirst in class ResultSetImpljava.sql.SQLExceptionprotected void generateStatements()
throws java.sql.SQLException
java.sql.SQLException - if an error occursNotUpdatable - if result set was marked as not updatablepublic int getConcurrency()
throws java.sql.SQLException
getConcurrency in interface java.sql.ResultSetgetConcurrency in class ResultSetImpljava.sql.SQLExceptionpublic void insertRow()
throws java.sql.SQLException
insertRow in interface java.sql.ResultSetinsertRow in class ResultSetImpljava.sql.SQLExceptionpublic boolean isAfterLast()
throws java.sql.SQLException
isAfterLast in interface java.sql.ResultSetisAfterLast in class ResultSetImpljava.sql.SQLExceptionpublic boolean isBeforeFirst()
throws java.sql.SQLException
isBeforeFirst in interface java.sql.ResultSetisBeforeFirst in class ResultSetImpljava.sql.SQLExceptionpublic boolean isFirst()
throws java.sql.SQLException
isFirst in interface java.sql.ResultSetisFirst in class ResultSetImpljava.sql.SQLExceptionpublic boolean isLast()
throws java.sql.SQLException
isLast in interface java.sql.ResultSetisLast in class ResultSetImpljava.sql.SQLExceptionpublic boolean last()
throws java.sql.SQLException
last in interface java.sql.ResultSetlast in class ResultSetImpljava.sql.SQLExceptionpublic void moveToCurrentRow()
throws java.sql.SQLException
moveToCurrentRow in interface java.sql.ResultSetmoveToCurrentRow in class ResultSetImpljava.sql.SQLExceptionpublic void moveToInsertRow()
throws java.sql.SQLException
moveToInsertRow in interface java.sql.ResultSetmoveToInsertRow in class ResultSetImpljava.sql.SQLExceptionpublic boolean next()
throws java.sql.SQLException
next in interface java.sql.ResultSetnext in class ResultSetImpljava.sql.SQLExceptionpublic boolean prev()
throws java.sql.SQLException
ResultSetImplIf 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
prev in class ResultSetImpljava.sql.SQLException - if a database access error occurspublic boolean previous()
throws java.sql.SQLException
previous in interface java.sql.ResultSetprevious in class ResultSetImpljava.sql.SQLExceptionpublic void realClose(boolean calledExplicitly)
throws java.sql.SQLException
ResultSetInternalMethodsrealClose in interface ResultSetInternalMethodsrealClose in class ResultSetImplcalledExplicitly - was realClose called by the standard ResultSet.close() method, or was it closed internally by the
driver?java.sql.SQLException - if an error occurspublic void refreshRow()
throws java.sql.SQLException
refreshRow in interface java.sql.ResultSetrefreshRow in class ResultSetImpljava.sql.SQLExceptionpublic boolean relative(int rows)
throws java.sql.SQLException
relative in interface java.sql.ResultSetrelative in class ResultSetImpljava.sql.SQLExceptionpublic boolean rowDeleted()
throws java.sql.SQLException
rowDeleted in interface java.sql.ResultSetrowDeleted in class ResultSetImpljava.sql.SQLExceptionpublic boolean rowInserted()
throws java.sql.SQLException
rowInserted in interface java.sql.ResultSetrowInserted in class ResultSetImpljava.sql.SQLExceptionpublic boolean rowUpdated()
throws java.sql.SQLException
rowUpdated in interface java.sql.ResultSetrowUpdated in class ResultSetImpljava.sql.SQLExceptionpublic void setResultSetConcurrency(int concurrencyFlag)
ResultSetImplsetResultSetConcurrency in class ResultSetImplconcurrencyFlag - CONCUR_UPDATABLE or CONCUR_READONLYprotected void syncUpdate()
throws java.sql.SQLException
java.sql.SQLException - if an error occurspublic void updateRow()
throws java.sql.SQLException
updateRow in interface java.sql.ResultSetupdateRow in class ResultSetImpljava.sql.SQLExceptionpublic int getHoldability()
throws java.sql.SQLException
getHoldability in interface java.sql.ResultSetgetHoldability in class ResultSetImpljava.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetupdateAsciiStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetupdateAsciiStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBigDecimal(java.lang.String columnLabel,
java.math.BigDecimal x)
throws java.sql.SQLException
updateBigDecimal in interface java.sql.ResultSetupdateBigDecimal in class ResultSetImpljava.sql.SQLExceptionpublic void updateBigDecimal(int columnIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
updateBigDecimal in interface java.sql.ResultSetupdateBigDecimal in class ResultSetImpljava.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetupdateBinaryStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetupdateBinaryStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.sql.Blob blob)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetupdateBlob in class ResultSetImpljava.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.sql.Blob blob)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetupdateBlob in class ResultSetImpljava.sql.SQLExceptionpublic void updateBoolean(java.lang.String columnLabel,
boolean x)
throws java.sql.SQLException
updateBoolean in interface java.sql.ResultSetupdateBoolean in class ResultSetImpljava.sql.SQLExceptionpublic void updateBoolean(int columnIndex,
boolean x)
throws java.sql.SQLException
updateBoolean in interface java.sql.ResultSetupdateBoolean in class ResultSetImpljava.sql.SQLExceptionpublic void updateByte(java.lang.String columnLabel,
byte x)
throws java.sql.SQLException
updateByte in interface java.sql.ResultSetupdateByte in class ResultSetImpljava.sql.SQLExceptionpublic void updateByte(int columnIndex,
byte x)
throws java.sql.SQLException
updateByte in interface java.sql.ResultSetupdateByte in class ResultSetImpljava.sql.SQLExceptionpublic void updateBytes(java.lang.String columnLabel,
byte[] x)
throws java.sql.SQLException
updateBytes in interface java.sql.ResultSetupdateBytes in class ResultSetImpljava.sql.SQLExceptionpublic void updateBytes(int columnIndex,
byte[] x)
throws java.sql.SQLException
updateBytes in interface java.sql.ResultSetupdateBytes in class ResultSetImpljava.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
int length)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetupdateCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x,
int length)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetupdateCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.sql.Clob clob)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetupdateClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.sql.Clob clob)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetupdateClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateDate(java.lang.String columnLabel,
java.sql.Date x)
throws java.sql.SQLException
updateDate in interface java.sql.ResultSetupdateDate in class ResultSetImpljava.sql.SQLExceptionpublic void updateDate(int columnIndex,
java.sql.Date x)
throws java.sql.SQLException
updateDate in interface java.sql.ResultSetupdateDate in class ResultSetImpljava.sql.SQLExceptionpublic void updateDouble(java.lang.String columnLabel,
double x)
throws java.sql.SQLException
updateDouble in interface java.sql.ResultSetupdateDouble in class ResultSetImpljava.sql.SQLExceptionpublic void updateDouble(int columnIndex,
double x)
throws java.sql.SQLException
updateDouble in interface java.sql.ResultSetupdateDouble in class ResultSetImpljava.sql.SQLExceptionpublic void updateFloat(java.lang.String columnLabel,
float x)
throws java.sql.SQLException
updateFloat in interface java.sql.ResultSetupdateFloat in class ResultSetImpljava.sql.SQLExceptionpublic void updateFloat(int columnIndex,
float x)
throws java.sql.SQLException
updateFloat in interface java.sql.ResultSetupdateFloat in class ResultSetImpljava.sql.SQLExceptionpublic void updateInt(java.lang.String columnLabel,
int x)
throws java.sql.SQLException
updateInt in interface java.sql.ResultSetupdateInt in class ResultSetImpljava.sql.SQLExceptionpublic void updateInt(int columnIndex,
int x)
throws java.sql.SQLException
updateInt in interface java.sql.ResultSetupdateInt in class ResultSetImpljava.sql.SQLExceptionpublic void updateLong(java.lang.String columnLabel,
long x)
throws java.sql.SQLException
updateLong in interface java.sql.ResultSetupdateLong in class ResultSetImpljava.sql.SQLExceptionpublic void updateLong(int columnIndex,
long x)
throws java.sql.SQLException
updateLong in interface java.sql.ResultSetupdateLong in class ResultSetImpljava.sql.SQLExceptionpublic void updateNull(java.lang.String columnLabel)
throws java.sql.SQLException
updateNull in interface java.sql.ResultSetupdateNull in class ResultSetImpljava.sql.SQLExceptionpublic void updateNull(int columnIndex)
throws java.sql.SQLException
updateNull in interface java.sql.ResultSetupdateNull in class ResultSetImpljava.sql.SQLExceptionpublic void updateObject(java.lang.String columnLabel,
java.lang.Object x)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionpublic void updateObject(int columnIndex,
java.lang.Object x)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionpublic void updateObject(java.lang.String columnLabel,
java.lang.Object x,
int scale)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionpublic void updateObject(int columnIndex,
java.lang.Object x,
int scale)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionprotected void updateObjectInternal(int columnIndex,
java.lang.Object x,
java.lang.Integer targetType,
int scaleOrLength)
throws java.sql.SQLException
columnIndex - column indexx - valuetargetType - target typescaleOrLength - scale or length, depending on target typejava.sql.SQLException - if an error occursprotected void updateObjectInternal(int columnIndex,
java.lang.Object x,
java.sql.SQLType targetType,
int scaleOrLength)
throws java.sql.SQLException
columnIndex - column indexx - valuetargetType - target typescaleOrLength - scale or length, depending on target typejava.sql.SQLException - if an error occurspublic void updateObject(java.lang.String columnLabel,
java.lang.Object x,
java.sql.SQLType targetSqlType)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionpublic void updateObject(int columnIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionpublic void updateObject(java.lang.String columnLabel,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionpublic void updateObject(int columnIndex,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetupdateObject in class ResultSetImpljava.sql.SQLExceptionpublic void updateShort(java.lang.String columnLabel,
short x)
throws java.sql.SQLException
updateShort in interface java.sql.ResultSetupdateShort in class ResultSetImpljava.sql.SQLExceptionpublic void updateShort(int columnIndex,
short x)
throws java.sql.SQLException
updateShort in interface java.sql.ResultSetupdateShort in class ResultSetImpljava.sql.SQLExceptionpublic void updateString(java.lang.String columnLabel,
java.lang.String x)
throws java.sql.SQLException
updateString in interface java.sql.ResultSetupdateString in class ResultSetImpljava.sql.SQLExceptionpublic void updateString(int columnIndex,
java.lang.String x)
throws java.sql.SQLException
updateString in interface java.sql.ResultSetupdateString in class ResultSetImpljava.sql.SQLExceptionpublic void updateTime(java.lang.String columnLabel,
java.sql.Time x)
throws java.sql.SQLException
updateTime in interface java.sql.ResultSetupdateTime in class ResultSetImpljava.sql.SQLExceptionpublic void updateTime(int columnIndex,
java.sql.Time x)
throws java.sql.SQLException
updateTime in interface java.sql.ResultSetupdateTime in class ResultSetImpljava.sql.SQLExceptionpublic void updateTimestamp(java.lang.String columnLabel,
java.sql.Timestamp x)
throws java.sql.SQLException
updateTimestamp in interface java.sql.ResultSetupdateTimestamp in class ResultSetImpljava.sql.SQLExceptionpublic void updateTimestamp(int columnIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
updateTimestamp in interface java.sql.ResultSetupdateTimestamp in class ResultSetImpljava.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetupdateAsciiStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetupdateAsciiStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetupdateAsciiStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetupdateAsciiStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetupdateBinaryStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetupdateBinaryStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetupdateBinaryStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetupdateBinaryStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetupdateBlob in class ResultSetImpljava.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetupdateBlob in class ResultSetImpljava.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetupdateBlob in class ResultSetImpljava.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetupdateBlob in class ResultSetImpljava.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetupdateCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetupdateCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetupdateCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetupdateCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetupdateClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetupdateClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetupdateClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetupdateClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
updateNCharacterStream in interface java.sql.ResultSetupdateNCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
updateNCharacterStream in interface java.sql.ResultSetupdateNCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
updateNCharacterStream in interface java.sql.ResultSetupdateNCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
updateNCharacterStream in interface java.sql.ResultSetupdateNCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
updateNClob in interface java.sql.ResultSetupdateNClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
updateNClob in interface java.sql.ResultSetupdateNClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
updateNClob in interface java.sql.ResultSetupdateNClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
updateNClob in interface java.sql.ResultSetupdateNClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.sql.NClob nClob)
throws java.sql.SQLException
updateNClob in interface java.sql.ResultSetupdateNClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.sql.NClob nClob)
throws java.sql.SQLException
updateNClob in interface java.sql.ResultSetupdateNClob in class ResultSetImpljava.sql.SQLExceptionpublic void updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
updateSQLXML in interface java.sql.ResultSetupdateSQLXML in class ResultSetImpljava.sql.SQLExceptionpublic void updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
updateSQLXML in interface java.sql.ResultSetupdateSQLXML in class ResultSetImpljava.sql.SQLExceptionpublic void updateNString(java.lang.String columnLabel,
java.lang.String x)
throws java.sql.SQLException
updateNString in interface java.sql.ResultSetupdateNString in class ResultSetImpljava.sql.SQLExceptionpublic void updateNString(int columnIndex,
java.lang.String x)
throws java.sql.SQLException
updateNString in interface java.sql.ResultSetupdateNString in class ResultSetImpljava.sql.SQLExceptionpublic java.io.Reader getNCharacterStream(java.lang.String columnLabel)
throws java.sql.SQLException
getNCharacterStream in interface java.sql.ResultSetgetNCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic java.io.Reader getNCharacterStream(int columnIndex)
throws java.sql.SQLException
getNCharacterStream in interface java.sql.ResultSetgetNCharacterStream in class ResultSetImpljava.sql.SQLExceptionpublic java.sql.NClob getNClob(java.lang.String columnLabel)
throws java.sql.SQLException
getNClob in interface java.sql.ResultSetgetNClob in class ResultSetImpljava.sql.SQLExceptionpublic java.sql.NClob getNClob(int columnIndex)
throws java.sql.SQLException
getNClob in interface java.sql.ResultSetgetNClob in class ResultSetImpljava.sql.SQLExceptionpublic java.lang.String getNString(java.lang.String columnLabel)
throws java.sql.SQLException
getNString in interface java.sql.ResultSetgetNString in class ResultSetImpljava.sql.SQLExceptionpublic java.lang.String getNString(int columnIndex)
throws java.sql.SQLException
getNString in interface java.sql.ResultSetgetNString in class ResultSetImpljava.sql.SQLExceptionpublic java.sql.SQLXML getSQLXML(java.lang.String columnLabel)
throws java.sql.SQLException
getSQLXML in interface java.sql.ResultSetgetSQLXML in class ResultSetImpljava.sql.SQLExceptionpublic java.sql.SQLXML getSQLXML(int columnIndex)
throws java.sql.SQLException
getSQLXML in interface java.sql.ResultSetgetSQLXML in class ResultSetImpljava.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.ResultSetisClosed in class ResultSetImpljava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.WrapperisWrapperFor in class ResultSetImpljava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperunwrap in class ResultSetImpljava.sql.SQLException