org.apache.derby.client.am
Class ResultSet

java.lang.Object
  extended by org.apache.derby.client.am.ResultSet
All Implemented Interfaces:
java.sql.ResultSet, java.sql.Wrapper, ResultSetCallbackInterface, UnitOfWorkListener
Direct Known Subclasses:
NetResultSet

public abstract class ResultSet
extends java.lang.Object
implements java.sql.ResultSet, ResultSetCallbackInterface


Field Summary
static int ABSOLUTE_ROWSET
           
protected  long absolutePosition_
           
protected  long absoluteRowNumberForTheIntendedRow_
           
protected  Agent agent_
           
(package private)  boolean autoCommitted_
           
private  boolean[] columnUpdated_
           
private  boolean[] columnUsedFlags_
          Indicates which columns have been fetched as a stream or as a LOB for a row.
 Connection connection_
           
protected  long currentRowInRowset_
           
 Cursor cursor_
           
 boolean cursorHold_
           
 boolean cursorUnpositionedOnServer_
           
static byte DDM_RETURN_CALLER
           
static byte DDM_RETURN_CLIENT
           
 int fetchDirection_
           
 int fetchSize_
           
static int FIRST_ROWSET
           
protected  long firstRowInRowset_
           
 Section generatedSection_
           
private  CloseFilterInputStream is_
           
 boolean isAfterLast_
           
 boolean isBeforeFirst_
           
 boolean isFirst_
           
 boolean isLast_
           
protected  boolean isOnCurrentRow_
           
private  boolean isOnInsertRow_
           
 boolean isRowsetCursor_
           
 boolean isValidCursorPosition_
           
static int LAST_ROWSET
           
protected  long lastRowInRowset_
           
(package private)  boolean listenToUnitOfWork_
           
private  LOBStateTracker lobState
          Tracker object for LOB state, used to free locators on the server.
private  int maxRows_
           
 int nestingLevel_
           
static int NEXT_ROWSET
           
(package private)  boolean openOnClient_
           
 boolean openOnServer_
           
private  PreparedStatement preparedStatementForDelete_
           
private  PreparedStatement preparedStatementForInsert_
           
private  PreparedStatement preparedStatementForUpdate_
           
static int PREVIOUS_ROWSET
           
 long queryInstanceIdentifier_
           
 Sqlca queryTerminatingSqlca_
           
static int REFRESH_ROWSET
           
static int RELATIVE_ROWSET
           
 int resultSetConcurrency_
           
 int resultSetHoldability_
           
 ColumnMetaData resultSetMetaData_
           
 int resultSetType_
           
 long rowCount_
           
 boolean rowsetContainsLastRow_
           
 Sqlca[] rowsetSqlca_
           
 int rowsReceivedInCurrentRowset_
           
 int rowsYetToBeReceivedForRowset_
           
protected  byte rsReturnability_
           
 boolean scrollable_
           
static int scrollOrientation_absolute__
           
static int scrollOrientation_after__
           
static int scrollOrientation_before__
           
static int scrollOrientation_current__
           
static int scrollOrientation_first__
           
static int scrollOrientation_last__
           
static int scrollOrientation_next__
           
static int scrollOrientation_prior__
           
static int scrollOrientation_relative__
           
 int sensitivity_
           
static int sensitivity_insensitive__
           
static int sensitivity_sensitive_dynamic__
           
static int sensitivity_sensitive_static__
           
static int sensitivity_unknown__
           
 Statement statement_
           
protected  int suggestedFetchSize_
           
static int updatability_delete__
           
static int updatability_readOnly__
           
static int updatability_unknown__
           
static int updatability_update__
           
private  java.lang.Object[] updatedColumns_
           
private  SqlWarning warnings_
           
private static int WAS_NOT_NULL
           
private static int WAS_NULL
           
private static int WAS_NULL_UNSET
           
private  int 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
protected ResultSet(Agent agent, Statement statement, Cursor cursor, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 
Method Summary
 boolean absolute(int row)
           
 boolean absoluteX(int row)
           
 void accumulateWarning(SqlWarning e)
           
private  void adjustAbsoluteRowset(long rowNumber)
           
private  void adjustFirstRowset()
           
private  void adjustLastRowset(long row)
           
private  void adjustNextRowset()
           
private  void adjustPreviousRowset(int orientation, long rowNumber, boolean isAfterLastRow)
           
private  void adjustRefreshRowset()
           
private  void adjustRelativeRowset(long rowNumber)
           
 void afterLast()
           
private  void afterLastX()
           
 void beforeFirst()
           
private  void beforeFirstX()
           
private  java.lang.String buildDeleteString()
           
private  java.lang.String buildInsertString()
           
private  java.lang.String buildUpdateString()
           
 void cancelRowUpdates()
           
protected  void checkAndThrowReceivedQueryTerminatingException()
           
protected  void checkForClosedResultSet()
           
private  void checkForUpdatableResultSet(java.lang.String operation)
           
(package private)  void checkForValidColumnIndex(int column)
           
private  void checkForValidCursorPosition()
           
private  void checkGetterPreconditions(int column)
           
private  void checkPositionedOnPlainRow()
           
private  int checkRowsetSqlca()
           
private  int checkRowsetSqlca(int row)
           
private  void checkThatResultSetIsNotDynamic()
           
private  void checkThatResultSetTypeIsScrollable()
           
private  void checkUpdatePreconditions(int column, java.lang.String operation)
           
 void clearWarnings()
          Clear all warnings on this ResultSet and make subsequent calls to getWarnings() return null until a new warning is reported.
 void clearWarningsX()
           
 void close()
           
private  void closeCloseFilterInputStream()
           
 void closeX()
           
 void completeLocalCommit(java.util.Iterator listenerIterator)
           
 void completeLocalRollback(java.util.Iterator listenerIterator)
           
 int completeSqlca(Sqlca sqlca)
           
private  java.sql.Date convertFromDefaultCalendar(java.sql.Date date, java.util.Calendar cal)
          Convert a date originally set using the default calendar to a value representing the same date in a different calendar.
private  java.sql.Time convertFromDefaultCalendar(java.sql.Time time, java.util.Calendar cal)
          Convert a time originally set using the default calendar to a value representing the same time in a different calendar.
private  java.sql.Timestamp convertFromDefaultCalendar(java.sql.Timestamp ts, java.util.Calendar cal)
          Convert a timestamp originally set using the default calendar to a value representing the same timestamp in a different calendar.
private  CloseFilterInputStream createCloseFilterInputStream(java.io.InputStream is)
           
(package private)  void createLOBColumnTracker()
          Initializes the LOB state tracker.
protected  void delete()
           
 void deleteRow()
           
private  void deleteRowX()
           
 void earlyCloseComplete(Sqlca sqlca)
           
 void expandRowsetSqlca()
           
 int findColumn(java.lang.String columnName)
           
private  int findColumnX(java.lang.String columnName)
           
 boolean first()
           
private  boolean firstX()
           
(package private)  void flowCloseAndAutoCommitIfNotAutoCommitted()
           
 void flowFetch()
           
private  void flowGetRowset(int orientation, long rowNumber)
           
 void flowPositioningFetch(int scrollOrientation, int rowToFetch)
           
private  boolean getAbsoluteRowset(long row)
           
 java.sql.Array getArray(int column)
           
 java.sql.Array getArray(java.lang.String columnName)
           
 java.io.InputStream getAsciiStream(int column)
           
 java.io.InputStream getAsciiStream(java.lang.String columnName)
           
 java.math.BigDecimal getBigDecimal(int column)
           
 java.math.BigDecimal getBigDecimal(int column, int scale)
          Deprecated.  
 java.math.BigDecimal getBigDecimal(java.lang.String columnName)
           
 java.math.BigDecimal getBigDecimal(java.lang.String columnName, int scale)
          Deprecated.  
 java.io.InputStream getBinaryStream(int column)
           
 java.io.InputStream getBinaryStream(java.lang.String columnName)
           
 java.sql.Blob getBlob(int column)
           
 java.sql.Blob getBlob(java.lang.String columnName)
           
 boolean getBoolean(int column)
           
 boolean getBoolean(java.lang.String columnName)
           
 byte getByte(int column)
           
 byte getByte(java.lang.String columnName)
           
 byte[] getBytes(int column)
           
 byte[] getBytes(java.lang.String columnName)
           
 java.io.Reader getCharacterStream(int column)
           
 java.io.Reader getCharacterStream(java.lang.String columnName)
           
 java.sql.Clob getClob(int column)
           
 java.sql.Clob getClob(java.lang.String columnName)
           
 int getConcurrency()
           
 ConnectionCallbackInterface getConnectionCallbackInterface()
           
 java.lang.String getCursorName()
           
 java.sql.Date getDate(int column)
           
 java.sql.Date getDate(int column, java.util.Calendar cal)
           
 java.sql.Date getDate(java.lang.String columnName)
           
 java.sql.Date getDate(java.lang.String columnName, java.util.Calendar cal)
           
 double getDouble(int column)
           
 double getDouble(java.lang.String columnName)
           
 int getFetchDirection()
           
 int getFetchSize()
           
private  boolean getFirstRowset()
           
 float getFloat(int column)
           
 float getFloat(java.lang.String columnName)
           
 int getHoldability()
          Retrieves the holdability for this ResultSet object.
 int getInt(int column)
           
 int getInt(java.lang.String columnName)
           
private  boolean getLastRowset(long row)
           
 long getLong(int column)
           
 long getLong(java.lang.String columnName)
           
 java.sql.ResultSetMetaData getMetaData()
           
(package private)  ColumnMetaData getMetaDataX()
           
private  boolean getNextRowset()
           
 java.lang.Object getObject(int column)
           
 java.lang.Object getObject(int column, java.util.Map map)
           
 java.lang.Object getObject(java.lang.String columnName)
           
 java.lang.Object getObject(java.lang.String columnName, java.util.Map map)
           
(package private)  java.lang.Object getObjectX(int column)
           
private  void getPreparedStatementForDelete()
           
private  void getPreparedStatementForInsert()
           
private  void getPreparedStatementForUpdate()
           
private  boolean getPreviousRowset()
           
 java.sql.Ref getRef(int column)
           
 java.sql.Ref getRef(java.lang.String columnName)
           
private  boolean getRefreshRowset()
           
private  boolean getRelativeRowset(long rows)
           
 int getRow()
           
protected  void getRowCount()
           
private  long getRowUncast()
           
private  int getRowX()
           
 byte getRSReturnability()
           
private  java.lang.String getServerCursorName()
           
 short getShort(int column)
           
 short getShort(java.lang.String columnName)
           
 java.sql.Statement getStatement()
          Retrieves the Statement object that produced this object, or null if the ResultSet was not produced by a Statement object.
 StatementCallbackInterface getStatementCallbackInterface()
           
 java.lang.String getString(int column)
           
 java.lang.String getString(java.lang.String columnName)
           
private  java.lang.String getTableName()
           
 java.sql.Time getTime(int column)
           
 java.sql.Time getTime(int column, java.util.Calendar cal)
           
 java.sql.Time getTime(java.lang.String columnName)
           
 java.sql.Time getTime(java.lang.String columnName, java.util.Calendar cal)
           
 java.sql.Timestamp getTimestamp(int column)
           
 java.sql.Timestamp getTimestamp(int column, java.util.Calendar calendar)
           
 java.sql.Timestamp getTimestamp(java.lang.String columnName)
           
 java.sql.Timestamp getTimestamp(java.lang.String columnName, java.util.Calendar cal)
           
 int getType()
           
 java.io.InputStream getUnicodeStream(int column)
          Deprecated.  
 java.io.InputStream getUnicodeStream(java.lang.String columnName)
          Deprecated.  
 java.net.URL getURL(int columnIndex)
           
 java.net.URL getURL(java.lang.String columnName)
           
 java.sql.SQLWarning getWarnings()
          Returns the first SQLWarning reported on this ResultSet object, or null if there are no warnings.
protected  void insert()
           
 void insertRow()
           
private  void insertRowX()
           
 boolean isAfterLast()
           
private  boolean isAfterLastX()
           
 boolean isBeforeFirst()
           
private  boolean isBeforeFirstX()
           
 boolean isClosed()
          Checks whether this ResultSet object has been closed, either automatically or because close() has been called.
 boolean isFirst()
           
private  boolean isFirstX()
           
 boolean isLast()
           
private  boolean isLastX()
           
private  boolean isNull(int column)
           
private  boolean isServerCursorPositionAfterLast()
           
private  boolean isServersCursorPositionBeforeFirst()
           
private  java.sql.SQLException jdbc3MethodNotSupported()
           
 boolean last()
           
private  boolean lastX()
           
 void listenToUnitOfWork()
           
(package private)  void markAutoCommitted()
           
(package private)  void markClosed()
          Mark this ResultSet as closed.
(package private)  void markClosed(boolean removeListener)
          Mark this ResultSet as closed.
 void markClosedOnServer()
          Mark this ResultSet as closed on the server.
 void markLOBAsPublished(int index)
          Marks the LOB at the specified column as published.
private  void markPositionedUpdateDeletePreparedStatementsClosed()
           
protected  void moveToAfterLast()
           
protected  void moveToBeforeFirst()
           
 void moveToCurrentRow()
           
private  void moveToCurrentRowX()
          Moves off the insert row if positioned there, and checks the current row for releasable LOB locators if positioned on a valid data row.
 void moveToInsertRow()
           
 boolean next()
           
(package private)  boolean nextX()
           
 void nullDataForGC()
           
private  void nullOutReferenceInStatement()
           
protected abstract  void parseRowset_()
           
 void parseScrollableRowset()
           
protected  void positionToCurrentRowAndDelete()
           
protected  void positionToCurrentRowAndUpdate()
           
protected abstract  void preClose_()
          Method that is invoked by closeX() before the result set is actually being closed.
 boolean previous()
           
private  boolean previousX()
           
private  java.lang.String quoteSqlIdentifier(java.lang.String orgValue)
           
private  void readAutoCommitIfNotAutoCommitted()
           
(package private)  void readClose()
           
private  void readCloseAndAutoCommit(boolean readAutoCommit)
           
abstract  void readCursorClose_()
           
 void readDeleteRow()
           
abstract  void readFetch_()
           
 void readInsertRow()
           
abstract  void readPositioningFetch_()
           
abstract  void readScrollableFetch_()
           
 void readUpdateRow()
           
 void refreshRow()
           
private  void refreshRowX()
           
 boolean relative(int rows)
           
private  boolean relativeX(int rows)
           
 boolean repositionScrollableResultSetBeforeJDBC1PositionedUpdateDelete()
           
private  void resetRowsetFlags()
           
private  void resetRowsetSqlca()
           
private  void resetUpdatedColumns()
           
private  void resetUpdatedColumnsForInsert()
           
private  boolean resultSetContainsNoRows()
           
protected  boolean rowCountIsKnown()
           
protected  boolean rowCountIsUnknown()
           
 boolean rowDeleted()
           
 boolean rowInserted()
           
private  boolean rowIsInCurrentRowset(long rowNumber)
           
private  boolean rowIsInCurrentRowset(long rowNumber, int orientation)
           
 boolean rowUpdated()
           
private  void setAbsolutePositionBasedOnAllRowsReceived()
           
 void setFetchDirection(int direction)
           
abstract  void setFetchSize_(int rows)
           
 void setFetchSize(int rows)
           
 void setRowCountEvent(long rowCount)
           
 void setRowsetAfterLastEvent()
           
 void setRowsetBeforeFirstEvent()
           
 void setRowsetNoRowsEvent()
           
 void setRSReturnability(byte rsReturnability)
           
 void setValidCursorPosition(boolean isValidCursorPosition)
           
private  void setWasNull(int column)
           
private  void unuseStreamsAndLOBs()
          Clears the flags for used columns, typically invoked when changing the result set position.
protected  void update()
           
 void updateArray(int columnIndex, java.sql.Array x)
           
 void updateArray(java.lang.String columnName, java.sql.Array x)
           
 void updateAsciiStream(int columnIndex, java.io.InputStream x)
          Updates the designated column with an ascii stream value.
 void updateAsciiStream(int column, java.io.InputStream x, int length)
           
 void updateAsciiStream(int columnIndex, java.io.InputStream x, long length)
          Update a column with an ascii stream value.
 void updateAsciiStream(java.lang.String columnName, java.io.InputStream x)
          Updates the designated column with an ascii stream value.
 void updateAsciiStream(java.lang.String columnName, java.io.InputStream x, int length)
           
 void updateAsciiStream(java.lang.String columnName, java.io.InputStream x, long length)
          Update a column with an ascii stream value.
 void updateBigDecimal(int column, java.math.BigDecimal x)
           
 void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal x)
           
 void updateBinaryStream(int columnIndex, java.io.InputStream x)
          Updates the designated column with a binary stream value.
 void updateBinaryStream(int column, java.io.InputStream x, int length)
           
 void updateBinaryStream(int columnIndex, java.io.InputStream x, long length)
          Update a column with a binary stream value.
 void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x)
          Updates the designated column with a binary stream value.
 void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length)
           
 void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, long length)
          Update a column with a binary stream value.
 void updateBlob(int columnIndex, java.sql.Blob x)
          Updates the designated column with a java.sql.Blob value.
 void updateBlob(int columnIndex, java.io.InputStream x)
          Updates the designated column using the given input stream.
 void updateBlob(int columnIndex, java.io.InputStream x, long length)
          Updates the designated column using the given input stream, which will have the specified number of bytes.
 void updateBlob(java.lang.String columnName, java.sql.Blob x)
          Updates the designated column with a java.sql.Blob value.
 void updateBlob(java.lang.String columnLabel, java.io.InputStream x)
          Updates the designated column using the given input stream.
 void updateBlob(java.lang.String columnName, java.io.InputStream x, long length)
          Updates the designated column using the given input stream, which will have the specified number of bytes.
 void updateBoolean(int column, boolean x)
           
 void updateBoolean(java.lang.String columnName, boolean x)
           
 void updateByte(int column, byte x)
           
 void updateByte(java.lang.String columnName, byte x)
           
 void updateBytes(int column, byte[] x)
           
 void updateBytes(java.lang.String columnName, byte[] x)
           
 void updateCharacterStream(int columnIndex, java.io.Reader reader)
          Updates the designated column with a character stream value.
 void updateCharacterStream(int column, java.io.Reader x, int length)
           
 void updateCharacterStream(int columnIndex, java.io.Reader x, long length)
          Update a column with a character stream value.
 void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader)
          Updates the designated column with a character stream value.
 void updateCharacterStream(java.lang.String columnName, java.io.Reader x, int length)
           
 void updateCharacterStream(java.lang.String columnName, java.io.Reader reader, long length)
          Update a column with a character stream value.
 void updateClob(int columnIndex, java.sql.Clob x)
          Updates the designated column with a java.sql.Clob value.
 void updateClob(int columnIndex, java.io.Reader reader)
          Updates the designated column using the given Reader object.
 void updateClob(int columnIndex, java.io.Reader x, long length)
          Updates the designated column using the given Reader object, which is the given number of characters long.
 void updateClob(java.lang.String columnLabel, java.sql.Clob x)
          Updates the designated column with a java.sql.Clob value.
 void updateClob(java.lang.String columnLabel, java.io.Reader reader)
          Updates the designated column using the given Reader object.
 void updateClob(java.lang.String columnName, java.io.Reader x, long length)
          Updates the designated column using the given Reader object, which is the given number of characters long.
