|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedType
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedTuple
A structure to hold one tuple of data, to be used by AutoMedResult as the basis for storing sets, lists or bags of tuples.
| Field Summary |
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
BOOLEAN, FLOAT, INTEGER, STRING, TIME, TUPLE |
| Constructor Summary | |
AutoMedTuple(AutoMedResult amr,
int i,
int nc)
Create a new tuple belonging to row i and with nc attributes |
|
| Method Summary | |
boolean |
equals(AutoMedType v)
Test two AutoMedTypes for equality, performing conversions as appropriate. |
AutoMedType |
getAttribute(int no)
Return a particular attribute from a tuple (counting from one) |
int |
getAttributeType(int attributeNumber)
|
AutoMedType[] |
getData()
Return all the attributes of this tuple as an array |
int |
getInt(int i)
Return a particular attribute from a tuple (counting from one) as a 32 bit integer |
java.lang.String |
getString(int i)
Return a particular attribute from a tuple (counting from one) as a String |
int |
getType()
Return the Type (INTEGER, TUPLE, ...) of this AutoMedType |
void |
setAttribute(int no,
AutoMedType v)
Set the value of a certain field |
int |
size()
|
java.lang.String |
toString()
Produce a string representation of the AutoMedTuple |
void |
toString(java.lang.StringBuffer r)
Produce a string representation of the result set, where {} indicates a set of values, and [] a list of values |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AutoMedTuple(AutoMedResult amr,
int i,
int nc)
| Method Detail |
public void setAttribute(int no,
AutoMedType v)
throws DataSourceException
DataSourceExceptionpublic int size()
public AutoMedType[] getData()
public AutoMedType getAttribute(int no)
throws DataSourceException
DataSourceExceptionpublic java.lang.String getString(int i)
public int getInt(int i)
throws DataSourceException
DataSourceExceptionpublic void toString(java.lang.StringBuffer r)
public java.lang.String toString()
toString in class AutoMedTypepublic int getAttributeType(int attributeNumber)
public boolean equals(AutoMedType v)
AutoMedType
equals in class AutoMedTypepublic final int getType()
AutoMedType
getType in class AutoMedType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||