Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mockobjects.sql
Class MockResultSet  view MockResultSet download MockResultSet.java

java.lang.Object
  extended bycom.mockobjects.MockObject
      extended bycom.mockobjects.sql.MockResultSet
All Implemented Interfaces:
java.sql.ResultSet, com.mockobjects.Verifiable
Direct Known Subclasses:
CommonMockMultiRowResultSet, CommonMockSingleRowResultSet

abstract class MockResultSet
extends com.mockobjects.MockObject
implements java.sql.ResultSet

This is the base implementation of a mock result set. It manages converting objects from the current row into a other types. Entries can be found by either column index or column name. For basic java types (e.g. int, boolean), insert an instance of the appropriate object (e.g. Integer, Boolean) It also counts close() and next() calls To force throwing a SQLException on a getter, set the corresponding value to be of type SQLException.


Field Summary
private  com.mockobjects.ExpectationCounter myCloseCalls
           
private  com.mockobjects.ReturnValue myMetaData
           
protected  com.mockobjects.ExpectationCounter myNextCalls
           
private  com.mockobjects.ReturnValue myStatement
           
protected  java.lang.String name
           
 
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
MockResultSet()
           
MockResultSet(java.lang.String name)
           
 
Method Summary
 boolean absolute(int row)
          Calls notImplemented.
 void afterLast()
          Calls notImplemented.
 void beforeFirst()
          Calls notImplemented.
 void cancelRowUpdates()
          Calls notImplemented.
 void clearWarnings()
          Calls notImplemented.
 void close()
          This method closes the result set and frees any associated resources.
 void deleteRow()
          Calls notImplemented.
 int findColumn(java.lang.String columnName)
          Calls notImplemented.
 boolean first()
          Calls notImplemented.
 java.sql.Array getArray(int i)
          This method returns the specified column value as an Array.
 java.sql.Array getArray(java.lang.String colName)
          This method returns the specified column value as an Array.
 java.io.InputStream getAsciiStream(int columnIndex)
          This method returns the value of the specified column as an ASCII stream.
 java.io.InputStream getAsciiStream(java.lang.String columnName)
          This method returns the value of the specified column as an ASCII stream.
 java.math.BigDecimal getBigDecimal(int columnIndex)
          This method returns the value of the specified column as a Java BigDecimal.
 java.math.BigDecimal getBigDecimal(int columnIndex, int scale)
          This method returns the value of the specified column as a Java BigDecimal.
 java.math.BigDecimal getBigDecimal(java.lang.String columnName)
          This method returns the value of the specified column as a Java BigDecimal.
 java.math.BigDecimal getBigDecimal(java.lang.String columnName, int scale)
          This method returns the value of the specified column as a Java BigDecimal.
 java.io.InputStream getBinaryStream(int columnIndex)
          This method returns the value of the specified column as a raw byte stream.
 java.io.InputStream getBinaryStream(java.lang.String columnName)
          This method returns the value of the specified column as a raw byte stream.
 java.sql.Blob getBlob(int i)
          This method returns the specified column value as a BLOB.
 java.sql.Blob getBlob(java.lang.String colName)
          This method returns the specified column value as a BLOB.
 boolean getBoolean(int columnIndex)
          This method returns the value of the specified column as a Java boolean.
 boolean getBoolean(java.lang.String columnName)
          This method returns the value of the specified column as a Java boolean.
 byte getByte(int columnIndex)
          This method returns the value of the specified column as a Java byte.
 byte getByte(java.lang.String columnName)
          This method returns the value of the specified column as a Java byte.
 byte[] getBytes(int columnIndex)
          This method returns the value of the specified column as a Java byte array.
 byte[] getBytes(java.lang.String columnName)
          This method returns the value of the specified column as a Java byte array.
 java.io.Reader getCharacterStream(int columnIndex)
          This method returns the value of the specified column as a character stream.
 java.io.Reader getCharacterStream(java.lang.String columnName)
          This method returns the value of the specified column as a character stream.
 java.sql.Clob getClob(int i)
          This method returns the specified column value as a CLOB.
 java.sql.Clob getClob(java.lang.String colName)
          This method returns the specified column value as a CLOB.
 int getConcurrency()
          This method returns the concurrency type of this result set.
 java.lang.String getCursorName()
          This method returns the name of the database cursor used by this result set.
 java.sql.Date getDate(int columnIndex)
          This method returns the value of the specified column as a Java java.sql.Date.
 java.sql.Date getDate(int columnIndex, java.util.Calendar cal)
          This method returns the specified column value as a java.sql.Date.
 java.sql.Date getDate(java.lang.String columnName)
          This method returns the value of the specified column as a Java java.sql.Date.
 java.sql.Date getDate(java.lang.String columnName, java.util.Calendar cal)
          This method returns the specified column value as a java.sql.Date.
 double getDouble(int columnIndex)
          This method returns the value of the specified column as a Java double.
 double getDouble(java.lang.String columnName)
          This method returns the value of the specified column as a Java double.
 int getFetchDirection()
          Calls notImplemented.
 int getFetchSize()
          Calls notImplemented.
 float getFloat(int columnIndex)
          This method returns the value of the specified column as a Java float.
 float getFloat(java.lang.String columnName)
          This method returns the value of the specified column as a Java float.
 int getInt(int columnIndex)
          This method returns the value of the specified column as a Java int.
 int getInt(java.lang.String columnName)
          This method returns the value of the specified column as a Java int.
 long getLong(int columnIndex)
          This method returns the value of the specified column as a Java long.
 long getLong(java.lang.String columnName)
          This method returns the value of the specified column as a Java long.
 java.sql.ResultSetMetaData getMetaData()
          This method returns data about the columns returned as part of the result set as a ResultSetMetaData instance.
