All Packages Class Hierarchy This Package Previous Next Index
Class DSRG.MW.Tuple
java.lang.Object
|
+----DSRG.MW.Tuple
- public class Tuple
- extends Object
this class holds a tuple in a relation object. This is used for
storing (cacheing) relational extents in the EVE-Demo. This is
currently in the MKB, where it doesn't belong
-
parent
- The extent to which this tuple belongs.
-
values
- the values in the tuple.
-
Tuple(Table, Vector)
- constructs a tuple with a certain Table instance as
parent and sets its value from a vector (not cloned).
-
clone()
-
-
equals(Tuple)
- recursively calls the equals methods of this vector's objects
-
getEnumeration()
- returns an enumeration on this tuple.
-
getSize()
- returns the number of elements (attributes) in thi s
tuple.
-
getVector()
- returns this tuple as a vector
-
setVector(Vector)
- sets this tuple's vector (=data).
-
toSQLString()
- calls the toString() methods of this tuple's objects and
concatenates them with commas in between and single quotes
around the strings.
-
toString()
- calls the toString() methods of this tuple's objects and
concatenates them
values
Vector values
- the values in the tuple. The types of the elements are
heterogeneous, but have to agree with the types in the
"attribute" objects referenced in the attributes-vector in
this tuple's Table-object.
parent
Table parent
- The extent to which this tuple belongs. Tuples belong to
exactly one Table instance
Tuple
public Tuple(Table myParent,
Vector myValues)
- constructs a tuple with a certain Table instance as
parent and sets its value from a vector (not cloned).
getEnumeration
public Enumeration getEnumeration()
- returns an enumeration on this tuple. The elements are of type
"Object"
getSize
public int getSize()
- returns the number of elements (attributes) in thi s
tuple. This should correspond to the number of attributes in
this tuple's relation extent's relation object, but this is not
enforced or checked...
getVector
public Vector getVector()
- returns this tuple as a vector
setVector
public void setVector(Vector myValues)
- sets this tuple's vector (=data). Does not clone the
contents.
equals
public boolean equals(Tuple otherTuple)
- recursively calls the equals methods of this vector's objects
toString
public String toString()
- calls the toString() methods of this tuple's objects and
concatenates them
- Overrides:
- toString in class Object
toSQLString
public String toSQLString()
- calls the toString() methods of this tuple's objects and
concatenates them with commas in between and single quotes
around the strings. This is used for storing this tuple in a
JDBC database
clone
public synchronized Object clone()
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index