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, scrollTolerant, session, useUsageAdvisor, warningChain, wrapperStatement, yearIsDateType
columnDefinition, 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, isStrictlyForwardOnly, populateCachedMetaData, setFetchDirection, setFetchSize, setFirstCharOfQuery, setOwningStatement, setResultSetType, setServerInfo, setStatementUsedForFetchingRows, setWrapperStatement, toString, updateArray, updateArray, updateRef, updateRef, updateRowId, updateRowId, warningEncountered, wasNull
clearNextResultset, getColumnDefinition, getNextResultset, getResultId, getRows, getServerInfo, getUpdateCount, getUpdateID, hasRows, initRowsWithMetadata, setColumnDefinition, setNextResultset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearNextResultset, getColumnDefinition, getNextResultset, getResultId, getRows, getServerInfo, getUpdateCount, getUpdateID, hasRows, initRowsWithMetadata, setColumnDefinition, setNextResultset
protected 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.ResultSet
absolute
in class ResultSetImpl
java.sql.SQLException
public void afterLast() throws java.sql.SQLException
afterLast
in interface java.sql.ResultSet
afterLast
in class ResultSetImpl
java.sql.SQLException
public void beforeFirst() throws java.sql.SQLException
beforeFirst
in interface java.sql.ResultSet
beforeFirst
in class ResultSetImpl
java.sql.SQLException
public void cancelRowUpdates() throws java.sql.SQLException
cancelRowUpdates
in interface java.sql.ResultSet
cancelRowUpdates
in class ResultSetImpl
java.sql.SQLException
protected void checkRowPos() throws java.sql.SQLException
ResultSetImpl
checkRowPos
in class ResultSetImpl
java.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.ResultSet
deleteRow
in class ResultSetImpl
java.sql.SQLException
public boolean first() throws java.sql.SQLException
first
in interface java.sql.ResultSet
first
in class ResultSetImpl
java.sql.SQLException
protected 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.ResultSet
getConcurrency
in class ResultSetImpl
java.sql.SQLException
public void insertRow() throws java.sql.SQLException
insertRow
in interface java.sql.ResultSet
insertRow
in class ResultSetImpl
java.sql.SQLException
public boolean isAfterLast() throws java.sql.SQLException
isAfterLast
in interface java.sql.ResultSet
isAfterLast
in class ResultSetImpl
java.sql.SQLException
public boolean isBeforeFirst() throws java.sql.SQLException
isBeforeFirst
in interface java.sql.ResultSet
isBeforeFirst
in class ResultSetImpl
java.sql.SQLException
public boolean isFirst() throws java.sql.SQLException
isFirst
in interface java.sql.ResultSet
isFirst
in class ResultSetImpl
java.sql.SQLException
public boolean isLast() throws java.sql.SQLException
isLast
in interface java.sql.ResultSet
isLast
in class ResultSetImpl
java.sql.SQLException
public boolean last() throws java.sql.SQLException
last
in interface java.sql.ResultSet
last
in class ResultSetImpl
java.sql.SQLException
public void moveToCurrentRow() throws java.sql.SQLException
moveToCurrentRow
in interface java.sql.ResultSet
moveToCurrentRow
in class ResultSetImpl
java.sql.SQLException
public void moveToInsertRow() throws java.sql.SQLException
moveToInsertRow
in interface java.sql.ResultSet
moveToInsertRow
in class ResultSetImpl
java.sql.SQLException
public boolean next() throws java.sql.SQLException
next
in interface java.sql.ResultSet
next
in class ResultSetImpl
java.sql.SQLException
public boolean prev() throws java.sql.SQLException
ResultSetImpl
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
prev
in class ResultSetImpl
java.sql.SQLException
- if a database access error occurspublic boolean previous() throws java.sql.SQLException
previous
in interface java.sql.ResultSet
previous
in class ResultSetImpl
java.sql.SQLException
public void realClose(boolean calledExplicitly) throws java.sql.SQLException
ResultSetInternalMethods
realClose
in interface ResultSetInternalMethods
realClose
in class ResultSetImpl
calledExplicitly
- 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.ResultSet
refreshRow
in class ResultSetImpl
java.sql.SQLException
public boolean relative(int rows) throws java.sql.SQLException
relative
in interface java.sql.ResultSet
relative
in class ResultSetImpl
java.sql.SQLException
public boolean rowDeleted() throws java.sql.SQLException
rowDeleted
in interface java.sql.ResultSet
rowDeleted
in class ResultSetImpl
java.sql.SQLException
public boolean rowInserted() throws java.sql.SQLException
rowInserted
in interface java.sql.ResultSet
rowInserted
in class ResultSetImpl
java.sql.SQLException
public boolean rowUpdated() throws java.sql.SQLException
rowUpdated
in interface java.sql.ResultSet
rowUpdated
in class ResultSetImpl
java.sql.SQLException
public void setResultSetConcurrency(int concurrencyFlag)
ResultSetImpl
setResultSetConcurrency
in class ResultSetImpl
concurrencyFlag
- 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.ResultSet
updateRow
in class ResultSetImpl
java.sql.SQLException
public int getHoldability() throws java.sql.SQLException
getHoldability
in interface java.sql.ResultSet
getHoldability
in class ResultSetImpl
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class ResultSetImpl
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class ResultSetImpl
java.sql.SQLException
public void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x) throws java.sql.SQLException
updateBigDecimal
in interface java.sql.ResultSet
updateBigDecimal
in class ResultSetImpl
java.sql.SQLException
public void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws java.sql.SQLException
updateBigDecimal
in interface java.sql.ResultSet
updateBigDecimal
in class ResultSetImpl
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class ResultSetImpl
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class ResultSetImpl
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.sql.Blob blob) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class ResultSetImpl
java.sql.SQLException
public void updateBlob(int columnIndex, java.sql.Blob blob) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class ResultSetImpl
java.sql.SQLException
public void updateBoolean(java.lang.String columnLabel, boolean x) throws java.sql.SQLException
updateBoolean
in interface java.sql.ResultSet
updateBoolean
in class ResultSetImpl
java.sql.SQLException
public void updateBoolean(int columnIndex, boolean x) throws java.sql.SQLException
updateBoolean
in interface java.sql.ResultSet
updateBoolean
in class ResultSetImpl
java.sql.SQLException
public void updateByte(java.lang.String columnLabel, byte x) throws java.sql.SQLException
updateByte
in interface java.sql.ResultSet
updateByte
in class ResultSetImpl
java.sql.SQLException
public void updateByte(int columnIndex, byte x) throws java.sql.SQLException
updateByte
in interface java.sql.ResultSet
updateByte
in class ResultSetImpl
java.sql.SQLException
public void updateBytes(java.lang.String columnLabel, byte[] x) throws java.sql.SQLException
updateBytes
in interface java.sql.ResultSet
updateBytes
in class ResultSetImpl
java.sql.SQLException
public void updateBytes(int columnIndex, byte[] x) throws java.sql.SQLException
updateBytes
in interface java.sql.ResultSet
updateBytes
in class ResultSetImpl
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.sql.Clob clob) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class ResultSetImpl
java.sql.SQLException
public void updateClob(int columnIndex, java.sql.Clob clob) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class ResultSetImpl
java.sql.SQLException
public void updateDate(java.lang.String columnLabel, java.sql.Date x) throws java.sql.SQLException
updateDate
in interface java.sql.ResultSet
updateDate
in class ResultSetImpl
java.sql.SQLException
public void updateDate(int columnIndex, java.sql.Date x) throws java.sql.SQLException
updateDate
in interface java.sql.ResultSet
updateDate
in class ResultSetImpl
java.sql.SQLException
public void updateDouble(java.lang.String columnLabel, double x) throws java.sql.SQLException
updateDouble
in interface java.sql.ResultSet
updateDouble
in class ResultSetImpl
java.sql.SQLException
public void updateDouble(int columnIndex, double x) throws java.sql.SQLException
updateDouble
in interface java.sql.ResultSet
updateDouble
in class ResultSetImpl
java.sql.SQLException
public void updateFloat(java.lang.String columnLabel, float x) throws java.sql.SQLException
updateFloat
in interface java.sql.ResultSet
updateFloat
in class ResultSetImpl
java.sql.SQLException
public void updateFloat(int columnIndex, float x) throws java.sql.SQLException
updateFloat
in interface java.sql.ResultSet
updateFloat
in class ResultSetImpl
java.sql.SQLException
public void updateInt(java.lang.String columnLabel, int x) throws java.sql.SQLException
updateInt
in interface java.sql.ResultSet
updateInt
in class ResultSetImpl
java.sql.SQLException
public void updateInt(int columnIndex, int x) throws java.sql.SQLException
updateInt
in interface java.sql.ResultSet
updateInt
in class ResultSetImpl
java.sql.SQLException
public void updateLong(java.lang.String columnLabel, long x) throws java.sql.SQLException
updateLong
in interface java.sql.ResultSet
updateLong
in class ResultSetImpl
java.sql.SQLException
public void updateLong(int columnIndex, long x) throws java.sql.SQLException
updateLong
in interface java.sql.ResultSet
updateLong
in class ResultSetImpl
java.sql.SQLException
public void updateNull(java.lang.String columnLabel) throws java.sql.SQLException
updateNull
in interface java.sql.ResultSet
updateNull
in class ResultSetImpl
java.sql.SQLException
public void updateNull(int columnIndex) throws java.sql.SQLException
updateNull
in interface java.sql.ResultSet
updateNull
in class ResultSetImpl
java.sql.SQLException
public void updateObject(java.lang.String columnLabel, java.lang.Object x) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
public void updateObject(int columnIndex, java.lang.Object x) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
public void updateObject(java.lang.String columnLabel, java.lang.Object x, int scale) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
public void updateObject(int columnIndex, java.lang.Object x, int scale) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
protected 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.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
public void updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
public 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.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
public void updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
updateObject
in class ResultSetImpl
java.sql.SQLException
public void updateShort(java.lang.String columnLabel, short x) throws java.sql.SQLException
updateShort
in interface java.sql.ResultSet
updateShort
in class ResultSetImpl
java.sql.SQLException
public void updateShort(int columnIndex, short x) throws java.sql.SQLException
updateShort
in interface java.sql.ResultSet
updateShort
in class ResultSetImpl
java.sql.SQLException
public void updateString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException
updateString
in interface java.sql.ResultSet
updateString
in class ResultSetImpl
java.sql.SQLException
public void updateString(int columnIndex, java.lang.String x) throws java.sql.SQLException
updateString
in interface java.sql.ResultSet
updateString
in class ResultSetImpl
java.sql.SQLException
public void updateTime(java.lang.String columnLabel, java.sql.Time x) throws java.sql.SQLException
updateTime
in interface java.sql.ResultSet
updateTime
in class ResultSetImpl
java.sql.SQLException
public void updateTime(int columnIndex, java.sql.Time x) throws java.sql.SQLException
updateTime
in interface java.sql.ResultSet
updateTime
in class ResultSetImpl
java.sql.SQLException
public void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x) throws java.sql.SQLException
updateTimestamp
in interface java.sql.ResultSet
updateTimestamp
in class ResultSetImpl
java.sql.SQLException
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws java.sql.SQLException
updateTimestamp
in interface java.sql.ResultSet
updateTimestamp
in class ResultSetImpl
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class ResultSetImpl
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class ResultSetImpl
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class ResultSetImpl
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class ResultSetImpl
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class ResultSetImpl
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class ResultSetImpl
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class ResultSetImpl
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class ResultSetImpl
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class ResultSetImpl
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class ResultSetImpl
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class ResultSetImpl
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class ResultSetImpl
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class ResultSetImpl
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class ResultSetImpl
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class ResultSetImpl
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class ResultSetImpl
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class ResultSetImpl
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class ResultSetImpl
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class ResultSetImpl
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class ResultSetImpl
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class ResultSetImpl
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.sql.NClob nClob) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class ResultSetImpl
java.sql.SQLException
public void updateNClob(int columnIndex, java.sql.NClob nClob) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class ResultSetImpl
java.sql.SQLException
public void updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML xmlObject) throws java.sql.SQLException
updateSQLXML
in interface java.sql.ResultSet
updateSQLXML
in class ResultSetImpl
java.sql.SQLException
public void updateSQLXML(int columnIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException
updateSQLXML
in interface java.sql.ResultSet
updateSQLXML
in class ResultSetImpl
java.sql.SQLException
public void updateNString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException
updateNString
in interface java.sql.ResultSet
updateNString
in class ResultSetImpl
java.sql.SQLException
public void updateNString(int columnIndex, java.lang.String x) throws java.sql.SQLException
updateNString
in interface java.sql.ResultSet
updateNString
in class ResultSetImpl
java.sql.SQLException
public java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.ResultSet
getNCharacterStream
in class ResultSetImpl
java.sql.SQLException
public java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.ResultSet
getNCharacterStream
in class ResultSetImpl
java.sql.SQLException
public java.sql.NClob getNClob(java.lang.String columnLabel) throws java.sql.SQLException
getNClob
in interface java.sql.ResultSet
getNClob
in class ResultSetImpl
java.sql.SQLException
public java.sql.NClob getNClob(int columnIndex) throws java.sql.SQLException
getNClob
in interface java.sql.ResultSet
getNClob
in class ResultSetImpl
java.sql.SQLException
public java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLException
getNString
in interface java.sql.ResultSet
getNString
in class ResultSetImpl
java.sql.SQLException
public java.lang.String getNString(int columnIndex) throws java.sql.SQLException
getNString
in interface java.sql.ResultSet
getNString
in class ResultSetImpl
java.sql.SQLException
public java.sql.SQLXML getSQLXML(java.lang.String columnLabel) throws java.sql.SQLException
getSQLXML
in interface java.sql.ResultSet
getSQLXML
in class ResultSetImpl
java.sql.SQLException
public java.sql.SQLXML getSQLXML(int columnIndex) throws java.sql.SQLException
getSQLXML
in interface java.sql.ResultSet
getSQLXML
in class ResultSetImpl
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.ResultSet
isClosed
in class ResultSetImpl
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
isWrapperFor
in class ResultSetImpl
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
unwrap
in class ResultSetImpl
java.sql.SQLException