abstract  java.lang.Object getObject(int columnIndex)
          Used as the base implementation for getting all types of object, based on 1-based column index
 java.lang.Object getObject(int i, java.util.Map map)
          Calls notImplemented.
abstract  java.lang.Object getObject(java.lang.String columnName)
          Used as the base implementation for getting all types of object, based on columnName
 java.lang.Object getObject(java.lang.String colName, java.util.Map map)
          Calls notImplemented.
 java.sql.Ref getRef(int i)
          This method returns a Ref for the specified column which represents the structured type for the column.
 java.sql.Ref getRef(java.lang.String colName)
          This method returns a Ref for the specified column which represents the structured type for the column.
abstract  int getRow()
          This method returns the current row number in the cursor.
 short getShort(int columnIndex)
          This method returns the value of the specified column as a Java short.
 short getShort(java.lang.String columnName)
          This method returns the value of the specified column as a Java short.
 java.sql.Statement getStatement()
          This method returns a the Statement that was used to produce this result set.
 java.lang.String getString(int columnIndex)
          This method returns the value of the specified column as a Java String.
 java.lang.String getString(java.lang.String columnName)
          This method returns the value of the specified column as a Java String.
 java.sql.Time getTime(int columnIndex)
          This method returns the value of the specified column as a Java java.sql.Time.
 java.sql.Time getTime(int columnIndex, java.util.Calendar cal)
          This method returns the specified column value as a java.sql.Time.
 java.sql.Time getTime(java.lang.String columnName)
          This method returns the value of the specified column as a Java java.sql.Time.
 java.sql.Time getTime(java.lang.String columnName, java.util.Calendar cal)
          This method returns the specified column value as a java.sql.Time.
 java.sql.Timestamp getTimestamp(int columnIndex)
          This method returns the value of the specified column as a Java java.sql.Timestamp.
 java.sql.Timestamp getTimestamp(int columnIndex, java.util.Calendar cal)
          This method returns the specified column value as a java.sql.Timestamp.
 java.sql.Timestamp getTimestamp(java.lang.String columnName)
          This method returns the value of the specified column as a Java java.sql.Timestamp.
 java.sql.Timestamp getTimestamp(java.lang.String columnName, java.util.Calendar cal)
          This method returns the specified column value as a java.sql.Timestamp.
 int getType()
          Calls notImplemented.
 java.io.InputStream getUnicodeStream(int columnIndex)
          This method returns the value of the specified column as a Unicode UTF-8 stream.
 java.io.InputStream getUnicodeStream(java.lang.String columnName)
          This method returns the value of the specified column as a Unicode UTF-8 stream.
 java.sql.SQLWarning getWarnings()
          Calls notImplemented.
 void insertRow()
          Calls notImplemented.
 boolean isAfterLast()
          Calls notImplemented.
 boolean isBeforeFirst()
          Calls notImplemented.
 boolean isFirst()
          Calls notImplemented.
 boolean isLast()
          Calls notImplemented.
 boolean last()
          Calls notImplemented.
 void moveToCurrentRow()
          Calls notImplemented.
 void moveToInsertRow()
          Calls notImplemented.
abstract  boolean next()
          This method advances to the next row in the result set.
 boolean previous()
          Calls notImplemented.
 void refreshRow()
          Calls notImplemented.
 boolean relative(int rows)
          Calls notImplemented.
 boolean rowDeleted()
          Calls notImplemented.
 boolean rowInserted()
          Calls notImplemented.
 boolean rowUpdated()
          Calls notImplemented.
 void setExpectedCloseCalls(int calls)
           
 void setExpectedNextCalls(int calls)
           
 void setFetchDirection(int direction)
          Calls notImplemented.
 void setFetchSize(int rows)
          Calls notImplemented.
 void setupMetaData(java.sql.ResultSetMetaData metaData)
           
 void setupStatement(java.sql.Statement statement)
           
 void updateAsciiStream(int columnIndex, java.io.InputStream x, int length)
          Calls notImplemented.
 void updateAsciiStream(java.lang.String columnName, java.io.InputStream x, int length)
          Calls notImplemented.
 void updateBigDecimal(int columnIndex, java.math.BigDecimal x)
          Calls notImplemented.
 void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal x)
          Calls notImplemented.
 void updateBinaryStream(int columnIndex, java.io.InputStream x, int length)
          Calls notImplemented.
 void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length)
          Calls notImplemented.
 void updateBoolean(int columnIndex, boolean x)
          Calls notImplemented.
 void updateBoolean(java.lang.String columnName, boolean x)
          Calls notImplemented.
 void updateByte(int columnIndex, byte x)
          Calls notImplemented.
 void updateByte(java.lang.String columnName, byte x)
          Calls notImplemented.
 void updateBytes(int columnIndex, byte[] x)
          Calls notImplemented.
 void updateBytes(java.lang.String columnName, byte[] x)
          Calls notImplemented.
 void updateCharacterStream(int columnIndex, java.io.Reader x, int length)
          Calls notImplemented.
 void updateCharacterStream(java.lang.String columnName, java.io.Reader reader, int length)
          Calls notImplemented.
 void updateDate(int columnIndex, java.sql.Date x)
          Calls notImplemented.
 void updateDate(java.lang.String columnName, java.sql.Date x)
          Calls notImplemented.
 void updateDouble(int columnIndex, double x)
          Calls notImplemented.
 void updateDouble(java.lang.String columnName, double x)
          Calls notImplemented.
 void updateFloat(int columnIndex, float x)
          Calls notImplemented.
 void updateFloat(java.lang.String columnName, float x)
          Calls notImplemented.
 void updateInt(int columnIndex, int x)
          Calls notImplemented.
 void updateInt(java.lang.String columnName, int x)
          Calls notImplemented.
 void updateLong(int columnIndex, long x)
          Calls notImplemented.
 void updateLong(java.lang.String columnName, long x)
          Calls notImplemented.
 void updateNull(int columnIndex)
          Calls notImplemented.
 void updateNull(java.lang.String columnName)
          Calls notImplemented.
 void updateObject(int columnIndex, java.lang.Object x)
          Calls notImplemented.
 void updateObject(int columnIndex, java.lang.Object x, int scale)
          Calls notImplemented.
 void updateObject(java.lang.String columnName, java.lang.Object x)
          Calls notImplemented.
 void updateObject(java.lang.String columnName, java.lang.Object x, int scale)
          Calls notImplemented.
 void updateRow()
          Calls notImplemented.
 void updateShort(int columnIndex, short x)
          Calls notImplemented.
 void updateShort(java.lang.String columnName, short x)
          Calls notImplemented.
 void updateString(int columnIndex, java.lang.String x)
          Calls notImplemented.
 void updateString(java.lang.String columnName, java.lang.String x)
          Calls notImplemented.
 void updateTime(int columnIndex, java.sql.Time x)
          Calls notImplemented.
 void updateTime(java.lang.String columnName, java.sql.Time x)
          Calls notImplemented.
 void updateTimestamp(int columnIndex, java.sql.Timestamp x)
          Calls notImplemented.
 void updateTimestamp(java.lang.String columnName, java.sql.Timestamp x)
          Calls notImplemented.
 boolean wasNull()
          Calls notImplemented.
 
Methods inherited from class com.mockobjects.MockObject
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify
 
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
getURL, getURL, updateArray, updateArray, updateBlob, updateBlob, updateClob, updateClob, updateRef, updateRef
 

Field Detail

myCloseCalls

private final com.mockobjects.ExpectationCounter myCloseCalls

myNextCalls

protected final com.mockobjects.ExpectationCounter myNextCalls

name

protected final java.lang.String name

myMetaData

private final com.mockobjects.ReturnValue myMetaData

myStatement

private final com.mockobjects.ReturnValue myStatement
Constructor Detail

MockResultSet

public MockResultSet()

MockResultSet

public MockResultSet(java.lang.String name)
Method Detail

setExpectedCloseCalls

public void setExpectedCloseCalls(int calls)

setExpectedNextCalls

public void setExpectedNextCalls(int calls)

setupMetaData

public void setupMetaData(java.sql.ResultSetMetaData metaData)

setupStatement

public void setupStatement(java.sql.Statement statement)

getObject

public abstract java.lang.Object getObject(int columnIndex)
                                    throws java.sql.SQLException
Used as the base implementation for getting all types of object, based on 1-based column index

Specified by:
getObject in interface java.sql.ResultSet

getObject

public abstract java.lang.Object getObject(java.lang.String columnName)
                                    throws java.sql.SQLException
Used as the base implementation for getting all types of object, based on columnName

Specified by:
getObject in interface java.sql.ResultSet

next

public abstract boolean next()
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method advances to the next row in the result set. Any streams open on the current row are closed automatically.

Specified by:
next in interface java.sql.ResultSet

getRow

public abstract int getRow()
                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the current row number in the cursor. Numbering begins at index 1.

Specified by:
getRow in interface java.sql.ResultSet

close

public void close()
           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method closes the result set and frees any associated resources.

Specified by:
close in interface java.sql.ResultSet

getArray

public java.sql.Array getArray(int i)
                        throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as an Array.

Specified by:
getArray in interface java.sql.ResultSet

getArray

public java.sql.Array getArray(java.lang.String colName)
                        throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as an Array.

Specified by:
getArray in interface java.sql.ResultSet

getAsciiStream

public java.io.InputStream getAsciiStream(int columnIndex)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as an ASCII stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getAsciiStream in interface java.sql.ResultSet

getAsciiStream

public java.io.InputStream getAsciiStream(java.lang.String columnName)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as an ASCII stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getAsciiStream in interface java.sql.ResultSet

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String columnName,
                                          int scale)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java BigDecimal.

Specified by:
getBigDecimal in interface java.sql.ResultSet

getBigDecimal

public java.math.BigDecimal getBigDecimal(int columnIndex)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java BigDecimal.

Specified by:
getBigDecimal in interface java.sql.ResultSet

getBigDecimal

public java.math.BigDecimal getBigDecimal(int columnIndex,
                                          int scale)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java BigDecimal.

Specified by:
getBigDecimal in interface java.sql.ResultSet

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String columnName)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java BigDecimal.

Specified by:
getBigDecimal in interface java.sql.ResultSet

getBinaryStream

public java.io.InputStream getBinaryStream(int columnIndex)
                                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a raw byte stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getBinaryStream in interface java.sql.ResultSet

getBinaryStream

public java.io.InputStream getBinaryStream(java.lang.String columnName)
                                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a raw byte stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getBinaryStream in interface java.sql.ResultSet

getBlob

public java.sql.Blob getBlob(int i)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a BLOB.

Specified by:
getBlob in interface java.sql.ResultSet

getBlob

public java.sql.Blob getBlob(java.lang.String colName)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a BLOB.

Specified by:
getBlob in interface java.sql.ResultSet

getBoolean

public boolean getBoolean(int columnIndex)
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java boolean.

Specified by:
getBoolean in interface java.sql.ResultSet

getBoolean

public boolean getBoolean(java.lang.String columnName)
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java boolean.

Specified by:
getBoolean in interface java.sql.ResultSet

getByte

public byte getByte(int columnIndex)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte.

Specified by:
getByte in interface java.sql.ResultSet

getByte

public byte getByte(java.lang.String columnName)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte.

Specified by:
getByte in interface java.sql.ResultSet

getBytes

public byte[] getBytes(int columnIndex)
                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte array.

Specified by:
getBytes in interface java.sql.ResultSet

getBytes

public byte[] getBytes(java.lang.String columnName)
                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte array.

Specified by:
getBytes in interface java.sql.ResultSet

getCharacterStream

public java.io.Reader getCharacterStream(int columnIndex)
                                  throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a character stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getCharacterStream in interface java.sql.ResultSet

getCharacterStream

public java.io.Reader getCharacterStream(java.lang.String columnName)
                                  throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a character stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getCharacterStream in interface java.sql.ResultSet

getClob

public java.sql.Clob getClob(int i)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a CLOB.

Specified by:
getClob in interface java.sql.ResultSet

getClob

public java.sql.Clob getClob(java.lang.String colName)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a CLOB.

Specified by:
getClob in interface java.sql.ResultSet

getDate

public java.sql.Date getDate(int columnIndex)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Date.

Specified by:
getDate in interface java.sql.ResultSet

getDate

public java.sql.Date getDate(java.lang.String columnName)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Date.

Specified by:
getDate in interface java.sql.ResultSet

getDate

