org.postgresql.jdbc3
Class AbstractJdbc3ResultSet

java.lang.Object
  extended by org.postgresql.jdbc2.AbstractJdbc2ResultSet
      extended by org.postgresql.jdbc3.AbstractJdbc3ResultSet
All Implemented Interfaces:
ResultSet, Wrapper, BaseResultSet, PGRefCursorResultSet
Direct Known Subclasses:
AbstractJdbc3gResultSet, Jdbc3ResultSet

public abstract class AbstractJdbc3ResultSet
extends AbstractJdbc2ResultSet

This class defines methods of the jdbc3 specification. This class extends org.postgresql.jdbc2.AbstractJdbc2ResultSet which provides the jdbc2 methods. The real Statement class (for jdbc3) is org.postgresql.jdbc3.Jdbc3ResultSet


Nested Class Summary
 
Nested classes/interfaces inherited from class org.postgresql.jdbc2.AbstractJdbc2ResultSet
AbstractJdbc2ResultSet.CursorResultHandler
 
Field Summary
 
Fields inherited from class org.postgresql.jdbc2.AbstractJdbc2ResultSet
connection, current_row, cursor, fetchSize, fields, maxFieldSize, maxRows, onInsertRow, originalQuery, row_offset, rows, statement, this_row, warnings, wasNullFlag
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
AbstractJdbc3ResultSet(Query originalQuery, BaseStatement statement, Field[] fields, Vector tuples, ResultCursor cursor, int maxRows, int maxFieldSize, int rsType, int rsConcurrency, int rsHoldability)
           
 
Method Summary
 URL getURL(int columnIndex)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
 URL getURL(String columnName)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
protected  Object internalGetObject(int columnIndex, Field field)
           
 void updateArray(int columnIndex, Array x)
          Updates the designated column with a java.sql.Array value.
 void updateArray(String columnName, Array x)
          Updates the designated column with a java.sql.Array value.
 void updateBlob(int columnIndex, Blob x)
          Updates the designated column with a java.sql.Blob value.
 void updateBlob(String columnName, Blob x)
          Updates the designated column with a java.sql.Blob value.
 void updateClob(int columnIndex, Clob x)
          Updates the designated column with a java.sql.Clob value.
 void updateClob(String columnName, Clob x)
          Updates the designated column with a java.sql.Clob value.
 void updateRef(int columnIndex, Ref x)
          Updates the designated column with a java.sql.Ref value.
 void updateRef(String columnName, Ref x)
          Updates the designated column with a java.sql.Ref value.
 
Methods inherited from class org.postgresql.jdbc2.AbstractJdbc2ResultSet
absolute, addWarning, afterLast, beforeFirst, cancelRowUpdates, checkClosed, checkColumnIndex, checkResultSet, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getColumnOID, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFixedString, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObjectImpl, getObjectImpl, getPGStatement, getPGType, getRef, getRef, getRefCursor, getRow, getShort, getShort, getSQLType, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getUUID, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, quotelessTableName, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, toBigDecimal, toBoolean, toDouble, toFloat, toInt, toLong, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, updateValue, wasNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.postgresql.core.BaseResultSet
createArray
 
Methods inherited from interface java.sql.ResultSet
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

AbstractJdbc3ResultSet

public AbstractJdbc3ResultSet(Query originalQuery,
                              BaseStatement statement,
                              Field[] fields,
                              Vector tuples,
                              ResultCursor cursor,
                              int maxRows,
                              int maxFieldSize,
                              int rsType,
                              int rsConcurrency,
                              int rsHoldability)
                       throws SQLException
Throws:
SQLException
Method Detail

internalGetObject

protected Object internalGetObject(int columnIndex,
                                   Field field)
                            throws SQLException
Overrides:
internalGetObject in class AbstractJdbc2ResultSet
Throws:
SQLException

getURL

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

Specified by:
getURL in interface ResultSet
Overrides:
getURL in class AbstractJdbc2ResultSet
Parameters:
columnIndex - the index of the column 1 is the first, 2 is the second,...
Returns:
the column value as a java.net.URL object; if the value is SQL NULL, the value returned is null in the Java programming language
Throws:
SQLException - if a database access error occurs, or if a URL is malformed
Since:
1.4

getURL

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

Specified by:
getURL in interface ResultSet
Overrides:
getURL in class AbstractJdbc2ResultSet
Parameters:
columnName - the SQL name of the column
Returns:
the column value as a java.net.URL object; if the value is SQL NULL, the value returned is null in the Java programming language
Throws:
SQLException - if a database access error occurs or if a URL is malformed
Since:
1.4

updateRef

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

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

updateRef

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

Parameters:
columnName - the name of the column
x - the new column value
Throws:
SQLException - if a database access error occurs
Since:
1.4

updateBlob

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

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

updateBlob

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

Parameters:
columnName - the name of the column
x - the new column value
Throws:
SQLException - if a database access error occurs
Since:
1.4

updateClob

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

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

updateClob

public void updateClob(String columnName,
                       Clob x)
                throws 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.

Parameters:
columnName - the name of the column
x - the new column value
Throws:
SQLException - if a database access error occurs
Since:
1.4

updateArray

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

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

updateArray

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

Parameters:
columnName - the name of the column
x - the new column value
Throws:
SQLException - if a database access error occurs
Since:
1.4


Copyright © 2013. All Rights Reserved.