spo.src.SPDB.DocumentImpl
Class Table

java.lang.Object
  |
  +--spo.src.SPDB.DocumentImpl.Table

public class Table
extends java.lang.Object

A class that represents the table element


Field Summary
(package private)  java.util.ArrayList fieldNames
           
(package private)  int id
           
(package private)  int rid
           
(package private)  java.util.Vector rows
           
(package private)  int size
           
 
Constructor Summary
Table(int rid, int id)
          Initialize an instance for the class
Table(int rid, int id, java.util.Vector rows)
          Initialize an instance for the class
 
Method Summary
 java.util.ArrayList getFieldNames()
           
 int getID()
           
 int getRID()
           
 java.util.Vector getRows()
           
 int getSize()
           
 void insert2Table(DBUtil dbutil)
          Insert into the table SPO Table
 void insert2VAR(DBUtil dbutil)
          Insert into the table SPO_VAR Table
 void reset(int id, org.w3c.dom.Node tableNode)
           
 void set(org.w3c.dom.Node tableNode)
          Initialize an instance for the class
 void setFieldNames(java.util.ArrayList fields)
           
 void setID(int id)
           
 void setRID(int rid)
           
 void setRows(java.util.Vector rows)
           
 void setSize(int size)
           
(package private)  java.lang.String toXML()
          Transform A Table element to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rid

int rid

id

int id

size

int size

rows

java.util.Vector rows

fieldNames

java.util.ArrayList fieldNames
Constructor Detail

Table

public Table(int rid,
             int id)
Initialize an instance for the class

Parameters:
rid - the relation identification number
id - the SPO identification number

Table

public Table(int rid,
             int id,
             java.util.Vector rows)
Initialize an instance for the class

Parameters:
rid - the relation identification number
id - the SPO identification number
rows - the table rows in vector format
Method Detail

set

public void set(org.w3c.dom.Node tableNode)
Initialize an instance for the class

Parameters:
tableNode - the table object in XML DOM format

reset

public void reset(int id,
                  org.w3c.dom.Node tableNode)

insert2Table

public void insert2Table(DBUtil dbutil)
Insert into the table SPO Table

Parameters:
dbutil - A DBUtil utility object

insert2VAR

public void insert2VAR(DBUtil dbutil)
Insert into the table SPO_VAR Table

Parameters:
dbutil - A DBUtil utility object

toXML

java.lang.String toXML()
Transform A Table element to XML


setRID

public void setRID(int rid)

getRID

public int getRID()

setID

public void setID(int id)

getID

public int getID()

setRows

public void setRows(java.util.Vector rows)

getRows

public java.util.Vector getRows()

setSize

public void setSize(int size)

getSize

public int getSize()

setFieldNames

public void setFieldNames(java.util.ArrayList fields)

getFieldNames

public java.util.ArrayList getFieldNames()


Copyright © 2003 UKCS. All Rights Reserved.