org.apache.derby.impl.jdbc
Class EmbedResultSet20

java.lang.Object
  extended byorg.apache.derby.impl.jdbc.ConnectionChild
      extended byorg.apache.derby.impl.jdbc.EmbedResultSet
          extended byorg.apache.derby.impl.jdbc.EmbedResultSet20
All Implemented Interfaces:
java.lang.Comparable, java.sql.ResultSet

public class EmbedResultSet20
extends EmbedResultSet

This class extends the EmbedResultSet class in order to support new methods and classes that come with JDBC 2.0.

Author:
francois
See Also:
EmbedResultSet

Field Summary
private  int fetchDirection
           
private  int fetchSize
           
 
Fields inherited from class org.apache.derby.impl.jdbc.EmbedResultSet
ABSOLUTE, AFTERLAST, BEFOREFIRST, currentRow, finalizeActivation, FIRST, isAtomic, isClosed, LAST, NEXT, order, PREVIOUS, RELATIVE, stmt, theResults, wasNull
 
Fields inherited from class org.apache.derby.impl.jdbc.ConnectionChild
CLOSE, factory, localConn, NOCLOSE
 
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
EmbedResultSet20(EmbedConnection conn, ResultSet resultsToWrap, boolean forMetaData, EmbedStatement stmt, boolean isAtomic)
          This class provides the glue between the Cloudscape resultset and the JDBC resultset, mapping calls-to-calls.
 
Method Summary
 boolean absolute(int row)
          JDBC 2.0 Move to an absolute row number in the result set.
 void afterLast()
          JDBC 2.0 Moves to the end of the result set, just after the last row.
 void beforeFirst()
          JDBC 2.0 Moves to the front of the result set, just before the first row.
 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.
private  boolean checkRowPosition(int position, java.lang.String positionText)
           
private  void checkScrollCursor(java.lang.String methodName)
           
 void deleteRow()
          JDBC 2.0 Delete the current row from the result set and the underlying database.
 boolean first()
          JDBC 2.0 Moves to the first row in the result set.
 java.sql.Array getArray(int i)
          JDBC 2.0 Get an array column.
 java.sql.Array getArray(java.lang.String colName)
          JDBC 2.0 Get an array column.
 java.math.BigDecimal getBigDecimal(int columnIndex)
           
 java.math.BigDecimal getBigDecimal(int columnIndex, int scale)
          Get the value of a column in the current row as a java.lang.BigDecimal object.
 java.math.BigDecimal getBigDecimal(java.lang.String columnName)
          JDBC 2.0 Get the value of a column in the current row as a java.math.BigDecimal object.
 java.math.BigDecimal getBigDecimal(java.lang.String columnName, int scale)
          Get the value of a column in the current row as a java.lang.BigDecimal object.
 java.sql.Blob getBlob(int columnIndex)
          JDBC 2.0 Get a BLOB column.
 java.sql.Blob getBlob(java.lang.String columnName)
          JDBC 2.0 Get a BLOB column.
 java.sql.Clob getClob(int columnIndex)
          JDBC 2.0 Get a CLOB column.
 java.sql.Clob getClob(java.lang.String columnName)
          JDBC 2.0 Get a CLOB column.
 int getConcurrency()
          JDBC 2.0 Return the concurrency of this result set.
 int getFetchDirection()
          JDBC 2.0 Return the fetch direction for this result set.
 int getFetchSize()
          JDBC 2.0 Return the fetch size for this result set.
 java.lang.Object getObject(int columnIndex, java.util.Map map)
          JDBC 2.0 Returns the value of column @i as a Java object.
 java.lang.Object getObject(java.lang.String colName, java.util.Map map)
          JDBC 2.0 Returns the value of column @i as a Java object.
 java.sql.Ref getRef(int i)
          JDBC 2.0 Get a REF(<structured-type>) column.
 java.sql.Ref getRef(java.lang.String colName)
          JDBC 2.0 Get a REF(<structured-type>) column.
 int getRow()
          JDBC 2.0 Determine the current row number.
 java.sql.Statement getStatement()
          JDBC 2.0 Return the Statement that produced the ResultSet.
 int getType()
          JDBC 2.0 Return the type of this result set.
 java.io.InputStream getUnicodeStream(int columnIndex)
          JDBC 2.0 Deprecated in JDBC 2.0, not supported by JCC.
 java.io.InputStream getUnicodeStream(java.lang.String columnName)
          Deprecated in JDBC 2.0, not supported by JCC.
 java.net.URL getURL(int columnIndex)
          JDBC 3.0 Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
 java.net.URL getURL(java.lang.String columnName)
          JDBC 3.0 Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
 void insertRow()
          JDBC 2.0 Insert the contents of the insert row into the result set and the database.
 boolean isAfterLast()
          JDBC 2.0 Determine if the cursor is after the last row in the result set.
 boolean isBeforeFirst()
          JDBC 2.0 Determine if the cursor is before the first row in the result set.
 boolean isFirst()
          JDBC 2.0 Determine if the cursor is on the first row of the result set.
 boolean isLast()
          JDBC 2.0 Determine if the cursor is on the last row of the result set.
 boolean last()
          JDBC 2.0 Moves to the last row in the result set.
 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 previous()
          JDBC 2.0 Moves to the previous row in the result set.
 void refreshRow()
          JDBC 2.0 Refresh the value of the current row with its current value in the database.
 boolean relative(int row)
          JDBC 2.0 Moves a relative number of rows, either positive or negative.
 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 setFetchDirection(int direction)
          JDBC 2.0 Give a hint as to the direction in which the rows in this result set will be processed.
 void setFetchSize(int rows)
          JDBC 2.0 Give the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this result set.
 void updateArray(int columnIndex, java.sql.Array x)
          JDBC 3.0 Updates the designated column with a java.sql.Array value.
 void updateArray(java.lang.String columnName, java.sql.Array x)
          JDBC 3.0 Updates the designated column with a java.sql.Array value.
 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 x)
          JDBC 3.0 Updates the designated column with a java.sql.Blob value.
 void updateBlob(java.lang.String columnName, java.sql.Blob x)
          JDBC 3.0 Updates the designated column with 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 x)
          JDBC 3.0 Updates the designated column with a java.sql.Clob value.
 void updateClob(java.lang.String columnName, java.sql.Clob x)
          JDBC 3.0 Updates the designated column with 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 updateRef(int columnIndex, java.sql.Ref x)
          JDBC 3.0 Updates the designated column with a java.sql.Ref value.
 void updateRef(java.lang.String columnName, java.sql.Ref x)
          JDBC 3.0 Updates the designated column with a java.sql.Ref 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 org.apache.derby.impl.jdbc.EmbedResultSet
