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.

Supports

Author:
francois
See Also:
EmbedResultSet

Field Summary
 
Fields inherited from class org.apache.derby.impl.jdbc.EmbedResultSet
ABSOLUTE, AFTERLAST, BEFOREFIRST, CLOSE, concurrencyOfThisResultSet, currentRow, factory, finalizeActivation, FIRST, isAtomic, isClosed, LAST, localConn, NEXT, NOCLOSE, order, PREVIOUS, RELATIVE, stmt, theResults, wasNull
 
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 Derby resultset and the JDBC resultset, mapping calls-to-calls.
 
Method Summary
 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.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.
 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.
 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 updateBigDecimal(int columnIndex, java.math.BigDecimal x)
           
 void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal x)
          JDBC 2.0 Update a column with a BigDecimal value.
 void updateObject(int columnIndex, java.lang.Object x)
          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.
 
Methods inherited from class org.apache.derby.impl.jdbc.EmbedResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, checkExecIfClosed, checkIfClosed, checkOnRow, checksBeforeUpdateOrDelete, checksBeforeUpdateXXX, clearWarnings, close, closeCurrentStream, closeOnTransactionError, commitIfAutoCommit, commitIfNeeded, compareTo, dataTypeConversion, dataTypeConversion, deleteRow, finalize, findColumn, findColumnName, first, getAsciiStream, getAsciiStream, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCal, getCharacterStream, getCharacterStream, getClob, getClob, getColumn, getColumnType, getConcurrency, getConnectionSynchronization, getContextManager, getCursorName, getDatabase, getDate, getDate, getDate, getDate, getDouble, getDouble, getDVDforColumnToBeUpdated, getEmbedConnection, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getParameterValueSet, getRow, getShort, getShort, getSQLText, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getURL, getURL, getWarnings, handleException, handleException, insertRow, isAfterLast, isBeforeFirst, isFirst, isForUpdate, isLast, last, movePosition, movePosition, moveToCurrentRow, moveToInsertRow, needCommit, newEmbedResultSetMetaData, newSQLException, newSQLException, newSQLException, next, noStateChangeException, previous, refreshRow, relative, restoreContextStack, rowDeleted, rowInserted, rowUpdated, setDynamicResultSet, setFetchDirection, setFetchSize, setupContextStack, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStreamInternal, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStreamInternal, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbedResultSet20

public EmbedResultSet20(EmbedConnection conn,
                        ResultSet resultsToWrap,
                        boolean forMetaData,
                        EmbedStatement stmt,
                        boolean isAtomic)
                 throws java.sql.SQLException
This class provides the glue between the Derby 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.

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 final 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.

updateBigDecimal

public void updateBigDecimal(int columnIndex,
                             java.math.BigDecimal x)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

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.

Specified by:
updateObject in interface java.sql.ResultSet
Overrides:
updateObject in class EmbedResultSet
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(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

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.

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.

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.

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.

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.

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

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