|
|||||||||
| Home >> All >> com >> mysql >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mysql.jdbc
Class UpdatableResultSet

java.lang.Objectcom.mysql.jdbc.ResultSet
com.mysql.jdbc.UpdatableResultSet
- All Implemented Interfaces:
- java.sql.ResultSet
- public class UpdatableResultSet
- extends ResultSet
A result set that is updatable.
| Field Summary | |
private SingleByteCharsetConverter |
charConverter
|
private java.lang.String |
charEncoding
|
private byte[][] |
defaultColumnValue
What is the default value for the column? |
private PreparedStatement |
deleter
PreparedStatement used to delete data |
private java.lang.String |
deleteSQL
|
private boolean |
initializedCharConverter
|
private PreparedStatement |
inserter
PreparedStatement used to insert data |
private java.lang.String |
insertSQL
|
private boolean |
isUpdatable
Is this result set updateable? |
private java.util.List |
primaryKeyIndicies
List of primary keys |
private java.lang.String |
qualifiedAndQuotedTableName
|
private java.lang.String |
quotedIdChar
|
private PreparedStatement |
refresher
PreparedStatement used to refresh data |
private java.lang.String |
refreshSQL
|
private byte[][] |
savedCurrentRow
The binary data for the 'current' row |
private static byte[] |
STREAM_DATA_MARKER
Marker for 'stream' data when doing INSERT rows |
private java.lang.String |
tableOnlyName
|
private PreparedStatement |
updater
PreparedStatement used to delete data |
private java.lang.String |
updateSQL
SQL for in-place modifcation |
| Fields inherited from class com.mysql.jdbc.ResultSet |
catalog, columnNameToIndex, connection, currentRow, doingUpdates, fetchDirection, fetchSize, fields, firstCharOfQuery, fullColumnNameToIndex, isClosed, onInsertRow, owningStatement, reallyResult, resultSetConcurrency, resultSetType, rowData, serverInfo, thisRow, updateCount, updateId, warningChain, wasNullFlag |
| Fields inherited from interface java.sql.ResultSet |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Constructor Summary | |
UpdatableResultSet(Field[] fields,
RowData rows)
Creates a new UpdatableResultSet object. |
|
UpdatableResultSet(long updateCount,
long updateID)
Creates a new UpdatableResultSet object. |
|
UpdatableResultSet(java.lang.String catalog,
Field[] fields,
RowData rows,
Connection conn)
Create a new ResultSet - Note that we create ResultSets to represent the results of everything. |
|
| Method Summary | |
boolean |
absolute(int row)
JDBC 2.0 |
void |
afterLast()
JDBC 2.0 |
void |
beforeFirst()
JDBC 2.0 |
void |
cancelRowUpdates()
JDBC 2.0 The cancelRowUpdates() method may be called after calling an updateXXX() method(s) and before calling updateRow() to rollback the updates made to a row. |
protected void |
checkRowPos()
Ensures that the cursor is positioned on a valid row and that the result set is not closed |
private boolean |
checkUpdatability()
Is this ResultSet updateable? |
void |
clearWarnings()
After this call, getWarnings returns null until a new warning is reported for this ResultSet |
void |
close()
In some cases, it is desirable to immediately release a ResultSet database and JDBC resources instead of waiting for this to happen when it is automatically closed. |
void |
deleteRow()
JDBC 2.0 Delete the current row from the result set and the underlying database. |
private void |
extractDefaultValues()
|
boolean |
first()
JDBC 2.0 |
protected void |
generateStatements()
Figure out whether or not this ResultSet is updateable, and if so, generate the PreparedStatements to support updates. |
private SingleByteCharsetConverter |
getCharConverter()
|
int |
getConcurrency()
JDBC 2.0 Return the concurrency of this result set. |
private java.lang.String |
getQuotedIdChar()
|
private java.lang.String |
getTableName(Field field)
DOCUMENT ME! |
void |
insertRow()
JDBC 2.0 Insert the contents of the insert row into the result set and the database. |
boolean |
isAfterLast()
JDBC 2.0 |
boolean |
isBeforeFirst()
JDBC 2.0 |
boolean |
isFirst()
JDBC 2.0 |
boolean |
isLast()
JDBC 2.0 |
(package private) boolean |
isUpdatable()
|
boolean |
last()
JDBC 2.0 |
void |
moveToCurrentRow()
JDBC 2.0 Move the cursor to the remembered cursor position, usually the current row. |
void |
moveToInsertRow()
JDBC 2.0 Move to the insert row. |
boolean |
next()
A ResultSet is initially positioned before its first row, the first call to next makes the first row the current row; the second call makes the second row the current row, etc. |
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()
JDBC 2.0 |
void |
refreshRow()
JDBC 2.0 Refresh the value of the current row with its current value in the database. |
boolean |
relative(int rows)
JDBC 2.0 |
private void |
resetInserter()
|
boolean |
rowDeleted()
JDBC 2.0 Determine if this row has been deleted. |
boolean |
rowInserted()
JDBC 2.0 Determine if the current row has been inserted. |
boolean |
rowUpdated()
JDBC 2.0 Determine if the current row has been updated. |
protected void |
setResultSetConcurrency(int concurrencyFlag)
Sets the concurrency type of this result set |
(package private) void |
syncUpdate()
Reset UPDATE prepared statement to value in current row. |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
int length)
JDBC 2.0 Update a column with an ascii stream value. |
void |
updateAsciiStream(java.lang.String columnName,
java.io.InputStream x,
int length)
JDBC 2.0 Update a column with an ascii stream value. |
void |
updateBigDecimal(int columnIndex,
java.math.BigDecimal x)
JDBC 2.0 Update a column with a BigDecimal value. |
void |
updateBigDecimal(java.lang.String columnName,
java.math.BigDecimal x)
JDBC 2.0 Update a column with a BigDecimal value. |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
int length)
JDBC 2.0 Update a column with a binary stream value. |
void |
updateBinaryStream(java.lang.String columnName,
java.io.InputStream x,
int length)
JDBC 2.0 Update a column with a binary stream value. |
void |
updateBlob(int columnIndex,
java.sql.Blob blob)
This method updates the specified column to have a java.sql.Blob value. |
void |
updateBlob(java.lang.String columnName,
java.sql.Blob blob)
This method updates the specified column to have a java.sql.Blob value. |
void |
updateBoolean(int columnIndex,
boolean x)
JDBC 2.0 Update a column with a boolean value. |
void |
updateBoolean(java.lang.String columnName,
boolean x)
JDBC 2.0 Update a column with a boolean value. |
void |
updateByte(int columnIndex,
byte x)
JDBC 2.0 Update a column with a byte value. |
void |
updateByte(java.lang.String columnName,
byte x)
JDBC 2.0 Update a column with a byte value. |
void |
updateBytes(int columnIndex,
byte[] x)
JDBC 2.0 Update a column with a byte array value. |
void |
updateBytes(java.lang.String columnName,
byte[] x)
JDBC 2.0 Update a column with a byte array value. |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
int length)
JDBC 2.0 Update a column with a character stream value. |
void |
updateCharacterStream(java.lang.String columnName,
java.io.Reader reader,
int length)
JDBC 2.0 Update a column with a character stream value. |
void |
updateClob(int columnIndex,
java.sql.Clob clob)
This method updates the specified column to have a java.sql.Clob value. |
void |
updateDate(int columnIndex,
java.sql.Date x)
JDBC 2.0 Update a column with a Date value. |
void |
updateDate(java.lang.String columnName,
java.sql.Date x)
JDBC 2.0 Update a column with a Date value. |
void |
updateDouble(int columnIndex,
double x)
JDBC 2.0 Update a column with a Double value. |
void |
updateDouble(java.lang.String columnName,
double x)
JDBC 2.0 Update a column with a double value. |
void |
updateFloat(int columnIndex,
float x)
JDBC 2.0 Update a column with a float value. |
void |
updateFloat(java.lang.String columnName,
float x)
JDBC 2.0 Update a column with a float value. |
void |
updateInt(int columnIndex,
int x)
JDBC 2.0 Update a column with an integer value. |
void |
updateInt(java.lang.String columnName,
int x)
JDBC 2.0 Update a column with an integer value. |
void |
updateLong(int columnIndex,
long x)
JDBC 2.0 Update a column with a long value. |
void |
updateLong(java.lang.String columnName,
long x)
JDBC 2.0 Update a column with a long value. |
void |
updateNull(int columnIndex)
JDBC 2.0 Give a nullable column a null value. |
void |
updateNull(java.lang.String columnName)
JDBC 2.0 Update a column with a null value. |
void |
updateObject(int columnIndex,
java.lang.Object x)
JDBC 2.0 Update a column with an Object value. |
void |
updateObject(int columnIndex,
java.lang.Object x,
int scale)
JDBC 2.0 Update a column with an Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object x)
JDBC 2.0 Update a column with an Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object x,
int scale)
JDBC 2.0 Update a column with an Object value. |
void |
updateRow()
JDBC 2.0 Update the underlying database with the new contents of the current row. |
void |
updateShort(int columnIndex,
short x)
JDBC 2.0 Update a column with a short value. |
void |
updateShort(java.lang.String columnName,
short x)
JDBC 2.0 Update a column with a short value. |
void |
updateString(int columnIndex,
java.lang.String x)
JDBC 2.0 Update a column with a String value. |
void |
updateString(java.lang.String columnName,
java.lang.String x)
JDBC 2.0 Update a column with a String value. |
void |
updateTime(int columnIndex,
java.sql.Time x)
JDBC 2.0 Update a column with a Time value. |
void |
updateTime(java.lang.String columnName,
java.sql.Time x)
JDBC 2.0 Update a column with a Time value. |
void |
updateTimestamp(int columnIndex,
java.sql.Timestamp x)
JDBC 2.0 Update a column with a Timestamp value. |
void |
updateTimestamp(java.lang.String columnName,
java.sql.Timestamp x)
JDBC 2.0 Update a column with a Timestamp value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
STREAM_DATA_MARKER
private static final byte[] STREAM_DATA_MARKER
- Marker for 'stream' data when doing INSERT rows
primaryKeyIndicies
private java.util.List primaryKeyIndicies
- List of primary keys
deleter
private PreparedStatement deleter
- PreparedStatement used to delete data
inserter
private PreparedStatement inserter
- PreparedStatement used to insert data
refresher
private PreparedStatement refresher
- PreparedStatement used to refresh data
updater
private PreparedStatement updater
- PreparedStatement used to delete data
charConverter
private SingleByteCharsetConverter charConverter
charEncoding
private java.lang.String charEncoding
deleteSQL
private java.lang.String deleteSQL
insertSQL
private java.lang.String insertSQL
quotedIdChar
private java.lang.String quotedIdChar
refreshSQL
private java.lang.String refreshSQL
qualifiedAndQuotedTableName
private java.lang.String qualifiedAndQuotedTableName
tableOnlyName
private java.lang.String tableOnlyName
updateSQL
private java.lang.String updateSQL
- SQL for in-place modifcation
defaultColumnValue
private byte[][] defaultColumnValue
- What is the default value for the column?
savedCurrentRow
private byte[][] savedCurrentRow
- The binary data for the 'current' row
isUpdatable
private boolean isUpdatable
- Is this result set updateable?
initializedCharConverter
private boolean initializedCharConverter
| Constructor Detail |
UpdatableResultSet
public UpdatableResultSet(long updateCount,
long updateID)
- Creates a new UpdatableResultSet object.
UpdatableResultSet
public UpdatableResultSet(java.lang.String catalog, Field[] fields, RowData rows, Connection conn) throws java.sql.SQLException
- Create a new ResultSet - Note that we create ResultSets to represent the
results of everything.
UpdatableResultSet
public UpdatableResultSet(Field[] fields, RowData rows) throws java.sql.SQLException
- Creates a new UpdatableResultSet object.
| Method Detail |
isAfterLast
public boolean isAfterLast()
throws java.sql.SQLException
- JDBC 2.0
Determine if the cursor is after the last row in the result set.
- Specified by:
isAfterLastin interfacejava.sql.ResultSet- Overrides:
isAfterLastin classResultSet
isBeforeFirst
public boolean isBeforeFirst()
throws java.sql.SQLException
- JDBC 2.0
Determine if the cursor is before the first row in the result set.
- Specified by:
isBeforeFirstin interfacejava.sql.ResultSet- Overrides:
isBeforeFirstin classResultSet
getConcurrency
public int getConcurrency()
throws java.sql.SQLException
- JDBC 2.0 Return the concurrency of this result set. The concurrency
used is determined by the statement that created the result set.
- Specified by:
getConcurrencyin interfacejava.sql.ResultSet- Overrides:
getConcurrencyin classResultSet
isFirst
public boolean isFirst()
throws java.sql.SQLException
- JDBC 2.0
Determine if the cursor is on the first row of the result set.
- Specified by:
isFirstin interfacejava.sql.ResultSet- Overrides:
isFirstin classResultSet
isLast
public boolean isLast()
throws java.sql.SQLException
- JDBC 2.0
Determine if the cursor is on the last row of the result set. Note: Calling isLast() may be expensive since the JDBC driver might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.
- Specified by:
isLastin interfacejava.sql.ResultSet- Overrides:
isLastin classResultSet
absolute
public boolean absolute(int row)
throws java.sql.SQLException
- JDBC 2.0
Move to an absolute row number in the result set.
If row is positive, moves to an absolute row with respect to the beginning of the result set. The first row is row 1, the second is row 2, etc.
If row is negative, moves to an absolute row position with respect to the end of result set. For example, calling absolute(-1) positions the cursor on the last row, absolute(-2) indicates the next-to-last row, etc.
An attempt to position the cursor beyond the first/last row in the result set, leaves the cursor before/after the first/last row, respectively.
Note: Calling absolute(1) is the same as calling first(). Calling absolute(-1) is the same as calling last().
- Specified by:
absolutein interfacejava.sql.ResultSet- Overrides:
absolutein classResultSet
afterLast
public void afterLast()
throws java.sql.SQLException
- JDBC 2.0
Moves to the end of the result set, just after the last row. Has no effect if the result set contains no rows.
- Specified by:
afterLastin interfacejava.sql.ResultSet- Overrides:
afterLastin classResultSet
beforeFirst
public void beforeFirst()
throws java.sql.SQLException
- JDBC 2.0
Moves to the front of the result set, just before the first row. Has no effect if the result set contains no rows.
- Specified by:
beforeFirstin interfacejava.sql.ResultSet- Overrides:
beforeFirstin classResultSet
cancelRowUpdates
public void cancelRowUpdates()
throws java.sql.SQLException
- JDBC 2.0 The cancelRowUpdates() method may be called after calling an
updateXXX() method(s) and before calling updateRow() to rollback the
updates made to a row. If no updates have been made or updateRow()
has already been called, then this method has no effect.
- Specified by:
cancelRowUpdatesin interfacejava.sql.ResultSet- Overrides:
cancelRowUpdatesin classResultSet
clearWarnings
public void clearWarnings()
throws java.sql.SQLException
- After this call, getWarnings returns null until a new warning is
reported for this ResultSet
- Specified by:
clearWarningsin interfacejava.sql.ResultSet- Overrides:
clearWarningsin classResultSet
close
public void close()
throws java.sql.SQLException
- In some cases, it is desirable to immediately release a ResultSet
database and JDBC resources instead of waiting for this to happen when
it is automatically closed. The close method provides this immediate
release.
Note: A ResultSet is automatically closed by the Statement the Statement that generated it when that Statement is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results. A ResultSet is also automatically closed when it is garbage collected.
- Specified by:
closein interfacejava.sql.ResultSet- Overrides:
closein classResultSet
deleteRow
public void deleteRow()
throws java.sql.SQLException
- JDBC 2.0 Delete the current row from the result set and the underlying
database. Cannot be called when on the insert row.
- Specified by:
deleteRowin interfacejava.sql.ResultSet- Overrides:
deleteRowin classResultSet
first
public boolean first()
throws java.sql.SQLException
- JDBC 2.0
Moves to the first row in the result set.
- Specified by:
firstin interfacejava.sql.ResultSet- Overrides:
firstin classResultSet
insertRow
public void insertRow()
throws java.sql.SQLException
- JDBC 2.0 Insert the contents of the insert row into the result set and
the database. Must be on the insert row when this method is called.
- Specified by:
insertRowin interfacejava.sql.ResultSet- Overrides:
insertRowin classResultSet
last
public boolean last()
throws java.sql.SQLException
- JDBC 2.0
Moves to the last row in the result set.
- Specified by:
lastin interfacejava.sql.ResultSet- Overrides:
lastin classResultSet
moveToCurrentRow
public void moveToCurrentRow()
throws java.sql.SQLException
- JDBC 2.0 Move the cursor to the remembered cursor position, usually the
current row. Has no effect unless the cursor is on the insert row.
- Specified by:
moveToCurrentRowin interfacejava.sql.ResultSet- Overrides:
moveToCurrentRowin classResultSet
moveToInsertRow
public void moveToInsertRow()
throws java.sql.SQLException
- JDBC 2.0 Move to the insert row. The current cursor position is
remembered while the cursor is positioned on the insert row. The insert
row is a special row associated with an updatable result set. It is
essentially a buffer where a new row may be constructed by calling the
updateXXX() methods prior to inserting the row into the result set.
Only the updateXXX(), getXXX(), and insertRow() methods may be called
when the cursor is on the insert row. All of the columns in a result
set must be given a value each time this method is called before
calling insertRow(). UpdateXXX()must be called before getXXX() on a
column.
- Specified by:
moveToInsertRowin interfacejava.sql.ResultSet- Overrides:
moveToInsertRowin classResultSet
next
public boolean next()
throws java.sql.SQLException
- A ResultSet is initially positioned before its first row, the first call
to next makes the first row the current row; the second call makes the
second row the current row, etc.
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
- Specified by:
nextin interfacejava.sql.ResultSet- Overrides:
nextin classResultSet
prev
public boolean prev()
throws java.sql.SQLException
- 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.
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
previous
public boolean previous()
throws java.sql.SQLException
- JDBC 2.0
Moves to the previous row in the result set.
Note: previous() is not the same as relative(-1) since it makes sense to call previous() when there is no current row.
- Specified by:
previousin interfacejava.sql.ResultSet- Overrides:
previousin classResultSet
refreshRow
public void refreshRow()
throws java.sql.SQLException
- JDBC 2.0 Refresh the value of the current row with its current value in
the database. Cannot be called when on the insert row. The
refreshRow() method provides a way for an application to explicitly
tell the JDBC driver to refetch a row(s) from the database. An
application may want to call refreshRow() when caching or prefetching
is being done by the JDBC driver to fetch the latest value of a row
from the database. The JDBC driver may actually refresh multiple rows
at once if the fetch size is greater than one. All values are
refetched subject to the transaction isolation level and cursor
sensitivity. If refreshRow() is called after calling updateXXX(), but
before calling updateRow() then the updates made to the row are lost.
Calling refreshRow() frequently will likely slow performance.
- Specified by:
refreshRowin interfacejava.sql.ResultSet- Overrides:
refreshRowin classResultSet
relative
public boolean relative(int rows)
throws java.sql.SQLException
- JDBC 2.0
Moves a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Calling relative(0) is valid, but does not change the cursor position.
Note: Calling relative(1) is different than calling next() since is makes sense to call next() when there is no current row, for example, when the cursor is positioned before the first row or after the last row of the result set.
- Specified by:
relativein interfacejava.sql.ResultSet- Overrides:
relativein classResultSet
rowDeleted
public boolean rowDeleted()
throws java.sql.SQLException
- JDBC 2.0 Determine if this row has been deleted. A deleted row may
leave a visible "hole" in a result set. This method can be used to
detect holes in a result set. The value returned depends on whether or
not the result set can detect deletions.
- Specified by:
rowDeletedin interfacejava.sql.ResultSet- Overrides:
rowDeletedin classResultSet
rowInserted
public boolean rowInserted()
throws java.sql.SQLException
- JDBC 2.0 Determine if the current row has been inserted. The value
returned depends on whether or not the result set can detect visible
inserts.
- Specified by:
rowInsertedin interfacejava.sql.ResultSet- Overrides:
rowInsertedin classResultSet
rowUpdated
public boolean rowUpdated()
throws java.sql.SQLException
- JDBC 2.0 Determine if the current row has been updated. The value
returned depends on whether or not the result set can detect updates.
- Specified by:
rowUpdatedin interfacejava.sql.ResultSet- Overrides:
rowUpdatedin classResultSet
updateAsciiStream
public void updateAsciiStream(int columnIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
- JDBC 2.0 Update a column with an ascii stream value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSet
updateAsciiStream
public void updateAsciiStream(java.lang.String columnName, java.io.InputStream x, int length) throws java.sql.SQLException
- JDBC 2.0 Update a column with an ascii stream value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResultSet
updateBigDecimal
public void updateBigDecimal(int columnIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a BigDecimal value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Overrides:
updateBigDecimalin classResultSet
updateBigDecimal
public void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a BigDecimal value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Overrides:
updateBigDecimalin classResultSet
updateBinaryStream
public void updateBinaryStream(int columnIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a binary stream value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSet
updateBinaryStream
public void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length) throws java.sql.SQLException
- JDBC 2.0 Update a column with a binary stream value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResultSet
updateBlob
public void updateBlob(int columnIndex,
java.sql.Blob blob)
throws java.sql.SQLException
- Description copied from interface:
java.sql.ResultSet - This method updates the specified column to have a
java.sql.Blobvalue. This does not update the actual database.updateRowmust be called in order to do that.- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSet
updateBlob
public void updateBlob(java.lang.String columnName, java.sql.Blob blob) throws java.sql.SQLException
- Description copied from interface:
java.sql.ResultSet - This method updates the specified column to have a
java.sql.Blobvalue. This does not update the actual database.updateRowmust be called in order to do that.- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResultSet
updateBoolean
public void updateBoolean(int columnIndex,
boolean x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a boolean value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Overrides:
updateBooleanin classResultSet
updateBoolean
public void updateBoolean(java.lang.String columnName, boolean x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a boolean value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Overrides:
updateBooleanin classResultSet
updateByte
public void updateByte(int columnIndex,
byte x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a byte value. The updateXXX() methods are
used to update column values in the current row, or the insert row. The
updateXXX() methods do not update the underlying database, instead the
updateRow() or insertRow() methods are called to update the database.
- Specified by:
updateBytein interfacejava.sql.ResultSet- Overrides:
updateBytein classResultSet
updateByte
public void updateByte(java.lang.String columnName, byte x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a byte value. The updateXXX() methods are
used to update column values in the current row, or the insert row. The
updateXXX() methods do not update the underlying database, instead the
updateRow() or insertRow() methods are called to update the database.
- Specified by:
updateBytein interfacejava.sql.ResultSet- Overrides:
updateBytein classResultSet
updateBytes
public void updateBytes(int columnIndex,
byte[] x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a byte array value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateBytesin interfacejava.sql.ResultSet- Overrides:
updateBytesin classResultSet
updateBytes
public void updateBytes(java.lang.String columnName, byte[] x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a byte array value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateBytesin interfacejava.sql.ResultSet- Overrides:
updateBytesin classResultSet
updateCharacterStream
public void updateCharacterStream(int columnIndex,
java.io.Reader x,
int length)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a character stream value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSet
updateCharacterStream
public void updateCharacterStream(java.lang.String columnName, java.io.Reader reader, int length) throws java.sql.SQLException
- JDBC 2.0 Update a column with a character stream value. The updateXXX()
methods are used to update column values in the current row, or the
insert row. The updateXXX() methods do not update the underlying
database, instead the updateRow() or insertRow() methods are called to
update the database.
- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResultSet
updateClob
public void updateClob(int columnIndex,
java.sql.Clob clob)
throws java.sql.SQLException
- Description copied from interface:
java.sql.ResultSet - This method updates the specified column to have a
java.sql.Clobvalue. This does not update the actual database.updateRowmust be called in order to do that.- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResultSet
updateDate
public void updateDate(int columnIndex,
java.sql.Date x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a Date value. The updateXXX() methods are
used to update column values in the current row, or the insert row. The
updateXXX() methods do not update the underlying database, instead the
updateRow() or insertRow() methods are called to update the database.
- Specified by:
updateDatein interfacejava.sql.ResultSet- Overrides:
updateDatein classResultSet
updateDate
public void updateDate(java.lang.String columnName, java.sql.Date x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a Date value. The updateXXX() methods are
used to update column values in the current row, or the insert row. The
updateXXX() methods do not update the underlying database, instead the
updateRow() or insertRow() methods are called to update the database.
- Specified by:
updateDatein interfacejava.sql.ResultSet- Overrides:
updateDatein classResultSet
updateDouble
public void updateDouble(int columnIndex,
double x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a Double value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateDoublein interfacejava.sql.ResultSet- Overrides:
updateDoublein classResultSet
updateDouble
public void updateDouble(java.lang.String columnName, double x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a double value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateDoublein interfacejava.sql.ResultSet- Overrides:
updateDoublein classResultSet
updateFloat
public void updateFloat(int columnIndex,
float x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a float value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateFloatin interfacejava.sql.ResultSet- Overrides:
updateFloatin classResultSet
updateFloat
public void updateFloat(java.lang.String columnName, float x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a float value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateFloatin interfacejava.sql.ResultSet- Overrides:
updateFloatin classResultSet
updateInt
public void updateInt(int columnIndex,
int x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with an integer value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateIntin interfacejava.sql.ResultSet- Overrides:
updateIntin classResultSet
updateInt
public void updateInt(java.lang.String columnName, int x) throws java.sql.SQLException
- JDBC 2.0 Update a column with an integer value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateIntin interfacejava.sql.ResultSet- Overrides:
updateIntin classResultSet
updateLong
public void updateLong(int columnIndex,
long x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with a long value. The updateXXX() methods are
used to update column values in the current row, or the insert row. The
updateXXX() methods do not update the underlying database, instead the
updateRow() or insertRow() methods are called to update the database.
- Specified by:
updateLongin interfacejava.sql.ResultSet- Overrides:
updateLongin classResultSet
updateLong
public void updateLong(java.lang.String columnName, long x) throws java.sql.SQLException
- JDBC 2.0 Update a column with a long value. The updateXXX() methods are
used to update column values in the current row, or the insert row. The
updateXXX() methods do not update the underlying database, instead the
updateRow() or insertRow() methods are called to update the database.
- Specified by:
updateLongin interfacejava.sql.ResultSet- Overrides:
updateLongin classResultSet
updateNull
public void updateNull(int columnIndex)
throws java.sql.SQLException
- JDBC 2.0 Give a nullable column a null value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateNullin interfacejava.sql.ResultSet- Overrides:
updateNullin classResultSet
updateNull
public void updateNull(java.lang.String columnName) throws java.sql.SQLException
- JDBC 2.0 Update a column with a null value. The updateXXX() methods are
used to update column values in the current row, or the insert row. The
updateXXX() methods do not update the underlying database, instead the
updateRow() or insertRow() methods are called to update the database.
- Specified by:
updateNullin interfacejava.sql.ResultSet- Overrides:
updateNullin classResultSet
updateObject
public void updateObject(int columnIndex,
java.lang.Object x,
int scale)
throws java.sql.SQLException
- JDBC 2.0 Update a column with an Object value. The updateXXX() methods
are used to update column values in the current row, or the insert row.
The updateXXX() methods do not update the underlying database, instead
the updateRow() or insertRow() methods are called to update the
database.
- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResultSet
updateObject
public void updateObject(int columnIndex,
java.lang.Object x)
throws java.sql.SQLException
- JDBC 2.0 Update a column with an Object value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are cal
JAVADOC