public java.sql.Date getDate(int columnIndex,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a java.sql.Date. The specified Calendar is used to generate a value for the date if the database does not support timezones.

Specified by:
getDate in interface java.sql.ResultSet

getDate

public java.sql.Date getDate(java.lang.String columnName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a java.sql.Date. The specified Calendar is used to generate a value for the date if the database does not support timezones.

Specified by:
getDate in interface java.sql.ResultSet

getDouble

public double getDouble(int columnIndex)
                 throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java double.

Specified by:
getDouble in interface java.sql.ResultSet

getDouble

public double getDouble(java.lang.String columnName)
                 throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java double.

Specified by:
getDouble in interface java.sql.ResultSet

getFloat

public float getFloat(int columnIndex)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java float.

Specified by:
getFloat in interface java.sql.ResultSet

getFloat

public float getFloat(java.lang.String columnName)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java float.

Specified by:
getFloat in interface java.sql.ResultSet

getInt

public int getInt(int columnIndex)
           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java int.

Specified by:
getInt in interface java.sql.ResultSet

getInt

public int getInt(java.lang.String columnName)
           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java int.

Specified by:
getInt in interface java.sql.ResultSet

getLong

public long getLong(int columnIndex)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java long.

Specified by:
getLong in interface java.sql.ResultSet

getLong

public long getLong(java.lang.String columnName)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java long.

Specified by:
getLong in interface java.sql.ResultSet

getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns data about the columns returned as part of the result set as a ResultSetMetaData instance.

Specified by:
getMetaData in interface java.sql.ResultSet

getRef

public java.sql.Ref getRef(int i)
                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns a Ref for the specified column which represents the structured type for the column.

Specified by:
getRef in interface java.sql.ResultSet

getRef

public java.sql.Ref getRef(java.lang.String colName)
                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns a Ref for the specified column which represents the structured type for the column.

Specified by:
getRef in interface java.sql.ResultSet

getShort

public short getShort(java.lang.String columnName)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java short.

Specified by:
getShort in interface java.sql.ResultSet

getShort

public short getShort(int columnIndex)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java short.

Specified by:
getShort in interface java.sql.ResultSet

getStatement

public java.sql.Statement getStatement()
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns a the Statement that was used to produce this result set.

Specified by:
getStatement in interface java.sql.ResultSet

getString

public java.lang.String getString(int columnIndex)
                           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java String.

Specified by:
getString in interface java.sql.ResultSet

getString

public java.lang.String getString(java.lang.String columnName)
                           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java String.

Specified by:
getString in interface java.sql.ResultSet

getTime

public java.sql.Time getTime(int columnIndex)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Time.

Specified by:
getTime in interface java.sql.ResultSet

getTime

public java.sql.Time getTime(java.lang.String columnName)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Time.

Specified by:
getTime in interface java.sql.ResultSet

getTime

public java.sql.Time getTime(int columnIndex,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a java.sql.Time. The specified Calendar is used to generate a value for the time if the database does not support timezones.

Specified by:
getTime in interface java.sql.ResultSet

getTime

public java.sql.Time getTime(java.lang.String columnName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a java.sql.Time. The specified Calendar is used to generate a value for the time if the database does not support timezones.

Specified by:
getTime in interface java.sql.ResultSet

getTimestamp

public java.sql.Timestamp getTimestamp(int columnIndex)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Timestamp.

Specified by:
getTimestamp in interface java.sql.ResultSet

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String columnName)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Timestamp.

Specified by:
getTimestamp in interface java.sql.ResultSet

getTimestamp

public java.sql.Timestamp getTimestamp(int columnIndex,
                                       java.util.Calendar cal)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a java.sql.Timestamp. The specified Calendar is used to generate a value for the timestamp if the database does not support timezones.

Specified by:
getTimestamp in interface java.sql.ResultSet

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String columnName,
                                       java.util.Calendar cal)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the specified column value as a java.sql.Timestamp. The specified Calendar is used to generate a value for the timestamp if the database does not support timezones.

Specified by:
getTimestamp in interface java.sql.ResultSet

getUnicodeStream

public java.io.InputStream getUnicodeStream(int columnIndex)
                                     throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Unicode UTF-8 stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getUnicodeStream in interface java.sql.ResultSet

getUnicodeStream

public java.io.InputStream getUnicodeStream(java.lang.String columnName)
                                     throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Unicode UTF-8 stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Specified by:
getUnicodeStream in interface java.sql.ResultSet

getCursorName

public java.lang.String getCursorName()
                               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the name of the database cursor used by this result set.

Specified by:
getCursorName in interface java.sql.ResultSet

getConcurrency

public int getConcurrency()
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the concurrency type of this result set. This will be one of the CONCUR_* constants defined in this interface.

Specified by:
getConcurrency in interface java.sql.ResultSet

getFetchDirection

public int getFetchDirection()
                      throws java.sql.SQLException
Calls notImplemented. Returns 0.

Specified by:
getFetchDirection in interface java.sql.ResultSet

getFetchSize

public int getFetchSize()
                 throws java.sql.SQLException
Calls notImplemented. Returns 0.

Specified by:
getFetchSize in interface java.sql.ResultSet

getObject

public java.lang.Object getObject(int i,
                                  java.util.Map map)
                           throws java.sql.SQLException
Calls notImplemented. Returns null.

Specified by:
getObject in interface java.sql.ResultSet

getObject

public java.lang.Object getObject(java.lang.String colName,
                                  java.util.Map map)
                           throws java.sql.SQLException
Calls notImplemented. Returns null.

Specified by:
getObject in interface java.sql.ResultSet

getType

public int getType()
            throws java.sql.SQLException
Calls notImplemented. Returns 0.

Specified by: