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


Variable Index

 o parent
The extent to which this tuple belongs.
 o values
the values in the tuple.

Constructor Index

 o Tuple(Table, Vector)
constructs a tuple with a certain Table instance as parent and sets its value from a vector (not cloned).

Method Index

 o clone()
 o equals(Tuple)
recursively calls the equals methods of this vector's objects
 o getEnumeration()
returns an enumeration on this tuple.
 o getSize()
returns the number of elements (attributes) in thi s tuple.
 o getVector()
returns this tuple as a vector
 o setVector(Vector)
sets this tuple's vector (=data).
 o toSQLString()
calls the toString() methods of this tuple's objects and concatenates them with commas in between and single quotes around the strings.
 o toString()
calls the toString() methods of this tuple's objects and concatenates them

Variables

 o 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.

 o parent
 Table parent
The extent to which this tuple belongs. Tuples belong to exactly one Table instance

Constructors

 o 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).

Methods

 o getEnumeration
 public Enumeration getEnumeration()
returns an enumeration on this tuple. The elements are of type "Object"

 o 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...

 o getVector
 public Vector getVector()
returns this tuple as a vector

 o setVector
 public void setVector(Vector myValues)
sets this tuple's vector (=data). Does not clone the contents.

 o equals
 public boolean equals(Tuple otherTuple)
recursively calls the equals methods of this vector's objects

 o toString
 public String toString()
calls the toString() methods of this tuple's objects and concatenates them

Overrides:
toString in class Object
 o 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

 o clone
 public synchronized Object clone()
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index