jqubeObjects
Class Record

java.lang.Object
  extended byjqubeObjects.Record

public class Record
extends java.lang.Object

Generic class that encapsulates the tuple structure of a DB


Field Summary
private  java.util.Vector fieldVector
          a collection of Field objects
 
Constructor Summary
Record()
          Constructor
 
Method Summary
 void addFieldVal(Field fieldVal)
          Adds a fieldVal to the fieldVector list
 Field getField(int index)
          Returns the FieldVal object located at the specified index
 int getLength()
          Gets the number of FieldVal objects stored in this vector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldVector

private java.util.Vector fieldVector
a collection of Field objects

Constructor Detail

Record

public Record()
Constructor

Method Detail

addFieldVal

public void addFieldVal(Field fieldVal)
Adds a fieldVal to the fieldVector list

Parameters:
fieldVal - The object to add to the list

getLength

public int getLength()
Gets the number of FieldVal objects stored in this vector

Returns:
The length of the Record vector (number of FieldVal objs in it)

getField

public Field getField(int index)
Returns the FieldVal object located at the specified index

Parameters:
index - The index at which to fetch the FieldVal
Returns:
The FiledVal object located at the specified index