|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--intradoc.data.AliasingResultSet
| Field Summary | |
protected java.util.Hashtable |
m_forwardMap
|
protected ResultSet |
m_resultSet
|
protected java.util.Hashtable |
m_reverseMap
|
| Constructor Summary | |
AliasingResultSet()
|
|
| 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. |
void |
init(ResultSet parentSet,
java.util.Hashtable map)
|
void |
init(ResultSet parentSet,
java.lang.String mapString)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ResultSet m_resultSet
protected java.util.Hashtable m_forwardMap
protected java.util.Hashtable m_reverseMap
| Constructor Detail |
public AliasingResultSet()
| Method Detail |
public void init(ResultSet parentSet,
java.lang.String mapString)
public void init(ResultSet parentSet,
java.util.Hashtable map)
public boolean isMutable()
ResultSet
isMutable in interface ResultSetpublic boolean hasRawObjects()
ResultSet
hasRawObjects in interface ResultSetpublic int getNumFields()
ResultSet
getNumFields in interface ResultSetpublic boolean isEmpty()
ResultSet
isEmpty in interface ResultSetpublic boolean isRowPresent()
ResultSet
isRowPresent in interface ResultSetpublic java.lang.String getFieldName(int index)
ResultSet
getFieldName in interface ResultSetindex - Index into array of fields associated with this result set.
public boolean getFieldInfo(java.lang.String fieldName,
FieldInfo fieldInfo)
ResultSet
getFieldInfo in interface ResultSetfieldName - 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)
ResultSet
getIndexFieldInfo in interface ResultSetindex - 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)
ResultSet
getStringValue in interface ResultSetindex - Index into array of fields assocated with this result set.
public java.util.Date getDateValue(int index)
ResultSet
getDateValue in interface ResultSetindex - Index into array of fields assocated with this result set.
public void setDateFormat(IdcDateFormat fmt)
ResultSet
setDateFormat in interface ResultSetpublic IdcDateFormat getDateFormat()
ResultSet
getDateFormat in interface ResultSetpublic boolean next()
ResultSet
next in interface ResultSetpublic boolean first()
ResultSet
first in interface ResultSetpublic int skip(int numRows)
ResultSet
skip in interface ResultSetpublic void closeInternals()
ResultSet
closeInternals in interface ResultSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |