|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DSRG.MW.Tuple
this class holds a tuple in a relation object. This is used for storing (cacheing) relational extents.
Field Summary | |
(package private) Table |
parent
The extent to which this tuple belongs. |
(package private) java.util.Vector |
values
the values in the tuple. |
Constructor Summary | |
Tuple(Table myParent,
java.util.Vector myValues)
constructs a tuple with a certain Table instance as parent and sets its value from a vector (not cloned). |
Method Summary | |
java.lang.Object |
clone()
Clones this tuple and assumes all values are strings. |
boolean |
equals(Tuple otherTuple)
recursively calls the equals methods of this vector's objects |
java.util.Enumeration |
getEnumeration()
returns an enumeration on this tuple. |
int |
getSize()
returns the number of elements (attributes) in thi s tuple. |
java.util.Vector |
getVector()
returns this tuple as a vector |
void |
setVector(java.util.Vector myValues)
sets this tuple's vector (=data). |
java.lang.String |
toSQLString()
calls the toString() methods of this tuple's objects and concatenates them with commas in between and single quotes around the strings. |
java.lang.String |
toString()
calls the toString() methods of this tuple's objects and concatenates them |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Vector values
Table parent
Constructor Detail |
public Tuple(Table myParent, java.util.Vector myValues)
Method Detail |
public java.util.Enumeration getEnumeration()
public int getSize()
public java.util.Vector getVector()
public void setVector(java.util.Vector myValues)
public boolean equals(Tuple otherTuple)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toSQLString()
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |