org.postgresql.jdbc4
Class Jdbc4ResultSet

java.lang.Object
  extended by org.postgresql.jdbc2.AbstractJdbc2ResultSet
      extended by org.postgresql.jdbc3.AbstractJdbc3ResultSet
          extended by org.postgresql.jdbc3g.AbstractJdbc3gResultSet
              extended by org.postgresql.jdbc4.Jdbc4ResultSet
All Implemented Interfaces:
ResultSet, Wrapper, BaseResultSet, PGRefCursorResultSet

public class Jdbc4ResultSet
extends AbstractJdbc3gResultSet
implements ResultSet

This class implements the java.sql.ResultSet interface for JDBC4. However most of the implementation is really done in org.postgresql.jdbc4.AbstractJdbc4ResultSet or one of it's parents


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
 
Method Summary
 Array createArray(int i)
           
 Blob getBlob(int i)
           
 Clob getClob(int i)
           
 int getHoldability()
           
 ResultSetMetaData getMetaData()
           
 Reader getNCharacterStream(int columnIndex)
           
 Reader getNCharacterStream(String columnName)
           
 NClob getNClob(int columnIndex)
           
 NClob getNClob(String columnName)
           
 String getNString(int columnIndex)
           
 String getNString(String columnName)
           
<T> T
getObject(int columnIndex, Class<T> type)
           
 Object getObject(int i, Map<String,Class<?>> map)
           
<T> T
getObject(String columnLabel, Class<T> type)
           
 Object getObject(String s, Map<String,Class<?>> map)
           
 RowId getRowId(int columnIndex)
           
 RowId getRowId(String columnName)
           
 SQLXML getSQLXML(int columnIndex)
           
 SQLXML getSQLXML(String columnName)
           
protected  Object internalGetObject(int columnIndex, Field field)
           
 boolean isClosed()
           
 boolean isWrapperFor(Class<?> iface)
           
<T> T
unwrap(Class<T> iface)
           
 void updateAsciiStream(int columnIndex, InputStream inputStream)
           
 void updateAsciiStream(int columnIndex, InputStream inputStream, long length)
           
 void updateAsciiStream(String columnName, InputStream inputStream)
           
 void updateAsciiStream(String columnName, InputStream inputStream, long length)
           
 void updateBinaryStream(int columnIndex, InputStream inputStream)
           
 void updateBinaryStream(int columnIndex, InputStream inputStream, long length)
           
 void updateBinaryStream(String columnName, InputStream inputStream)
           
 void updateBinaryStream(String columnName, InputStream inputStream, long length)
           
 void updateBlob(int columnIndex, InputStream inputStream)
           
 void updateBlob(int columnIndex, InputStream inputStream, long length)
           
 void updateBlob(String columnName, InputStream inputStream)
           
 void updateBlob(String columnName, InputStream inputStream, long length)
           
 void updateCharacterStream(int columnIndex, Reader reader)
           
 void updateCharacterStream(int columnIndex, Reader reader, long length)
           
 void updateCharacterStream(String columnName, Reader reader)
           
 void updateCharacterStream(String columnName, Reader reader, long length)
           
 void updateClob(int columnIndex, Reader reader)
           
 void updateClob(int columnIndex, Reader reader, long length)
           
 void updateClob(String columnName, Reader reader)
           
 void updateClob(String columnName, Reader reader, long length)
           
 void updateNCharacterStream(int columnIndex, Reader x)
           
 void updateNCharacterStream(int columnIndex, Reader x, int length)
           
 void updateNCharacterStream(int columnIndex, Reader x, long length)
           
 void updateNCharacterStream(String columnName, Reader x)
           
 void updateNCharacterStream(String columnName, Reader x, int length)
           
 void updateNCharacterStream(String columnName, Reader x, long length)
           
 void updateNClob(int columnIndex, NClob nClob)
           
 void updateNClob(int columnIndex, Reader reader)
           
 void updateNClob(int columnIndex, Reader reader, long length)
           
 void updateNClob(String columnName, NClob nClob)
           
 void updateNClob(String columnName, Reader reader)
           
 void updateNClob(String columnName, Reader reader, long length)
           
 void updateNString(int columnIndex, String nString)
           
 void updateNString(String columnName, String nString)
           
 void updateRowId(int columnIndex, RowId x)
           
 void updateRowId(String columnName, RowId x)
           
 void updateSQLXML(int columnIndex, SQLXML xmlObject)
           
 void updateSQLXML(String columnName, SQLXML xmlObject)
           
 
Methods inherited from class org.postgresql.jdbc3g.AbstractJdbc3gResultSet
getUUID
 
Methods inherited from class org.postgresql.jdbc3.AbstractJdbc3ResultSet
getURL, getURL, updateArray, updateArray, updateBlob, updateBlob, updateClob, updateClob, updateRef, updateRef
 
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, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getColumnOID, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFixedString, getFloat, getFloat, getInt, getInt, getLong, getLong, 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, 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 java.sql.ResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Method Detail

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Specified by:
getMetaData in interface ResultSet
Specified by:
getMetaData in class AbstractJdbc2ResultSet
Throws:
SQLException

getClob

public Clob getClob(int i)
             throws SQLException
Specified by:
getClob in interface ResultSet
Specified by:
getClob in class AbstractJdbc2ResultSet
Throws:
SQLException

getBlob

public Blob getBlob(int i)
             throws SQLException
Specified by:
getBlob in interface ResultSet
Specified by:
getBlob in class AbstractJdbc2ResultSet
Throws:
SQLException

createArray

public Array createArray(int i)
                  throws SQLException
Specified by:
createArray in interface BaseResultSet
Throws:
SQLException

getObject

public Object getObject(String s,
                        Map<String,Class<?>> map)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

getObject

public Object getObject(int i,
                        Map<String,Class<?>> map)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

getRowId

public RowId getRowId(int columnIndex)
               throws SQLException
Throws:
SQLException

getRowId

public RowId getRowId(String columnName)
               throws SQLException
Throws:
SQLException

updateRowId

public void updateRowId(int columnIndex,
                        RowId x)
                 throws SQLException
Throws:
SQLException

updateRowId

public void updateRowId(String columnName,
                        RowId x)
                 throws SQLException
Throws:
SQLException

getHoldability

public int getHoldability()
                   throws SQLException
Throws:
SQLException

isClosed

public boolean isClosed()
                 throws SQLException
Throws:
SQLException

updateNString

public void updateNString(int columnIndex,
                          String nString)
                   throws SQLException
Throws:
SQLException

updateNString

public void updateNString(String columnName,
                          String nString)
                   throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(int columnIndex,
                        NClob nClob)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(String columnName,
                        NClob nClob)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(int columnIndex,
                        Reader reader)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(String columnName,
                        Reader reader)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(int columnIndex,
                        Reader reader,
                        long length)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(String columnName,
                        Reader reader,
                        long length)
                 throws SQLException
Throws:
SQLException

getNClob

public NClob getNClob(int columnIndex)
               throws SQLException
Throws:
SQLException

getNClob

public NClob getNClob(String columnName)
               throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(int columnIndex,
                       InputStream inputStream,
                       long length)
                throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(String columnName,
                       InputStream inputStream,
                       long length)
                throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(int columnIndex,
                       InputStream inputStream)
                throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(String columnName,
                       InputStream inputStream)
                throws SQLException
Throws:
SQLException

updateClob

public void updateClob(int columnIndex,
                       Reader reader,
                       long length)
                throws SQLException
Throws:
SQLException

updateClob

public void updateClob(String columnName,
                       Reader reader,
                       long length)
                throws SQLException
Throws:
SQLException

updateClob

public void updateClob(int columnIndex,
                       Reader reader)
                throws SQLException
Throws:
SQLException

updateClob

public void updateClob(String columnName,
                       Reader reader)
                throws SQLException
Throws:
SQLException

getSQLXML

public SQLXML getSQLXML(int columnIndex)
                 throws SQLException
Throws:
SQLException

getSQLXML

public SQLXML getSQLXML(String columnName)
                 throws SQLException
Throws:
SQLException

updateSQLXML

public void updateSQLXML(int columnIndex,
                         SQLXML xmlObject)
                  throws SQLException
Throws:
SQLException

updateSQLXML

public void updateSQLXML(String columnName,
                         SQLXML xmlObject)
                  throws SQLException
Throws:
SQLException

getNString

public String getNString(int columnIndex)
                  throws SQLException
Throws:
SQLException

getNString

public String getNString(String columnName)
                  throws SQLException
Throws:
SQLException

getNCharacterStream

public Reader getNCharacterStream(int columnIndex)
                           throws SQLException
Throws:
SQLException

getNCharacterStream

public Reader getNCharacterStream(String columnName)
                           throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   Reader x,
                                   int length)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(String columnName,
                                   Reader x,
                                   int length)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   Reader x)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(String columnName,
                                   Reader x)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   Reader x,
                                   long length)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(String columnName,
                                   Reader x,
                                   long length)
                            throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader reader,
                                  long length)
                           throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(String columnName,
                                  Reader reader,
                                  long length)
                           throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader reader)
                           throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(String columnName,
                                  Reader reader)
                           throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream inputStream,
                               long length)
                        throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(String columnName,
                               InputStream inputStream,
                               long length)
                        throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream inputStream)
                        throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(String columnName,
                               InputStream inputStream)
                        throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream inputStream,
                              long length)
                       throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(String columnName,
                              InputStream inputStream,
                              long length)
                       throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream inputStream)
                       throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(String columnName,
                              InputStream inputStream)
                       throws SQLException
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
Throws:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Throws:
SQLException

internalGetObject

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

getObject

public <T> T getObject(int columnIndex,
                       Class<T> type)
            throws SQLException
Throws:
SQLException

getObject

public <T> T getObject(String columnLabel,
                       Class<T> type)
            throws SQLException
Throws:
SQLException


Copyright © 2013. All Rights Reserved.