|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedType
uk.ac.ic.doc.automed.wrappers.AutoMedTuple
public class 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 | |
---|---|
private AutoMedResult |
amr
|
private AutoMedType[] |
data
|
private int |
rowNumber
|
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
---|
BOOLEAN, FLOAT, INTEGER, isNull, NULL_STR, 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 | |
---|---|
double |
doubleValue()
Return the arity (size) of the tuple as a double. |
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 uk.ac.ic.doc.automed.wrappers.AutoMedType |
---|
isLiteral, isNull, isNumeric |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int rowNumber
private AutoMedType[] data
private AutoMedResult amr
Constructor Detail |
---|
public AutoMedTuple(AutoMedResult amr, int i, int nc)
Method Detail |
---|
public void setAttribute(int no, AutoMedType v) throws DataSourceException
DataSourceException
public int size()
public AutoMedType[] getData()
public AutoMedType getAttribute(int no) throws DataSourceException
DataSourceException
public java.lang.String getString(int i)
public double doubleValue()
doubleValue
in class AutoMedType
public int getInt(int i) throws DataSourceException
DataSourceException
public void toString(java.lang.StringBuffer r)
public java.lang.String toString()
toString
in class AutoMedType
public int getAttributeType(int attributeNumber)
public boolean equals(AutoMedType v)
AutoMedType
equals
in class AutoMedType
public final int getType()
AutoMedType
getType
in class AutoMedType
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |