net.sourceforge.hatbox
Class IdResultSet

java.lang.Object
  extended by net.sourceforge.hatbox.AbstractResultSet
      extended by net.sourceforge.hatbox.IdResultSet
All Implemented Interfaces:
java.sql.ResultSet, java.sql.Wrapper
Direct Known Subclasses:
FilteredResultSet

public class IdResultSet
extends AbstractResultSet

A result set for returning a single Entry Identifier column

Author:
Peter Yuill

Field Summary
protected  int currentIndex
           
protected  java.lang.Long id
           
protected  java.util.List<java.lang.Long> ids
           
protected  boolean rowAvailable
           
protected  int size
           
 
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
IdResultSet(java.util.List<java.lang.Long> ids, java.lang.String schema, java.lang.String table)
           
 
Method Summary
 void close()
           
 int findColumn(java.lang.String columnLabel)
           
 long getLong(int columnIndex)
           
 java.sql.ResultSetMetaData getMetaData()
           
 java.sql.NClob getNClob(int idx)
           
 java.sql.NClob getNClob(java.lang.String lbl)
           
 java.lang.Object getObject(int columnIndex)
           
 java.sql.RowId getRowId(int idx)
           
 java.sql.RowId getRowId(java.lang.String lbl)
           
 java.sql.SQLXML getSQLXML(int idx)
           
 java.sql.SQLXML getSQLXML(java.lang.String lbl)
           
 java.lang.String getString(int columnIndex)
           
 boolean isClosed()
           
 boolean next()
           
 void updateNClob(int idx, java.sql.NClob obj)
           
 void updateNClob(java.lang.String lbl, java.sql.NClob obj)
           
 void updateRowId(int idx, java.sql.RowId obj)
           
 void updateRowId(java.lang.String lbl, java.sql.RowId obj)
           
 void updateSQLXML(int idx, java.sql.SQLXML obj)
           
 void updateSQLXML(java.lang.String lbl, java.sql.SQLXML obj)
           
 boolean wasNull()
           
 
Methods inherited from class net.sourceforge.hatbox.AbstractResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getNCharacterStream, getNCharacterStream, getNString, getNString, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, unwrap, 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, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ids

protected java.util.List<java.lang.Long> ids

id

protected java.lang.Long id

currentIndex

protected int currentIndex

size

protected int size

rowAvailable

protected boolean rowAvailable
Constructor Detail

IdResultSet

public IdResultSet(java.util.List<java.lang.Long> ids,
                   java.lang.String schema,
                   java.lang.String table)
Method Detail

close

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

isClosed

public boolean isClosed()
                 throws java.sql.SQLException
Specified by:
isClosed in interface java.sql.ResultSet
Overrides:
isClosed in class AbstractResultSet
Throws:
java.sql.SQLException

findColumn

public int findColumn(java.lang.String columnLabel)
               throws java.sql.SQLException
Specified by:
findColumn in interface java.sql.ResultSet
Specified by:
findColumn in class AbstractResultSet
Throws:
java.sql.SQLException

next

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

wasNull

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

getObject

public java.lang.Object getObject(int columnIndex)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.ResultSet
Overrides:
getObject in class AbstractResultSet
Throws:
java.sql.SQLException

getString

public java.lang.String getString(int columnIndex)
                           throws java.sql.SQLException
Specified by:
getString in interface java.sql.ResultSet
Overrides:
getString in class AbstractResultSet
Throws:
java.sql.SQLException

getLong

public long getLong(int columnIndex)
             throws java.sql.SQLException
Specified by:
getLong in interface java.sql.ResultSet
Overrides:
getLong in class AbstractResultSet
Throws:
java.sql.SQLException

getMetaData

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

updateSQLXML

public void updateSQLXML(int idx,
                         java.sql.SQLXML obj)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

updateSQLXML

public void updateSQLXML(java.lang.String lbl,
                         java.sql.SQLXML obj)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getSQLXML

public java.sql.SQLXML getSQLXML(int idx)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getSQLXML

public java.sql.SQLXML getSQLXML(java.lang.String lbl)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

updateNClob

public void updateNClob(int idx,
                        java.sql.NClob obj)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

updateNClob

public void updateNClob(java.lang.String lbl,
                        java.sql.NClob obj)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getNClob

public java.sql.NClob getNClob(int idx)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getNClob

public java.sql.NClob getNClob(java.lang.String lbl)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

updateRowId

public void updateRowId(int idx,
                        java.sql.RowId obj)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

updateRowId

public void updateRowId(java.lang.String lbl,
                        java.sql.RowId obj)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getRowId

public java.sql.RowId getRowId(int idx)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getRowId

public java.sql.RowId getRowId(java.lang.String lbl)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2010. All Rights Reserved.