|
|||||||||
| Home >> All >> com >> mockobjects >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mockobjects.sql
Class CommonMockSingleRowResultSet

java.lang.Objectcom.mockobjects.MockObject
com.mockobjects.sql.MockResultSet
com.mockobjects.sql.CommonMockSingleRowResultSet
- All Implemented Interfaces:
- java.sql.ResultSet, com.mockobjects.Verifiable
- Direct Known Subclasses:
- MockSingleRowResultSet
- abstract class CommonMockSingleRowResultSet
- extends MockResultSet
Implementation of a MockResultSet that uses the ExpectationRow object to simulate a ResultSet that returns a single row. It verifies that the values fed to it have been retrieved throw a call to next and getRow. Column values can be retrieved using any of the getters declared in MockResultSet. Depending on which constructor is used, these 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). To force throwing a SQLException on a getter, set the corresponding value to be of type SQLException.
- Version:
- $Revision: 1.3 $
| Field Summary | |
private int |
myNextCallCount
|
protected com.mockobjects.ExpectationCounter |
myNextCalls
|
private ExpectationSqlRow |
myRow
|
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 | |
CommonMockSingleRowResultSet()
Default constructor. |
|
CommonMockSingleRowResultSet(java.util.Map map)
Constructor to create a single row ResultSet from a Map. |
|
CommonMockSingleRowResultSet(java.lang.Object[] values)
Constructor to create a single row ResultSet that can retrieve passed values by index. |
|
CommonMockSingleRowResultSet(java.lang.String[] names,
java.lang.Object[] values)
Constructor to create a single row ResultSet that can retrieve passed values by name. |
|
| Method Summary | |
boolean |
absolute(int row)
Calls notImplemented. |
void |
addExpectedIndexedValues(java.lang.Object[] values)
Add expected values from an array to be retrieved by index. |
void |
addExpectedNamedValues(java.util.Map map)
Add expected values from a Map to be retrieved by name or index. |
void |
addExpectedNamedValues(java.lang.String[] names,
java.lang.Object[] values)
Add expected values from an array to be retrieved by name or index. |
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. |
java.lang.Object |
getObject(int columnIndex)
Return value set for given index by an addExpected* method. |
java.lang.Object |
getObject(int i,
java.util.Map map)
Calls notImplemented. |
java.lang.Object |
getObject(java.lang.String columnName)
Return value set for given name by an addExpectedNamedValue method. |
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. |
int |
getRow()
Return 1 if next has been called exactly once. |
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. |
boolean |
next()
Return true if this is the first time next is called. |
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 |
myRow
private ExpectationSqlRow myRow
myNextCallCount
private int myNextCallCount
myNextCalls
protected final com.mockobjects.ExpectationCounter myNextCalls
name
protected final java.lang.String name
| Constructor Detail |
CommonMockSingleRowResultSet
public CommonMockSingleRowResultSet()
- Default constructor.
Call one of the AddExpected* methods before use,
or use one of the alternate constructors instead.
CommonMockSingleRowResultSet
public CommonMockSingleRowResultSet(java.lang.Object[] values)
- Constructor to create a single row ResultSet
that can retrieve passed values by index.
CommonMockSingleRowResultSet
public CommonMockSingleRowResultSet(java.lang.String[] names, java.lang.Object[] values)
- Constructor to create a single row ResultSet
that can retrieve passed values by name.
CommonMockSingleRowResultSet
public CommonMockSingleRowResultSet(java.util.Map map)
- Constructor to create a single row ResultSet
from a Map.
| Method Detail |
addExpectedIndexedValues
public void addExpectedIndexedValues(java.lang.Object[] values)
- Add expected values from an array to be retrieved by index.
addExpectedNamedValues
public void addExpectedNamedValues(java.lang.String[] names, java.lang.Object[] values)
- Add expected values from an array to be retrieved by name or
index.
addExpectedNamedValues
public void addExpectedNamedValues(java.util.Map map)
- Add expected values from a Map to be retrieved by name or
index.
next
public boolean next()
throws java.sql.SQLException
- Return true if this is the first time next is called.
- Specified by:
nextin interfacejava.sql.ResultSet- Specified by:
nextin classMockResultSet
getRow
public int getRow()
throws java.sql.SQLException
- Return 1 if next has been called exactly once.
- Specified by:
getRowin interfacejava.sql.ResultSet- Specified by:
getRowin classMockResultSet
getObject
public java.lang.Object getObject(int columnIndex) throws java.sql.SQLException
- Return value set for given index by an addExpected* method.
Called by superclass to cast values to appropriate type.
- Specified by:
getObjectin interfacejava.sql.ResultSet- Specified by:
getObjectin classMockResultSet
getObject
public java.lang.Object getObject(java.lang.String columnName) throws java.sql.SQLException
- Return value set for given name by an addExpectedNamedValue
method.
Called by superclass to cast values to appropriate type.
- Specified by:
getObjectin interfacejava.sql.ResultSet- Specified by:
getObjectin classMockResultSet
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)
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:
closein interfacejava.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:
getArrayin interfacejava.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:
getArrayin interfacejava.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()orclose()on this result set will close this stream as well.- Specified by:
getAsciiStreamin interfacejava.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()orclose()on this result set will close this stream as well.- Specified by:
getAsciiStreamin interfacejava.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:
getBigDecimalin interfacejava.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:
getBigDecimalin interfacejava.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:
getBigDecimalin interfacejava.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:
getBigDecimalin interfacejava.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()orclose()on this result set will close this stream as well.- Specified by:
getBinaryStreamin interfacejava.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()orclose()on this result set will close this stream as well.- Specified by:
getBinaryStreamin interfacejava.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:
getBlobin interfacejava.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:
getBlobin interfacejava.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:
getBooleanin interfacejava.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:
getBooleanin interfacejava.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:
getBytein interfacejava.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:
getBytein interfacejava.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:
getBytesin interfacejava.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:
getBytesin interfacejava.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()orclose()on this result set will close this stream as well.- Specified by:
getCharacterStreamin interfacejava.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()orclose()on this result set will close this stream as well.- Specified by:
getCharacterStreamin interfacejava.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:
getClobin interfacejava.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:
getClobin interfacejava.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:
getDatein interfacejava.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:
getDatein interfacejava.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 specifiedCalendaris used to generate a value for the date if the database does not support timezones.- Specified by:
getDatein interfacejava.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 specifiedCalendaris used to generate a value for the date if the database does not support timezones.- Specified by:
getDatein interfacejava.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:
getDoublein interfacejava.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:
getDoublein interfacejava.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:
getFloatin interfacejava.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:
getFloatin interfacejava.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:
getIntin interfacejava.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:
getIntin interfacejava.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:
getLongin interfacejava.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:
getLongin interfacejava.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
ResultSetMetaDatainstance.- Specified by:
getMetaDatain interfacejava.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
Reffor the specified column which represents the structured type for the column.- Specified by:
getRefin interfacejava.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
Reffor the specified column which represents the structured type for the column.- Specified by:
getRefin interfacejava.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:
getShortin interfacejava.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:
getShortin interfacejava.sql.ResultSet
getStatement
public java.sql.Statement getStatement() throws java.sql.SQLException
- Description copied from interface:
java.sql.ResultSet - This method returns a the
Statementthat was used to produce this result set.- Specified by:
getStatementin interfacejava.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:
getStringin interfacejava.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:
getStringin interfacejava.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:
getTimein interfacejava.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:
getTimein interfacejava.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 specifiedCalendaris used to generate a value for the time if the database does not support timezones.- Specified by:
getTimein interfacejava.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 specifiedCalendaris used to generate a value for the time if the database does not support timezones.- Specified by:
getTimein interfacejava.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:
getTimestampin interfacejava.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:
getTimestampin interfacejava.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 specifiedCalendaris used to generate a value for the timestamp if the database does not support timezones.- Specified by:
getTimestampin interfacejava.sql.ResultSet
JAVADOC