checkExecIfClosed, checkIfClosed, checkOnRow, clearWarnings, close, closeCurrentStream, closeOnTransactionError, compareTo, dataTypeConversion, finalize, findColumn, findColumnName, getAsciiStream, getAsciiStream, getBinaryStream, getBinaryStream, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getColumn, getColumnType, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getParameterValueSet, getShort, getShort, getSQLText, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getWarnings, isForUpdate, movePosition, movePosition, newEmbedResultSetMetaData, next, noStateChangeException, setDynamicResultSet, wasNull
 
Methods inherited from class org.apache.derby.impl.jdbc.ConnectionChild
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getContextManager, getDatabase, getEmbedConnection, handleException, handleException, needCommit, newSQLException, newSQLException, newSQLException, restoreContextStack, setupContextStack
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fetchDirection

private int fetchDirection

fetchSize

private int fetchSize
Constructor Detail

EmbedResultSet20

public EmbedResultSet20(EmbedConnection conn,
                        ResultSet resultsToWrap,
                        boolean forMetaData,
                        EmbedStatement stmt,
                        boolean isAtomic)
This class provides the glue between the Cloudscape resultset and the JDBC resultset, mapping calls-to-calls.

Method Detail

getBigDecimal

public final java.math.BigDecimal getBigDecimal(int columnIndex,
                                                int scale)
                                         throws java.sql.SQLException
Get the value of a column in the current row as a java.lang.BigDecimal object.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
scale - the number of digits to the right of the decimal
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
java.sql.SQLException - thrown on failure.

getBigDecimal

public final java.math.BigDecimal getBigDecimal(int columnIndex)
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

getBigDecimal

public final java.math.BigDecimal getBigDecimal(java.lang.String columnName,
                                                int scale)
                                         throws java.sql.SQLException
Get the value of a column in the current row as a java.lang.BigDecimal object.

Parameters:
columnName - is the SQL name of the column
scale - the number of digits to the right of the decimal
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
java.sql.SQLException - thrown on failure.

getStatement

public final java.sql.Statement getStatement()
JDBC 2.0 Return the Statement that produced the ResultSet.

Returns:
the Statment that produced the result set, or null if the result was produced some other way.

getUnicodeStream

public final java.io.InputStream getUnicodeStream(int columnIndex)
                                           throws java.sql.SQLException
