|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
The interface ResultSet creates a generic mechanism for managing database tables.
| Method Summary | |
void |
closeInternals()
Because of bugs with implementations of result sets (specifically JDBC), we need to close one result set before creating a new one from the database. |
boolean |
first()
Sets the result set to the first row. |
IdcDateFormat |
getDateFormat()
Gets the IdcDateFormat object for this ResultSet. |
java.util.Date |
getDateValue(int index)
Gets the field value as a date, only works for fields which are actually dates. |
boolean |
getFieldInfo(java.lang.String fieldName,
FieldInfo fieldInfo)
Gets field information for a particular named field. |
java.lang.String |
getFieldName(int index)
Gets the name of field located at a particular field index (from 0 to getNumFields() - 1). |
void |
getIndexFieldInfo(int index,
FieldInfo fieldInfo)
Gets field information for a field at particular field index. |
int |
getNumFields()
Returns number of fields. |
java.lang.String |
getStringValue(int index)
Gets the value for a current field as a string for the currently loaded result set row. |
boolean |
hasRawObjects()
Returns true if this ResultSet contains real objects, not String representations of the data. |
boolean |
isEmpty()
Checks to see if result set is empty. |
boolean |
isMutable()
Returns true if it is legal for someone to mutate the contents of this ResultSet. |
boolean |
isRowPresent()
Checks to see if we have gone past last valid record. |
boolean |
next()
Advances to the next row. |
void |
setDateFormat(IdcDateFormat fmt)
Sets the IdcDateFormat object for this ResultSet. |
int |
skip(int numRows)
Skip number of rows. |
| Method Detail |
public boolean isMutable()
public boolean hasRawObjects()
public int getNumFields()
public boolean isEmpty()
public boolean isRowPresent()
public java.lang.String getFieldName(int index)
index - Index into array of fields associated with this result set.
public boolean getFieldInfo(java.lang.String fieldName,
FieldInfo fieldInfo)
fieldName - Name of field being looked up.fieldInfo - Holds information about the field after this method
is called. Note: fieldInfo.m_index will hold the field index usable as
a parameter to the calls 'getStringValue' and 'getDateValue'.
public void getIndexFieldInfo(int index,
FieldInfo fieldInfo)
index - Index into array of fields assocated with this result set.fieldInfo - Holds information about the field after this method
is called.public java.lang.String getStringValue(int index)
index - Index into array of fields assocated with this result set.
public java.util.Date getDateValue(int index)
index - Index into array of fields assocated with this result set.
public void setDateFormat(IdcDateFormat fmt)
public IdcDateFormat getDateFormat()
public boolean next()
public boolean first()
public int skip(int numRows)
public void closeInternals()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |