public class IfxUpdateResultSet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected IfxConnection |
conn |
protected java.lang.String |
deleteCmd |
protected java.lang.String |
insertCmd |
protected boolean |
isForUpdateClause |
protected boolean |
MoveToInsert |
protected IfxResultSetMetaData |
rsmd |
protected IfxStatement |
stmt |
protected Trace |
trace |
protected boolean |
updatecanceled |
protected java.lang.String |
updateCmd |
protected java.util.Vector<IfxObject> |
UpdateColVector |
protected java.util.Vector<IfxObject> |
WhereVal |
| Constructor and Description |
|---|
IfxUpdateResultSet(IfxConnection con,
IfxStatement stmt) |
| Modifier and Type | Method and Description |
|---|---|
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 |
clearUpdateColVector() |
void |
deleteRow()
JDBC 2.0
Delete the current row from the result set and the underlying
database.
|
void |
insertRow()
JDBC 2.0
Insert the contents of the insert row into the result set and
the database.
|
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.
|
void |
refreshRow()
JDBC 2.0
Refresh the value of the current row with its current value in
the database.
|
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.
|
void |
updateArray(int columnIndex,
java.sql.Array x)
JDBC 3.0
Update a column with an Array value.
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
long 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 |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
JDBC 2.0
Update a column with a binary stream value.
|
void |
updateBlob(int columnIndex,
java.sql.Blob x)
JDBC 3.0
Update a column with a Blob value.
|
void |
updateBoolean(int columnIndex,
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 |
updateBytes(int columnIndex,
byte[] x)
JDBC 2.0
Update a column with a byte array value.
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
JDBC 2.0
Update a column with a character stream value.
|
void |
updateClob(int columnIndex,
java.sql.Clob x)
JDBC 3.0
Update a column with a Clob value.
|
void |
updateDate(int columnIndex,
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 |
updateFloat(int columnIndex,
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 |
updateLong(int columnIndex,
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 |
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 |
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 |
updateString(int columnIndex,
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 |
updateTimestamp(int columnIndex,
java.sql.Timestamp x)
JDBC 2.0
Update a column with a Timestamp value.
|
protected java.util.Vector<IfxObject> UpdateColVector
protected Trace trace
protected final IfxConnection conn
protected IfxResultSetMetaData rsmd
protected final IfxStatement stmt
protected java.util.Vector<IfxObject> WhereVal
protected java.lang.String updateCmd
protected java.lang.String deleteCmd
protected java.lang.String insertCmd
protected boolean MoveToInsert
protected boolean updatecanceled
protected boolean isForUpdateClause
public IfxUpdateResultSet(IfxConnection con, IfxStatement stmt)
public boolean rowUpdated()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occursDatabaseMetaData.updatesAreDetected(int)public boolean rowInserted()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occursDatabaseMetaData.insertsAreDetected(int)public boolean rowDeleted()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occursDatabaseMetaData.deletesAreDetected(int)public void updateNull(int columnIndex)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...java.sql.SQLException - if a database-access error occurspublic void updateBoolean(int columnIndex,
boolean x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateByte(int columnIndex,
byte x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateShort(int columnIndex,
short x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateArray(int columnIndex,
java.sql.Array x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateClob(int columnIndex,
java.sql.Clob x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateBlob(int columnIndex,
java.sql.Blob x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateInt(int columnIndex,
int x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateLong(int columnIndex,
long x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateFloat(int columnIndex,
float x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateDouble(int columnIndex,
double x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateBigDecimal(int columnIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateString(int columnIndex,
java.lang.String x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateBytes(int columnIndex,
byte[] x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateDate(int columnIndex,
java.sql.Date x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateTime(int columnIndex,
java.sql.Time x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateTimestamp(int columnIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuelength - the length of the streamjava.sql.SQLException - if a database-access error occurspublic void updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuelength - the length of the streamjava.sql.SQLException - if a database-access error occurspublic void updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuelength - the length of the streamjava.sql.SQLException - if a database-access error occurspublic void updateObject(int columnIndex,
java.lang.Object x,
int scale)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuescale - For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types
this is the number of digits after the decimal. For all other
types this value will be ignored.java.sql.SQLException - if a database-access error occurspublic void updateObject(int columnIndex,
java.lang.Object x)
throws java.sql.SQLException
columnIndex - the first column is 1, the second is 2, ...x - the new column valuejava.sql.SQLException - if a database-access error occurspublic void insertRow()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs,
if called when not on the insert row, or if all non-nullable columns in
the insert row have not been given a valuepublic void updateRow()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs, or
if called when on the insert rowpublic void deleteRow()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs, or if
called when on the insert row.public void refreshRow()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs, or if
called when on the insert row.public void cancelRowUpdates()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs, or if
called when on the insert row.public void moveToInsertRow()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs,
or the result set is not updatablepublic void moveToCurrentRow()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs,
or the result set is not updatableprotected void clearUpdateColVector()