JDBC 2.0 Deprecated in JDBC 2.0, not supported by JCC.

Throws:
java.sql.SQLException - thrown on failure.

getUnicodeStream

public final java.io.InputStream getUnicodeStream(java.lang.String columnName)
                                           throws java.sql.SQLException
Deprecated in JDBC 2.0, not supported by JCC.

Throws:
java.sql.SQLException - thrown on failure.

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String columnName)
                                   throws java.sql.SQLException
JDBC 2.0 Get the value of a column in the current row as a java.math.BigDecimal object.

Throws:
java.sql.SQLException - Feature not implemented for now.

isBeforeFirst

public boolean isBeforeFirst()
                      throws java.sql.SQLException
JDBC 2.0

Determine if the cursor is before the first row in the result set.

Returns:
true if before the first row, false otherwise. Returns false when the result set contains no rows.
Throws:
java.sql.SQLException - Thrown on error.

isAfterLast

public boolean isAfterLast()
                    throws java.sql.SQLException
JDBC 2.0

Determine if the cursor is after the last row in the result set.

Returns:
true if after the last row, false otherwise. Returns false when the result set contains no rows.
Throws:
java.sql.SQLException - Thrown on error.

isFirst

public boolean isFirst()
                throws java.sql.SQLException
JDBC 2.0

Determine if the cursor is on the first row of the result set.

Returns:
true if on the first row, false otherwise.
Throws:
java.sql.SQLException - Thrown on error.

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.

Returns:
true if on the last row, false otherwise.
Throws:
java.sql.SQLException - Thrown on error.

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.

Throws:
java.sql.SQLException - if a database-access error occurs, or result set type is TYPE_FORWARD_ONLY

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.

Throws:
java.sql.SQLException - if a database-access error occurs, or result set type is TYPE_FORWARD_ONLY.

first

public boolean first()
              throws java.sql.SQLException
JDBC 2.0

Moves to the first row in the result set.

Returns:
true if on a valid row, false if no rows in the result set.
Throws:
java.sql.SQLException - if a database-access error occurs, or result set type is TYPE_FORWARD_ONLY.

last

public boolean last()
             throws java.sql.SQLException
JDBC 2.0

Moves to the last row in the result set.

Returns:
true if on a valid row, false if no rows in the result set.
Throws:
java.sql.SQLException - if a database-access error occurs, or result set type is TYPE_FORWARD_ONLY.

getRow

public int getRow()
           throws java.sql.SQLException
JDBC 2.0

Determine the current row number. The first row is number 1, the second number 2, etc.

Returns:
the current row number, else return 0 if there is no current row
Throws:
java.sql.SQLException - if a database-access error occurs.

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().

Returns:
true if on the result set, false if off.
Throws:
java.sql.SQLException - if a database-access error occurs, or row is 0, or result set type is TYPE_FORWARD_ONLY.

relative

public boolean relative(int row)
                 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.

Returns:
true if on a row, false otherwise.
Throws:
java.sql.SQLException - if a database-access error occurs, or there is no current row, or result set type is TYPE_FORWARD_ONLY.

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.

Returns:
true if on a valid row, false if off the result set.
Throws:
java.sql.SQLException - if a database-access error occurs, or result set type is TYPE_FORWAR_DONLY.

setFetchDirection

public void setFetchDirection(int direction)
                       throws java.sql.SQLException
JDBC 2.0 Give a hint as to the direction in which the rows in this result set will be processed. The initial value is determined by the statement that produced the result set. The fetch direction may be changed at any time.

Throws:
java.sql.SQLException - if a database-access error occurs, or the result set type is TYPE_FORWARD_ONLY and direction is not FETCH_FORWARD.

getFetchDirection

public int getFetchDirection()
                      throws java.sql.SQLException
JDBC 2.0 Return the fetch direction for this result set.

Throws:
java.sql.SQLException - if a database-access error occurs

setFetchSize

public void setFetchSize(int rows)
                  throws java.sql.SQLException
JDBC 2.0 Give the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this result set. If the fetch size specified is zero, then the JDBC driver ignores the value, and is free to make its own best guess as to what the fetch size should be. The default value is set by the statement that creates the result set. The fetch size may be changed at any time.

Parameters:
rows - the number of rows to fetch
Throws:
java.sql.SQLException - if a database-access error occurs, or the condition 0 <= rows <= this.getMaxRows() is not satisfied.

getFetchSize

public int getFetchSize()
                 throws java.sql.SQLException
JDBC 2.0 Return the fetch size for this result set.

Throws:
java.sql.SQLException - if a database-access error occurs

getType

public int getType()
            throws java.sql.SQLException
JDBC 2.0 Return the type of this result set. The type is determined based on the statement that created the result set.

Returns:
TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, or TYPE_SCROLL_SENSITIVE
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Returns:
the concurrency type, CONCUR_READ_ONLY, etc.
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Returns:
true if the row has been visibly updated by the owner or another, and updates are detected
Throws:
java.sql.SQLException - if a database-access error occurs
See Also:
EmbedDatabaseMetaData.updatesAreDetected(int)

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.

Returns:
true if inserted and inserts are detected
Throws:
java.sql.SQLException - if a database-access error occurs
See Also:
EmbedDatabaseMetaData.insertsAreDetected(int)

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.

Returns:
true if deleted and deletes are detected
Throws:
java.sql.SQLException - if a database-access error occurs
See Also:
EmbedDatabaseMetaData.deletesAreDetected(int)

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateShort

public void updateShort(int columnIndex,
                        short x)
                 throws java.sql.SQLException
JDBC 2.0 Update a column with a short 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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateString

public void updateString(int columnIndex,
                         java.lang.String x)
                  throws java.sql.SQLException
JDBC 2.0 Update a column with a String 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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateTime

public void updateTime(int columnIndex,
                       java.sql.Time x)
                throws java.sql.SQLException
JDBC 2.0 Update a column with a Time 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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateTimestamp

public void updateTimestamp(int columnIndex,
                            java.sql.Timestamp x)
                     throws java.sql.SQLException
JDBC 2.0 Update a column with a Timestamp 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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
length - the length of the stream
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
length - the length of the stream
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
length - the length of the stream
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
scale - 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.
Throws:
java.sql.SQLException - if a database-access error occurs

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 called to update the database.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateShort

public void updateShort(java.lang.String columnName,
                        short x)
                 throws java.sql.SQLException
JDBC 2.0 Update a column with a short 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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateString

public void updateString(java.lang.String columnName,
                         java.lang.String x)
                  throws java.sql.SQLException
JDBC 2.0 Update a column with a String 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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateTime

public void updateTime(java.lang.String columnName,
                       java.sql.Time x)
                throws java.sql.SQLException
JDBC 2.0 Update a column with a Time 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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

updateTimestamp

public void updateTimestamp(java.lang.String columnName,
                            java.sql.Timestamp x)
                     throws java.sql.SQLException
JDBC 2.0 Update a column with a Timestamp 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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
length - of the stream
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
x - the new column value
length - of the stream
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Parameters:
columnName - the name of the column
length - of the stream
Throws:
java.sql.SQLException - if a database-access error occurs

updateObject

public void updateObject(java.lang.String columnName,
                         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.

Parameters:
columnName - the name of the column
x - the new column value
scale - 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.
Throws:
java.sql.SQLException - if a database-access error occurs

updateObject

public void updateObject(java.lang.String columnName,
                         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 called to update the database.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
java.sql.SQLException - if a database-access error occurs

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.

Throws:
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 value

updateRow

public void updateRow()
               throws java.sql.SQLException
JDBC 2.0 Update the underlying database with the new contents of the current row. Cannot be called when on the insert row.

Throws:
java.sql.SQLException - if a database-access error occurs, or if called when on the insert row

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.

Throws:
java.sql.SQLException - if a database-access error occurs, or if called when on the insert row.

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.

Throws:
java.sql.SQLException - if a database-access error occurs, or if called when on the insert row.

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.

Throws:
java.sql.SQLException - if a database-access error occurs, or if called when on the insert row.

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.

Throws:
java.sql.SQLException - if a database-access error occurs, or the result set is not updatable

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.

Throws:
java.sql.SQLException - if a database-access error occurs, or the result set is not updatable

getObject

public java.lang.Object getObject(int columnIndex,
                                  java.util.Map map)
                           throws java.sql.SQLException
JDBC 2.0 Returns the value of column @i as a Java object. Use the param map to determine the class from which to construct data of SQL structured and distinct types.

Parameters:
map - the mapping from SQL type names to Java classes
Returns:
an object representing the SQL value
Throws:
java.sql.SQLException - Feature not implemented for now.

getRef

public java.sql.Ref getRef(int i)
                    throws java.sql.SQLException
JDBC 2.0 Get a REF(<structured-type>) column.

Parameters:
i - the first column is 1, the second is 2, ...
Returns:
an object representing data of an SQL REF type
Throws:
java.sql.SQLException - Feature not implemented for now.

getBlob

public java.sql.Blob getBlob(int columnIndex)
                      throws java.sql.SQLException
JDBC 2.0 Get a BLOB column.

Returns:
an object representing a BLOB
Throws:
java.sql.SQLException

getClob

public final java.sql.Clob getClob(int columnIndex)
                            throws java.sql.SQLException
JDBC 2.0 Get a CLOB column.

Returns:
an object representing a CLOB
Throws:
java.sql.SQLException

getArray

public java.sql.Array getArray(int i)
                        throws java.sql.SQLException
JDBC 2.0 Get an array column.

Parameters:
i - the first column is 1, the second is 2, ...
Returns:
an object representing an SQL array
Throws:
java.sql.SQLException - Feature not implemented for now.

getObject

public java.lang.Object getObject(java.lang.String colName,
                                  java.util.Map map)
                           throws java.sql.SQLException
JDBC 2.0 Returns the value of column @i as a Java object. Use the param map to determine the class from which to construct data of SQL structured and distinct types.

Parameters:
colName - the column name
map - the mapping from SQL type names to Java classes
Returns:
an object representing the SQL value
Throws:
java.sql.SQLException - Feature not implemented for now.

getRef

public java.sql.Ref getRef(java.lang.String colName)
                    throws java.sql.SQLException
JDBC 2.0 Get a REF(<structured-type>) column.

Parameters:
colName - the column name
Returns:
an object representing data of an SQL REF type
Throws:
java.sql.SQLException - Feature not implemented for now.

getBlob

public final java.sql.Blob getBlob(java.lang.String columnName)
                            throws java.sql.SQLException
JDBC 2.0 Get a BLOB column.

Returns:
an object representing a BLOB
Throws:
java.sql.SQLException

getClob

public final java.sql.Clob getClob(java.lang.String columnName)
                            throws java.sql.SQLException
JDBC 2.0 Get a CLOB column.

Returns:
an object representing a CLOB
Throws:
java.sql.SQLException - Feature not implemented for now.

getArray

public java.sql.Array getArray(java.lang.String colName)
                        throws java.sql.SQLException
JDBC 2.0 Get an array column.

Parameters:
colName - the column name
Returns:
an object representing an SQL array
Throws:
java.sql.SQLException - Feature not implemented for now.

checkScrollCursor

private void checkScrollCursor(java.lang.String methodName)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getURL

public java.net.URL getURL(int columnIndex)
                    throws java.sql.SQLException
JDBC 3.0 Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.

Parameters:
columnIndex - - the first column is 1, the second is 2
Returns:
the column value as a java.net.URL object, if the value is SQL NULL, the value returned is null in the Java programming language
Throws:
java.sql.SQLException - Feature not implemented for now.

getURL

public java.net.URL getURL(java.lang.String columnName)
                    throws java.sql.SQLException
JDBC 3.0 Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.

Parameters:
columnName - - the SQL name of the column
Returns:
the column value as a java.net.URL object, if the value is SQL NULL, the value returned is null in the Java programming language
Throws:
java.sql.SQLException - Feature not implemented for now.

updateRef

public void updateRef(int columnIndex,
                      java.sql.Ref x)
               throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Ref value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnIndex - - the first column is 1, the second is 2
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

updateRef

public void updateRef(java.lang.String columnName,
                      java.sql.Ref x)
               throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Ref value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - - the SQL name of the column
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

updateBlob

public void updateBlob(int columnIndex,
                       java.sql.Blob x)
                throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Blob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnIndex - - the first column is 1, the second is 2
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

updateBlob

public void updateBlob(java.lang.String columnName,
                       java.sql.Blob x)
                throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Blob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - - the SQL name of the column
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

updateClob

public void updateClob(int columnIndex,
                       java.sql.Clob x)
                throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Clob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnIndex - - the first column is 1, the second is 2
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

updateClob

public void updateClob(java.lang.String columnName,
                       java.sql.Clob x)
                throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Clob value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - - the SQL name of the column
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

updateArray

public void updateArray(int columnIndex,
                        java.sql.Array x)
                 throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Array value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnIndex - - the first column is 1, the second is 2
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

updateArray

public void updateArray(java.lang.String columnName,
                        java.sql.Array x)
                 throws java.sql.SQLException
JDBC 3.0 Updates the designated column with a java.sql.Array value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - - the SQL name of the column
x - - the new column value
Throws:
java.sql.SQLException - Feature not implemented for now.

checkRowPosition

private boolean checkRowPosition(int position,
                                 java.lang.String positionText)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.