private  void updateColumn(int column, java.lang.Object value)
           
protected  void updateColumnInfoFromCache()
           
 void updateDate(int column, java.sql.Date x)
           
 void updateDate(java.lang.String columnName, java.sql.Date x)
           
 void updateDouble(int column, double x)
           
 void updateDouble(java.lang.String columnName, double x)
           
 void updateFloat(int column, float x)
           
 void updateFloat(java.lang.String columnName, float x)
           
 void updateInt(int column, int x)
           
 void updateInt(java.lang.String columnName, int x)
           
 void updateLong(int column, long x)
           
 void updateLong(java.lang.String columnName, long x)
           
 void updateNCharacterStream(int columnIndex, java.io.Reader x)
           
 void updateNCharacterStream(java.lang.String columnName, java.io.Reader x)
           
 void updateNClob(int columnIndex, java.io.Reader reader)
           
 void updateNClob(java.lang.String columnName, java.io.Reader reader)
           
 void updateNull(int column)
           
 void updateNull(java.lang.String columnName)
           
 void updateObject(int column, java.lang.Object x)
           
 void updateObject(int column, java.lang.Object x, int scale)
           
 void updateObject(java.lang.String columnName, java.lang.Object x)
           
 void updateObject(java.lang.String columnName, java.lang.Object x, int scale)
           
 void updateRef(int columnIndex, java.sql.Ref x)
           
 void updateRef(java.lang.String columnName, java.sql.Ref x)
           
 void updateRow()
           
private  boolean updateRowX()
           
 void updateShort(int column, short x)
           
 void updateShort(java.lang.String columnName, short x)
           
 void updateString(int column, java.lang.String x)
           
 void updateString(java.lang.String columnName, java.lang.String x)
           
 void updateTime(int column, java.sql.Time x)
           
 void updateTime(java.lang.String columnName, java.sql.Time x)
           
 void updateTimestamp(int column, java.sql.Timestamp x)
           
 void updateTimestamp(java.lang.String columnName, java.sql.Timestamp x)
           
(package private)  void useStreamOrLOB(int columnIndex)
          Mark a column as already having a stream or LOB accessed from it.
private  boolean wasNonNullSensitiveUpdate(int column)
           
 boolean wasNull()
           
private  boolean wasNullSensitiveUpdate(int column)
           
private  void writeAutoCommitIfNotAutoCommitted()
           
(package private)  void writeClose()
           
private  boolean writeCloseAndAutoCommit()
           
abstract  void writeCursorClose_(Section section)
           
 void writeDeleteRow()
           
abstract  void writeFetch_(Section section)
           
 void writeInsertRow(boolean chainedWritesFollowingSetLob)
           
abstract  void writePositioningFetch_(Section section, int orientation, long rowToFetch)
           
abstract  void writeScrollableFetch_(Section section, int fetchSize, int orientation, long rowToFetch, boolean resetQueryBlocks)
           
 void writeUpdateRow(boolean chainedWritesFollowingSetLob)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.ResultSet
getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Field Detail

statement_

public Statement statement_

resultSetMetaData_

public ColumnMetaData resultSetMetaData_

warnings_

private SqlWarning warnings_

cursor_

public Cursor cursor_

lobState

private LOBStateTracker lobState
Tracker object for LOB state, used to free locators on the server.


agent_

protected Agent agent_

generatedSection_

public Section generatedSection_

is_

private CloseFilterInputStream is_

connection_

public final Connection connection_

scrollOrientation_relative__

public static final int scrollOrientation_relative__
See Also:
Constant Field Values

scrollOrientation_absolute__

public static final int scrollOrientation_absolute__
See Also:
Constant Field Values

scrollOrientation_after__

public static final int scrollOrientation_after__
See Also:
Constant Field Values

scrollOrientation_before__

public static final int scrollOrientation_before__
See Also:
Constant Field Values

scrollOrientation_prior__

public static final int scrollOrientation_prior__
See Also:
Constant Field Values

scrollOrientation_first__

public static final int scrollOrientation_first__
See Also:
Constant Field Values

scrollOrientation_last__

public static final int scrollOrientation_last__
See Also:
Constant Field Values

scrollOrientation_current__

public static final int scrollOrientation_current__
See Also:
Constant Field Values

scrollOrientation_next__

public static final int scrollOrientation_next__
See Also:
Constant Field Values

updatability_unknown__

public static final int updatability_unknown__
See Also:
Constant Field Values

updatability_readOnly__

public static final int updatability_readOnly__
See Also:
Constant Field Values

updatability_delete__

public static final int updatability_delete__
See Also:
Constant Field Values

updatability_update__

public static final int updatability_update__
See Also:
Constant Field Values

sensitivity_unknown__

public static final int sensitivity_unknown__
See Also:
Constant Field Values

sensitivity_insensitive__

public static final int sensitivity_insensitive__
See Also:
Constant Field Values

sensitivity_sensitive_static__

public static final int sensitivity_sensitive_static__
See Also:
Constant Field Values

sensitivity_sensitive_dynamic__

public static final int sensitivity_sensitive_dynamic__
See Also:
Constant Field Values

WAS_NULL

private static final int WAS_NULL
See Also:
Constant Field Values

WAS_NOT_NULL

private static final int WAS_NOT_NULL
See Also:
Constant Field Values

WAS_NULL_UNSET

private static final int WAS_NULL_UNSET
See Also:
Constant Field Values

NEXT_ROWSET

public static final int NEXT_ROWSET
See Also:
Constant Field Values

PREVIOUS_ROWSET

public static final int PREVIOUS_ROWSET
See Also:
Constant Field Values

ABSOLUTE_ROWSET

public static final int ABSOLUTE_ROWSET
See Also:
Constant Field Values

FIRST_ROWSET

public static final int FIRST_ROWSET
See Also:
Constant Field Values

LAST_ROWSET

public static final int LAST_ROWSET
See Also:
Constant Field Values

RELATIVE_ROWSET

public static final int RELATIVE_ROWSET
See Also:
Constant Field Values

REFRESH_ROWSET

public static final int REFRESH_ROWSET
See Also:
Constant Field Values

DDM_RETURN_CALLER

public static final byte DDM_RETURN_CALLER
See Also:
Constant Field Values

DDM_RETURN_CLIENT

public static final byte DDM_RETURN_CLIENT
See Also:
Constant Field Values

wasNull_

private int wasNull_

rsReturnability_

protected byte rsReturnability_

openOnClient_

boolean openOnClient_

openOnServer_

public boolean openOnServer_

queryTerminatingSqlca_

public Sqlca queryTerminatingSqlca_

autoCommitted_

boolean autoCommitted_

isValidCursorPosition_

public boolean isValidCursorPosition_

cursorHold_

public boolean cursorHold_

queryInstanceIdentifier_

public long queryInstanceIdentifier_

resultSetType_

public int resultSetType_

resultSetConcurrency_

public int resultSetConcurrency_

resultSetHoldability_

public int resultSetHoldability_

scrollable_

public boolean scrollable_

sensitivity_

public int sensitivity_

isRowsetCursor_

public boolean isRowsetCursor_

isBeforeFirst_

public boolean isBeforeFirst_

isAfterLast_

public boolean isAfterLast_

isFirst_

public boolean isFirst_

isLast_

public boolean isLast_

rowsetContainsLastRow_

public boolean rowsetContainsLastRow_

rowsetSqlca_

public Sqlca[] rowsetSqlca_

suggestedFetchSize_

protected int suggestedFetchSize_

fetchSize_

public int fetchSize_

fetchDirection_

public int fetchDirection_

rowCount_

public long rowCount_

absolutePosition_

protected long absolutePosition_

firstRowInRowset_

protected long firstRowInRowset_

lastRowInRowset_

protected long lastRowInRowset_

currentRowInRowset_

protected long currentRowInRowset_

absoluteRowNumberForTheIntendedRow_

protected long absoluteRowNumberForTheIntendedRow_

isOnInsertRow_

private boolean isOnInsertRow_

isOnCurrentRow_

protected boolean isOnCurrentRow_

rowsReceivedInCurrentRowset_

public int rowsReceivedInCurrentRowset_

rowsYetToBeReceivedForRowset_

public int rowsYetToBeReceivedForRowset_

updatedColumns_

private java.lang.Object[] updatedColumns_

columnUpdated_

private boolean[] columnUpdated_

preparedStatementForUpdate_

private PreparedStatement preparedStatementForUpdate_

preparedStatementForDelete_

private PreparedStatement preparedStatementForDelete_

preparedStatementForInsert_

private PreparedStatement preparedStatementForInsert_

nestingLevel_

public int nestingLevel_

cursorUnpositionedOnServer_

public boolean cursorUnpositionedOnServer_

maxRows_

private int maxRows_

columnUsedFlags_

private boolean[] columnUsedFlags_
Indicates which columns have been fetched as a stream or as a LOB for a row. Created on-demand by a getXXXStream or a get[BC]lob call. Note that we only track columns that can be accessed as a stream or a LOB object.


listenToUnitOfWork_

boolean listenToUnitOfWork_
Constructor Detail

ResultSet

protected ResultSet(Agent agent,
                    Statement statement,
                    Cursor cursor,
                    int resultSetType,
                    int resultSetConcurrency,
                    int resultSetHoldability)
Method Detail

next

public final boolean next()
                   throws java.sql.SQLException
Specified by:
next in interface java.sql.ResultSet
Throws:
java.sql.SQLException

nextX

boolean nextX()
        throws SqlException
Throws:
SqlException

close

public void close()
           throws java.sql.SQLException
Specified by:
close in interface java.sql.ResultSet
Throws:
java.sql.SQLException

closeX

public final void closeX()
                  throws SqlException
Throws:
SqlException

nullDataForGC

public void nullDataForGC()

flowCloseAndAutoCommitIfNotAutoCommitted

void flowCloseAndAutoCommitIfNotAutoCommitted()
                                        throws SqlException
Throws:
SqlException

writeCloseAndAutoCommit

private boolean writeCloseAndAutoCommit()
                                 throws SqlException
Throws:
SqlException

readCloseAndAutoCommit

private void readCloseAndAutoCommit(boolean readAutoCommit)
                             throws SqlException
Throws:
SqlException

writeClose

void writeClose()
          throws SqlException
Throws:
SqlException

readClose

void readClose()
         throws SqlException
Throws:
SqlException

writeAutoCommitIfNotAutoCommitted

private void writeAutoCommitIfNotAutoCommitted()
                                        throws SqlException
Throws:
SqlException

readAutoCommitIfNotAutoCommitted

private void readAutoCommitIfNotAutoCommitted()
                                       throws SqlException
Throws:
SqlException

wasNull

public boolean wasNull()
                throws java.sql.SQLException
Specified by:
wasNull in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBoolean

public boolean getBoolean(int column)
                   throws java.sql.SQLException
Specified by:
getBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getByte

public byte getByte(int column)
             throws java.sql.SQLException
Specified by:
getByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getShort

public short getShort(int column)
               throws java.sql.SQLException
Specified by:
getShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getInt

public int getInt(int column)
           throws java.sql.SQLException
Specified by:
getInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getLong

public long getLong(int column)
             throws java.sql.SQLException
Specified by:
getLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getFloat

public float getFloat(int column)
               throws java.sql.SQLException
Specified by:
getFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDouble

public double getDouble(int column)
                 throws java.sql.SQLException
Specified by:
getDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public java.math.BigDecimal getBigDecimal(int column,
                                          int scale)
                                   throws java.sql.SQLException
Deprecated. 

Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public java.math.BigDecimal getBigDecimal(int column)
                                   throws java.sql.SQLException
Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(int column,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(int column)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public java.sql.Time getTime(int column,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public java.sql.Time getTime(int column)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(int column,
                                       java.util.Calendar calendar)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(int column)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

convertFromDefaultCalendar

private java.sql.Date convertFromDefaultCalendar(java.sql.Date date,
                                                 java.util.Calendar cal)
Convert a date originally set using the default calendar to a value representing the same date in a different calendar.

Parameters:
date - the date to convert
cal - the calendar to convert it to
Returns:
a date object that represents the date in cal

convertFromDefaultCalendar

private java.sql.Time convertFromDefaultCalendar(java.sql.Time time,
                                                 java.util.Calendar cal)
Convert a time originally set using the default calendar to a value representing the same time in a different calendar.

Parameters:
time - the time to convert
cal - the calendar to convert it to
Returns:
a time object that represents the time in cal

convertFromDefaultCalendar

private java.sql.Timestamp convertFromDefaultCalendar(java.sql.Timestamp ts,
                                                      java.util.Calendar cal)
Convert a timestamp originally set using the default calendar to a value representing the same timestamp in a different calendar.

Parameters:
ts - the timestamp to convert
cal - the calendar to convert it to
Returns:
a timestamp object that represents the timestamp in cal

getString

public java.lang.String getString(int column)
                           throws java.sql.SQLException
Specified by:
getString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBytes

public byte[] getBytes(int column)
                throws java.sql.SQLException
Specified by:
getBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream(int column)
                                    throws java.sql.SQLException
Specified by:
getBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getAsciiStream

public java.io.InputStream getAsciiStream(int column)
                                   throws java.sql.SQLException
Specified by:
getAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getUnicodeStream

public java.io.InputStream getUnicodeStream(int column)
                                     throws java.sql.SQLException
Deprecated. 

Retrieve the value of the specified column as a stream of two-byte Unicode characters. Deprecated in JDBC 2.0 and this method will just throw a feature not implemented exception.

Specified by:
getUnicodeStream in interface java.sql.ResultSet
Parameters:
column - the column to retrieve as a Unicode stream
Throws:
java.sql.SQLException - throws feature not implemented

getCharacterStream

public java.io.Reader getCharacterStream(int column)
                                  throws java.sql.SQLException
Specified by:
getCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBlob

public java.sql.Blob getBlob(int column)
                      throws java.sql.SQLException
Specified by:
getBlob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getClob

public java.sql.Clob getClob(int column)
                      throws java.sql.SQLException
Specified by:
getClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getRef

public java.sql.Ref getRef(int column)
                    throws java.sql.SQLException
Specified by:
getRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getArray

public java.sql.Array getArray(int column)
                        throws java.sql.SQLException
Specified by:
getArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getObject

public java.lang.Object getObject(int column)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getObjectX

java.lang.Object getObjectX(int column)
                      throws SqlException
Throws:
SqlException

getObject

public java.lang.Object getObject(int column,
                                  java.util.Map map)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

wasNonNullSensitiveUpdate

private boolean wasNonNullSensitiveUpdate(int column)

wasNullSensitiveUpdate

private boolean wasNullSensitiveUpdate(int column)

setWasNull

private void setWasNull(int column)

isNull

private boolean isNull(int column)

getBoolean

public final boolean getBoolean(java.lang.String columnName)
                         throws java.sql.SQLException
Specified by:
getBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getByte

public final byte getByte(java.lang.String columnName)
                   throws java.sql.SQLException
Specified by:
getByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getShort

public final short getShort(java.lang.String columnName)
                     throws java.sql.SQLException
Specified by:
getShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getInt

public final int getInt(java.lang.String columnName)
                 throws java.sql.SQLException
Specified by:
getInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getLong

public final long getLong(java.lang.String columnName)
                   throws java.sql.SQLException
Specified by:
getLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getFloat

public final float getFloat(java.lang.String columnName)
                     throws java.sql.SQLException
Specified by:
getFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDouble

public final double getDouble(java.lang.String columnName)
                       throws java.sql.SQLException
Specified by:
getDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public final java.math.BigDecimal getBigDecimal(java.lang.String columnName,
                                                int scale)
                                         throws java.sql.SQLException
Deprecated. 

Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public final java.math.BigDecimal getBigDecimal(java.lang.String columnName)
                                         throws java.sql.SQLException
Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public final java.sql.Date getDate(java.lang.String columnName)
                            throws java.sql.SQLException
Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public final java.sql.Date getDate(java.lang.String columnName,
                                   java.util.Calendar cal)
                            throws java.sql.SQLException
Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public final java.sql.Time getTime(java.lang.String columnName)
                            throws java.sql.SQLException
Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public final java.sql.Time getTime(java.lang.String columnName,
                                   java.util.Calendar cal)
                            throws java.sql.SQLException
Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public final java.sql.Timestamp getTimestamp(java.lang.String columnName)
                                      throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public final java.sql.Timestamp getTimestamp(java.lang.String columnName,
                                             java.util.Calendar cal)
                                      throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getString

public final java.lang.String getString(java.lang.String columnName)
                                 throws java.sql.SQLException
Specified by:
getString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBytes

public final byte[] getBytes(java.lang.String columnName)
                      throws java.sql.SQLException
Specified by:
getBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBinaryStream

public final java.io.InputStream getBinaryStream(java.lang.String columnName)
                                          throws java.sql.SQLException
Specified by:
getBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getAsciiStream

public final java.io.InputStream getAsciiStream(java.lang.String columnName)
                                         throws java.sql.SQLException
Specified by:
getAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getUnicodeStream

public final java.io.InputStream getUnicodeStream(java.lang.String columnName)
                                           throws java.sql.SQLException
Deprecated. 

Specified by:
getUnicodeStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getCharacterStream

public final java.io.Reader getCharacterStream(java.lang.String columnName)
                                        throws java.sql.SQLException
Specified by:
getCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBlob

public final java.sql.Blob getBlob(java.lang.String columnName)
                            throws java.sql.SQLException
Specified by:
getBlob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getClob

public final java.sql.Clob getClob(java.lang.String columnName)
                            throws java.sql.SQLException
Specified by:
getClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getArray

public final java.sql.Array getArray(java.lang.String columnName)
                              throws java.sql.SQLException
Specified by:
getArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getRef

public final java.sql.Ref getRef(java.lang.String columnName)
                          throws java.sql.SQLException
Specified by:
getRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getObject

public final java.lang.Object getObject(java.lang.String columnName)
                                 throws java.sql.SQLException
Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getObject

public final java.lang.Object getObject(java.lang.String columnName,
                                        java.util.Map map)
                                 throws java.sql.SQLException
Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getWarnings

public final java.sql.SQLWarning getWarnings()
                                      throws java.sql.SQLException
Returns the first SQLWarning reported on this ResultSet object, or null if there are no warnings. Subsequent warnings are chained on the returned object.

Specified by:
getWarnings in interface java.sql.ResultSet
Returns:
the first SQLWarning in the chain, or null if no warnings are reported
Throws:
java.sql.SQLException - if a database error occurs or the result set is closed

clearWarnings

public final void clearWarnings()
                         throws java.sql.SQLException
Clear all warnings on this ResultSet and make subsequent calls to getWarnings() return null until a new warning is reported.

Specified by:
clearWarnings in interface java.sql.ResultSet
Throws:
java.sql.SQLException - if a database error occurs or the result set is closed

clearWarningsX

public final void clearWarningsX()

getCursorName

public java.lang.String getCursorName()
                               throws java.sql.SQLException
Specified by:
getCursorName in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException
Specified by:
getMetaData in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getMetaDataX

ColumnMetaData getMetaDataX()
                      throws SqlException
Throws:
SqlException

findColumn

public final int findColumn(java.lang.String columnName)
                     throws java.sql.SQLException
Specified by:
findColumn in interface java.sql.ResultSet
Throws:
java.sql.SQLException

findColumnX

private final int findColumnX(java.lang.String columnName)
                       throws SqlException
Throws:
SqlException

isBeforeFirst

public boolean isBeforeFirst()
                      throws java.sql.SQLException
Specified by:
isBeforeFirst in interface java.sql.ResultSet
Throws:
java.sql.SQLException

isBeforeFirstX

private boolean isBeforeFirstX()
                        throws SqlException
Throws:
SqlException

isAfterLast

public boolean isAfterLast()
                    throws java.sql.SQLException
Specified by:
isAfterLast in interface java.sql.ResultSet
Throws:
java.sql.SQLException

isAfterLastX

private boolean isAfterLastX()
                      throws SqlException
Throws:
SqlException

isFirst

public boolean isFirst()
                throws java.sql.SQLException
Specified by:
isFirst in interface java.sql.ResultSet
Throws:
java.sql.SQLException

isFirstX

private boolean isFirstX()

isLast

public boolean isLast()
               throws java.sql.SQLException
Specified by:
isLast in interface java.sql.ResultSet
Throws:
java.sql.SQLException

isLastX

private boolean isLastX()
                 throws SqlException
Throws:
SqlException

beforeFirst

public void beforeFirst()
                 throws java.sql.SQLException
Specified by:
beforeFirst in interface java.sql.ResultSet
Throws:
java.sql.SQLException

beforeFirstX

private void beforeFirstX()
                   throws SqlException
Throws:
SqlException

afterLast

public void afterLast()
               throws java.sql.SQLException
Specified by:
afterLast in interface java.sql.ResultSet
Throws:
java.sql.SQLException

afterLastX

private void afterLastX()
                 throws SqlException
Throws:
SqlException

first

public boolean first()
              throws java.sql.SQLException
Specified by:
first in interface java.sql.ResultSet
Throws:
java.sql.SQLException

firstX

private boolean firstX()
                throws SqlException
Throws:
SqlException

last

public boolean last()
             throws java.sql.SQLException
Specified by:
last in interface java.sql.ResultSet
Throws:
java.sql.SQLException

lastX

private boolean lastX()
               throws SqlException
Throws:
SqlException

getRow

public int getRow()
           throws java.sql.SQLException
Specified by:
getRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getRowX

private int getRowX()
             throws SqlException
Throws:
SqlException

absolute

public boolean absolute(int row)
                 throws java.sql.SQLException
Specified by:
absolute in interface java.sql.ResultSet
Throws:
java.sql.SQLException

absoluteX

public boolean absoluteX(int row)
                  throws SqlException
Throws:
SqlException

relative

public boolean relative(int rows)
                 throws java.sql.SQLException
Specified by:
relative in interface java.sql.ResultSet
Throws:
java.sql.SQLException

relativeX

private boolean relativeX(int rows)
                   throws SqlException
Throws:
SqlException

previous

public boolean previous()
                 throws java.sql.SQLException
Specified by:
previous in interface java.sql.ResultSet
Throws:
java.sql.SQLException

previousX

private boolean previousX()
                   throws SqlException
Throws:
SqlException

setFetchDirection

public void setFetchDirection(int direction)
                       throws java.sql.SQLException
Specified by:
setFetchDirection in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getFetchDirection

public int getFetchDirection()
                      throws java.sql.SQLException
Specified by:
getFetchDirection in interface java.sql.ResultSet
Throws:
java.sql.SQLException

setFetchSize

public void setFetchSize(int rows)
                  throws java.sql.SQLException
Specified by:
setFetchSize in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getFetchSize

public int getFetchSize()
                 throws java.sql.SQLException
Specified by:
getFetchSize in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getType

public int getType()
            throws java.sql.SQLException
Specified by:
getType in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getConcurrency

public int getConcurrency()
                   throws java.sql.SQLException
Specified by:
getConcurrency in interface java.sql.ResultSet
Throws:
java.sql.SQLException

rowUpdated

public boolean rowUpdated()
                   throws java.sql.SQLException
Specified by:
rowUpdated in interface java.sql.ResultSet
Throws:
java.sql.SQLException

rowInserted

public boolean rowInserted()
                    throws java.sql.SQLException
Specified by:
rowInserted in interface java.sql.ResultSet
Throws:
java.sql.SQLException

rowDeleted

public boolean rowDeleted()
                   throws java.sql.SQLException
Specified by:
rowDeleted in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNull

public void updateNull(int column)
                throws java.sql.SQLException
Specified by:
updateNull in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBoolean

public void updateBoolean(int column,
                          boolean x)
                   throws java.sql.SQLException
Specified by:
updateBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateByte

public void updateByte(int column,
                       byte x)
                throws java.sql.SQLException
Specified by:
updateByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateShort

public void updateShort(int column,
                        short x)
                 throws java.sql.SQLException
Specified by:
updateShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateInt

public void updateInt(int column,
                      int x)
               throws java.sql.SQLException
Specified by:
updateInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateLong

public void updateLong(int column,
                       long x)
                throws java.sql.SQLException
Specified by:
updateLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateFloat

public void updateFloat(int column,
                        float x)
                 throws java.sql.SQLException
Specified by:
updateFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDouble

public void updateDouble(int column,
                         double x)
                  throws java.sql.SQLException
Specified by:
updateDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBigDecimal

public void updateBigDecimal(int column,
                             java.math.BigDecimal x)
                      throws java.sql.SQLException
Specified by:
updateBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDate

public void updateDate(int column,
                       java.sql.Date x)
                throws java.sql.SQLException
Specified by:
updateDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTime

public void updateTime(int column,
                       java.sql.Time x)
                throws java.sql.SQLException
Specified by:
updateTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTimestamp

public void updateTimestamp(int column,
                            java.sql.Timestamp x)
                     throws java.sql.SQLException
Specified by:
updateTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateString

public void updateString(int column,
                         java.lang.String x)
                  throws java.sql.SQLException
Specified by:
updateString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBytes

public void updateBytes(int column,
                        byte[] x)
                 throws java.sql.SQLException
Specified by:
updateBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBinaryStream

public void updateBinaryStream(int column,
                               java.io.InputStream x,
                               int length)
                        throws java.sql.SQLException
Specified by:
updateBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateAsciiStream

public void updateAsciiStream(int column,
                              java.io.InputStream x,
                              int length)
                       throws java.sql.SQLException
Specified by:
updateAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateCharacterStream

public void updateCharacterStream(int column,
                                  java.io.Reader x,
                                  int length)
                           throws java.sql.SQLException
Specified by:
updateCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(int column,
                         java.lang.Object x,
                         int scale)
                  throws java.sql.SQLException
Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(int column,
                         java.lang.Object x)
                  throws java.sql.SQLException
Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   java.io.Reader x)
                            throws java.sql.SQLException
Specified by:
updateNCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNClob

public void updateNClob(int columnIndex,
                        java.io.Reader reader)
                 throws java.sql.SQLException
Specified by:
updateNClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNull

public void updateNull(java.lang.String columnName)
                throws java.sql.SQLException
Specified by:
updateNull in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBoolean

public void updateBoolean(java.lang.String columnName,
                          boolean x)
                   throws java.sql.SQLException
Specified by:
updateBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateByte

public void updateByte(java.lang.String columnName,
                       byte x)
                throws java.sql.SQLException
Specified by:
updateByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateShort

public void updateShort(java.lang.String columnName,
                        short x)
                 throws java.sql.SQLException
Specified by:
updateShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateInt

public void updateInt(java.lang.String columnName,
                      int x)
               throws java.sql.SQLException
Specified by:
updateInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateLong

public void updateLong(java.lang.String columnName,
                       long x)
                throws java.sql.SQLException
Specified by:
updateLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateFloat

public void updateFloat(java.lang.String columnName,
                        float x)
                 throws java.sql.SQLException
Specified by:
updateFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDouble

public void updateDouble(java.lang.String columnName,
                         double x)
                  throws java.sql.SQLException
Specified by:
updateDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBigDecimal

public void updateBigDecimal(java.lang.String columnName,
                             java.math.BigDecimal x)
                      throws java.sql.SQLException
Specified by:
updateBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDate

public void updateDate(java.lang.String columnName,
                       java.sql.Date x)
                throws java.sql.SQLException
Specified by:
updateDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTime

public void updateTime(java.lang.String columnName,
                       java.sql.Time x)
                throws java.sql.SQLException
Specified by:
updateTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTimestamp

public void updateTimestamp(java.lang.String columnName,
                            java.sql.Timestamp x)
                     throws java.sql.SQLException
Specified by:
updateTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateString

public void updateString(java.lang.String columnName,
                         java.lang.String x)
                  throws java.sql.SQLException
Specified by:
updateString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBytes

public void updateBytes(java.lang.String columnName,
                        byte[] x)
                 throws java.sql.SQLException
Specified by:
updateBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBinaryStream

public void updateBinaryStream(java.lang.String columnName,
                               java.io.InputStream x,
                               int length)
                        throws java.sql.SQLException
Specified by:
updateBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateAsciiStream

public void updateAsciiStream(java.lang.String columnName,
                              java.io.InputStream x,
                              int length)
                       throws java.sql.SQLException
Specified by:
updateAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateCharacterStream

public void updateCharacterStream(java.lang.String columnName,
                                  java.io.Reader x,
                                  int length)
                           throws java.sql.SQLException
Specified by:
updateCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(java.lang.String columnName,
                         java.lang.Object x,
                         int scale)
                  throws java.sql.SQLException
Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(java.lang.String columnName,
                         java.lang.Object x)
                  throws java.sql.SQLException
Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNCharacterStream

public void updateNCharacterStream(java.lang.String columnName,
                                   java.io.Reader x)
                            throws java.sql.SQLException
Specified by:
updateNCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNClob

public void updateNClob(java.lang.String columnName,
                        java.io.Reader reader)
                 throws java.sql.SQLException
Specified by:
updateNClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

insertRow

public void insertRow()
               throws java.sql.SQLException
Specified by:
insertRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

insertRowX

private void insertRowX()
                 throws SqlException
Throws:
SqlException

updateRow

public void updateRow()
               throws java.sql.SQLException
Specified by:
updateRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateRowX

private boolean updateRowX()
                    throws SqlException
Throws:
SqlException

deleteRow

public void deleteRow()
               throws java.sql.SQLException
Specified by:
deleteRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

deleteRowX

private void deleteRowX()
                 throws SqlException
Throws:
SqlException

refreshRow

public void refreshRow()
                throws java.sql.SQLException
Specified by:
refreshRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

refreshRowX

private void refreshRowX()
                  throws SqlException
Throws:
SqlException

cancelRowUpdates

public void cancelRowUpdates()
                      throws java.sql.SQLException
Specified by:
cancelRowUpdates in interface java.sql.ResultSet
Throws:
java.sql.SQLException

moveToInsertRow

public void moveToInsertRow()
                     throws java.sql.SQLException
Specified by:
moveToInsertRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

moveToCurrentRow

public void moveToCurrentRow()
                      throws java.sql.SQLException
Specified by:
moveToCurrentRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

moveToCurrentRowX

private void moveToCurrentRowX()
                        throws SqlException
Moves off the insert row if positioned there, and checks the current row for releasable LOB locators if positioned on a valid data row.

Throws:
SqlException - if releasing a LOB locator fails

getStatement

public java.sql.Statement getStatement()
                                throws java.sql.SQLException
Retrieves the Statement object that produced this object, or null if the ResultSet was not produced by a Statement object.

Specified by:
getStatement in interface java.sql.ResultSet
Returns:
the Statement that produced this object or null
Throws:
java.sql.SQLException - if a database error occurs or the result set is closed

getURL

public java.net.URL getURL(int columnIndex)
                    throws java.sql.SQLException
Specified by:
getURL in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getURL

public java.net.URL getURL(java.lang.String columnName)
                    throws java.sql.SQLException
Specified by:
getURL in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateRef

public void updateRef(int columnIndex,
                      java.sql.Ref x)
               throws java.sql.SQLException
Specified by:
updateRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateRef

public void updateRef(java.lang.String columnName,
                      java.sql.Ref x)
               throws java.sql.SQLException
Specified by:
updateRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBlob

public void updateBlob(int columnIndex,
                       java.sql.Blob x)
                throws java.sql.SQLException
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.

Specified by:
updateBlob in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateBlob

public void updateBlob(java.lang.String columnName,
                       java.sql.Blob x)
                throws java.sql.SQLException
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.

Specified by:
updateBlob in interface java.sql.ResultSet
Parameters:
columnName - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateBlob

public void updateBlob(int columnIndex,
                       java.io.InputStream x,
                       long length)
                throws java.sql.SQLException
Updates the designated column using the given input stream, which will have the specified number of bytes. 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.

Specified by:
updateBlob in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - An object that contains the data to set the parameter value to.
length - the number of bytes in the parameter data.
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateBlob

public void updateBlob(java.lang.String columnName,
                       java.io.InputStream x,
                       long length)
                throws java.sql.SQLException
Updates the designated column using the given input stream, which will have the specified number of bytes. 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.

Specified by:
updateBlob in interface java.sql.ResultSet
Parameters:
columnName - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - An object that contains the data to set the parameter value to.
length - the number of bytes in the parameter data.
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateArray

public void updateArray(int columnIndex,
                        java.sql.Array x)
                 throws java.sql.SQLException
Specified by:
updateArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateArray

public void updateArray(java.lang.String columnName,
                        java.sql.Array x)
                 throws java.sql.SQLException
Specified by:
updateArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

repositionScrollableResultSetBeforeJDBC1PositionedUpdateDelete

public boolean repositionScrollableResultSetBeforeJDBC1PositionedUpdateDelete()
                                                                       throws SqlException
Throws:
SqlException

flowPositioningFetch

public void flowPositioningFetch(int scrollOrientation,
                                 int rowToFetch)
                          throws DisconnectException
Throws:
DisconnectException

positionToCurrentRowAndUpdate

protected void positionToCurrentRowAndUpdate()
                                      throws SqlException
Throws:
SqlException

insert

protected void insert()
               throws SqlException
Throws:
SqlException

update

protected void update()
               throws SqlException
Throws:
SqlException

positionToCurrentRowAndDelete

protected void positionToCurrentRowAndDelete()
                                      throws SqlException
Throws:
SqlException

delete

protected void delete()
               throws SqlException
Throws:
SqlException

setRowsetAfterLastEvent

public void setRowsetAfterLastEvent()
                             throws SqlException
Throws:
SqlException

setRowsetBeforeFirstEvent

public void setRowsetBeforeFirstEvent()
                               throws SqlException
Throws:
SqlException

setRowsetNoRowsEvent

public void setRowsetNoRowsEvent()

isServersCursorPositionBeforeFirst

private boolean isServersCursorPositionBeforeFirst()
                                            throws SqlException
Throws:
SqlException

isServerCursorPositionAfterLast

private boolean isServerCursorPositionAfterLast()
                                         throws SqlException
Throws:
SqlException

setValidCursorPosition

public void setValidCursorPosition(boolean isValidCursorPosition)

moveToAfterLast

protected void moveToAfterLast()
                        throws DisconnectException
Throws:
DisconnectException

moveToBeforeFirst

protected void moveToBeforeFirst()
                          throws DisconnectException
Throws:
DisconnectException

flowFetch

public void flowFetch()
               throws DisconnectException,
                      SqlException
Throws:
DisconnectException
SqlException

writeInsertRow

public void writeInsertRow(boolean chainedWritesFollowingSetLob)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

writeUpdateRow

public void writeUpdateRow(boolean chainedWritesFollowingSetLob)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

writeDeleteRow

public void writeDeleteRow()
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

readInsertRow

public void readInsertRow()
                   throws DisconnectException,
                          SqlException
Throws:
DisconnectException
SqlException

readUpdateRow

public void readUpdateRow()
                   throws DisconnectException,
                          SqlException
Throws:
DisconnectException
SqlException

readDeleteRow

public void readDeleteRow()
                   throws DisconnectException,
                          SqlException
Throws:
DisconnectException
SqlException

listenToUnitOfWork

public void listenToUnitOfWork()
Specified by:
listenToUnitOfWork in interface UnitOfWorkListener

completeLocalCommit

public void completeLocalCommit(java.util.Iterator listenerIterator)
Specified by:
completeLocalCommit in interface UnitOfWorkListener

completeLocalRollback

public void completeLocalRollback(java.util.Iterator listenerIterator)
Specified by:
completeLocalRollback in interface UnitOfWorkListener

nullOutReferenceInStatement

private void nullOutReferenceInStatement()

markClosed

void markClosed()
Mark this ResultSet as closed. The ResultSet will not be removed from the commit and rollback listeners list in org.apache.derby.client.am.Connection.


markClosed

void markClosed(boolean removeListener)
Mark this ResultSet as closed.

Parameters:
removeListener - if true the ResultSet will be removed from the commit and rollback listeners list in org.apache.derby.client.am.Connection.

markClosedOnServer

public void markClosedOnServer()
Mark this ResultSet as closed on the server.


markAutoCommitted

void markAutoCommitted()

earlyCloseComplete

public void earlyCloseComplete(Sqlca sqlca)
Specified by:
earlyCloseComplete in interface ResultSetCallbackInterface

completeSqlca

public int completeSqlca(Sqlca sqlca)
Specified by:
completeSqlca in interface ResultSetCallbackInterface

setRowCountEvent

public void setRowCountEvent(long rowCount)
                      throws DisconnectException
Throws:
DisconnectException

accumulateWarning

public void accumulateWarning(SqlWarning e)
Specified by:
accumulateWarning in interface ResultSetCallbackInterface

rowCountIsUnknown

protected boolean rowCountIsUnknown()

rowCountIsKnown

protected boolean rowCountIsKnown()

updateColumn

private void updateColumn(int column,
                          java.lang.Object value)

buildInsertString

private java.lang.String buildInsertString()
                                    throws SqlException
Throws:
SqlException

buildUpdateString

private java.lang.String buildUpdateString()
                                    throws SqlException
Throws:
SqlException

buildDeleteString

private java.lang.String buildDeleteString()
                                    throws SqlException
Throws:
SqlException

getTableName

private java.lang.String getTableName()
                               throws SqlException
Throws:
SqlException

quoteSqlIdentifier

private java.lang.String quoteSqlIdentifier(java.lang.String orgValue)

getServerCursorName

private java.lang.String getServerCursorName()
                                      throws SqlException
Throws:
SqlException

getPreparedStatementForInsert

private void getPreparedStatementForInsert()
                                    throws SqlException
Throws:
SqlException

getPreparedStatementForUpdate

private void getPreparedStatementForUpdate()
                                    throws SqlException
Throws:
SqlException

getPreparedStatementForDelete

private void getPreparedStatementForDelete()
                                    throws SqlException
Throws:
SqlException

resetUpdatedColumnsForInsert

private final void resetUpdatedColumnsForInsert()

resetUpdatedColumns

private final void resetUpdatedColumns()

getRowUncast

private final long getRowUncast()

checkGetterPreconditions

private final void checkGetterPreconditions(int column)
                                     throws SqlException
Throws:
SqlException

checkUpdatePreconditions

private final void checkUpdatePreconditions(int column,
                                            java.lang.String operation)
                                     throws SqlException
Throws:
SqlException

checkForValidColumnIndex

final void checkForValidColumnIndex(int column)
                             throws SqlException
Throws:
SqlException

checkForClosedResultSet

protected final void checkForClosedResultSet()
                                      throws SqlException
Throws:
SqlException

checkForUpdatableResultSet

private final void checkForUpdatableResultSet(java.lang.String operation)
                                       throws SqlException
Throws:
SqlException

checkForValidCursorPosition

private final void checkForValidCursorPosition()
                                        throws SqlException
Throws:
SqlException

checkPositionedOnPlainRow

private final void checkPositionedOnPlainRow()
                                      throws SqlException
Throws:
SqlException

checkThatResultSetTypeIsScrollable

private final void checkThatResultSetTypeIsScrollable()
                                               throws SqlException
Throws:
SqlException

checkThatResultSetIsNotDynamic

private final void checkThatResultSetIsNotDynamic()
                                           throws SqlException
Throws:
SqlException

resultSetContainsNoRows

private boolean resultSetContainsNoRows()
                                 throws SqlException
Throws:
SqlException

rowIsInCurrentRowset

private boolean rowIsInCurrentRowset(long rowNumber,
                                     int orientation)
                              throws SqlException
Throws:
SqlException

rowIsInCurrentRowset

private boolean rowIsInCurrentRowset(long rowNumber)
                              throws SqlException
Throws:
SqlException

markPositionedUpdateDeletePreparedStatementsClosed

private void markPositionedUpdateDeletePreparedStatementsClosed()

updateColumnInfoFromCache

protected void updateColumnInfoFromCache()

checkAndThrowReceivedQueryTerminatingException

protected final void checkAndThrowReceivedQueryTerminatingException()
                                                             throws SqlException
Throws:
SqlException

parseScrollableRowset

public void parseScrollableRowset()
                           throws SqlException
Throws:
SqlException

getRSReturnability

public byte getRSReturnability()

setRSReturnability

public void setRSReturnability(byte rsReturnability)

getRowCount

protected void getRowCount()
                    throws SqlException
Throws:
SqlException

flowGetRowset

private void flowGetRowset(int orientation,
                           long rowNumber)
                    throws SqlException
Throws:
SqlException

getNextRowset

private boolean getNextRowset()
                       throws SqlException
Throws:
SqlException

adjustNextRowset

private void adjustNextRowset()

getPreviousRowset

private boolean getPreviousRowset()
                           throws SqlException
Throws:
SqlException

adjustPreviousRowset

private void adjustPreviousRowset(int orientation,
                                  long rowNumber,
                                  boolean isAfterLastRow)
                           throws SqlException
Throws:
SqlException

getAbsoluteRowset

private boolean getAbsoluteRowset(long row)
                           throws SqlException
Throws:
SqlException

adjustAbsoluteRowset

private void adjustAbsoluteRowset(long rowNumber)

getRelativeRowset

private boolean getRelativeRowset(long rows)
                           throws SqlException
Throws:
SqlException

adjustRelativeRowset

private void adjustRelativeRowset(long rowNumber)

getFirstRowset

private boolean getFirstRowset()
                        throws SqlException
Throws:
SqlException

adjustFirstRowset

private void adjustFirstRowset()

getLastRowset

private boolean getLastRowset(long row)
                       throws SqlException
Throws:
SqlException

adjustLastRowset

private void adjustLastRowset(long row)

getRefreshRowset

private boolean getRefreshRowset()
                          throws SqlException
Throws:
SqlException

adjustRefreshRowset

private void adjustRefreshRowset()

setAbsolutePositionBasedOnAllRowsReceived

private void setAbsolutePositionBasedOnAllRowsReceived()

writeFetch_

public abstract void writeFetch_(Section section)
                          throws SqlException
Throws:
SqlException

readFetch_

public abstract void readFetch_()
                         throws SqlException
Throws:
SqlException

writeScrollableFetch_

public abstract void writeScrollableFetch_(Section section,
                                           int fetchSize,
                                           int orientation,
                                           long rowToFetch,
                                           boolean resetQueryBlocks)
                                    throws SqlException
Throws:
SqlException

readScrollableFetch_

public abstract void readScrollableFetch_()
                                   throws SqlException
Throws:
SqlException

writePositioningFetch_

public abstract void writePositioningFetch_(Section section,
                                            int orientation,
                                            long rowToFetch)
                                     throws SqlException
Throws:
SqlException

readPositioningFetch_

public abstract void readPositioningFetch_()
                                    throws SqlException
Throws:
SqlException

writeCursorClose_

public abstract void writeCursorClose_(Section section)
                                throws SqlException
Throws:
SqlException

readCursorClose_

public abstract void readCursorClose_()
                               throws SqlException
Throws:
SqlException

parseRowset_

protected abstract void parseRowset_()
                              throws SqlException
Throws:
SqlException

setFetchSize_

public abstract void setFetchSize_(int rows)

preClose_

protected abstract void preClose_()
                           throws SqlException
Method that is invoked by closeX() before the result set is actually being closed. Subclasses may override this method if work needs to be done before closing.

Throws:
SqlException

getConnectionCallbackInterface

public ConnectionCallbackInterface getConnectionCallbackInterface()
Specified by:
getConnectionCallbackInterface in interface ResultSetCallbackInterface

getStatementCallbackInterface

public StatementCallbackInterface getStatementCallbackInterface()
Specified by:
getStatementCallbackInterface in interface ResultSetCallbackInterface

expandRowsetSqlca

public void expandRowsetSqlca()

checkRowsetSqlca

private final int checkRowsetSqlca()
                            throws SqlException
Throws:
SqlException

checkRowsetSqlca

private final int checkRowsetSqlca(int row)
                            throws SqlException
Throws:
SqlException

resetRowsetFlags

private void resetRowsetFlags()

resetRowsetSqlca

private void resetRowsetSqlca()

createCloseFilterInputStream

private CloseFilterInputStream createCloseFilterInputStream(java.io.InputStream is)
                                                     throws SqlException
Throws:
SqlException

closeCloseFilterInputStream

private void closeCloseFilterInputStream()
                                  throws SqlException
Throws:
SqlException

useStreamOrLOB

void useStreamOrLOB(int columnIndex)
              throws SqlException
Mark a column as already having a stream or LOB accessed from it. If the column was already accessed, throw an exception.

Parameters:
columnIndex - 1-based column index
Throws:
java.sql.SQLException - if the column has already been accessed
SqlException

unuseStreamsAndLOBs

private void unuseStreamsAndLOBs()
Clears the flags for used columns, typically invoked when changing the result set position.


jdbc3MethodNotSupported

private java.sql.SQLException jdbc3MethodNotSupported()

getHoldability

public final int getHoldability()
                         throws java.sql.SQLException
Retrieves the holdability for this ResultSet object.

Specified by:
getHoldability in interface java.sql.ResultSet
Returns:
either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
Throws:
java.sql.SQLException - if a database error occurs

isClosed

public final boolean isClosed()
                       throws java.sql.SQLException
Checks whether this ResultSet object has been closed, either automatically or because close() has been called.

Specified by:
isClosed in interface java.sql.ResultSet
Returns:
true if the ResultSet is closed, false otherwise
Throws:
java.sql.SQLException - if a database error occurs

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              java.io.InputStream x)
                       throws java.sql.SQLException
Updates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateAsciiStream in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              java.io.InputStream x,
                              long length)
                       throws java.sql.SQLException
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:
updateAsciiStream in interface java.sql.ResultSet
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)
                        throws java.sql.SQLException
Updates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateBinaryStream in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               java.io.InputStream x,
                               long length)
                        throws java.sql.SQLException
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:
updateBinaryStream in interface java.sql.ResultSet
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

updateBlob

public void updateBlob(int columnIndex,
                       java.io.InputStream x)
                throws java.sql.SQLException
Updates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateBlob in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  java.io.Reader reader)
                           throws java.sql.SQLException
Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateCharacterStream in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
reader - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  java.io.Reader x,
                                  long length)
                           throws java.sql.SQLException
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:
updateCharacterStream in interface java.sql.ResultSet
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

updateClob

public void updateClob(int columnIndex,
                       java.io.Reader reader)
                throws java.sql.SQLException
Updates the designated column using the given Reader object. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format. 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.

Specified by:
updateClob in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
reader - an object that contains the data to set the parameter value to.
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateAsciiStream

public void updateAsciiStream(java.lang.String columnName,
                              java.io.InputStream x)
                       throws java.sql.SQLException
Updates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateAsciiStream in interface java.sql.ResultSet
Parameters:
columnName - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateAsciiStream

public void updateAsciiStream(java.lang.String columnName,
                              java.io.InputStream x,
                              long length)
                       throws java.sql.SQLException
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:
updateAsciiStream in interface java.sql.ResultSet
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 columnLabel,
                               java.io.InputStream x)
                        throws java.sql.SQLException
Updates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateBinaryStream in interface java.sql.ResultSet
Parameters:
columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateBinaryStream

public void updateBinaryStream(java.lang.String columnName,
                               java.io.InputStream x,
                               long length)
                        throws java.sql.SQLException
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:
updateBinaryStream in interface java.sql.ResultSet
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

updateBlob

public void updateBlob(java.lang.String columnLabel,
                       java.io.InputStream x)
                throws java.sql.SQLException
Updates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateBlob in interface java.sql.ResultSet
Parameters:
columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateCharacterStream

public void updateCharacterStream(java.lang.String columnLabel,
                                  java.io.Reader reader)
                           throws java.sql.SQLException
Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. 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.

Specified by:
updateCharacterStream in interface java.sql.ResultSet
Parameters:
columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
reader - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateCharacterStream

public void updateCharacterStream(java.lang.String columnName,
                                  java.io.Reader reader,
                                  long length)
                           throws java.sql.SQLException
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:
updateCharacterStream in interface java.sql.ResultSet
Parameters:
columnName - the name of the column
reader - the new column value
length - length of the stream
Throws:
java.sql.SQLException - if a database-access error occurs

updateClob

public void updateClob(java.lang.String columnLabel,
                       java.io.Reader reader)
                throws java.sql.SQLException
Updates the designated column using the given Reader object. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format. 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.

Specified by:
updateClob in interface java.sql.ResultSet
Parameters:
columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
reader - an object that contains the data to set the parameter value to.
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateClob

public void updateClob(int columnIndex,
                       java.io.Reader x,
                       long length)
                throws java.sql.SQLException
Updates the designated column using the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The JDBC driver will do any necessary conversion from UNICODE to the database char format.

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.

Specified by:
updateClob in interface java.sql.ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - An object that contains the data to set the parameter value to.
length - the number of characters in the parameter data.
Throws:
java.sql.SQLException - if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set
SQLFeatureNotSupportedException - if the JDBC driver does not support this method

updateClob

public void updateClob(java.lang.String columnName,
                       java.io.Reader x,
                       long length)
                throws java.sql.SQLException
Updates the designated column using the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The JDBC driver will do any necessary conversion from UNICODE to the database char format.

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.

Specified by:
updateClob in interface java.sql.ResultSet
Parameters:
columnName - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - An object that contains the data to set the parameter value to.
length - the number of characters in the parameter data.
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set
SQLFeatureNotSupportedException - if the JDBC driver does not support this method

updateClob

public void updateClob(int columnIndex,
                       java.sql.Clob x)
                throws java.sql.SQLException
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.

Specified by:
updateClob in interface java.sql.ResultSet
Parameters:
columnIndex - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

updateClob

public void updateClob(java.lang.String columnLabel,
                       java.sql.Clob x)
                throws java.sql.SQLException
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.

Specified by:
updateClob in interface java.sql.ResultSet
Parameters:
columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
x - the new column value
Throws:
java.sql.SQLException - if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set

markLOBAsPublished

public final void markLOBAsPublished(int index)
Marks the LOB at the specified column as published.

When a LOB is marked as published, the release mechanism will not be invoked by the result set. It is expected that the code accessing the LOB releases the locator when it is done with the LOB, or that the commit/rollback handles the release.

Parameters:
index - 1-based column index

createLOBColumnTracker

final void createLOBColumnTracker()
Initializes the LOB state tracker.

The state tracker is used to free LOB locators on the server. If the server doesn't support locators, or there are no LOBs in the result set, a no-op tracker will be used.


Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.