edu.iastate.metnet.db
Class TableClassRelation

java.lang.Object
  extended by edu.iastate.metnet.db.AbstractMetNetTable
      extended by edu.iastate.metnet.db.TableClassRelation
All Implemented Interfaces:
IMetNETTable

public class TableClassRelation
extends AbstractMetNetTable

  
   +----------+---------+------+-----+---------+-------+
   | Field    | Type    | Null | Key | Default | Extra |
   +----------+---------+------+-----+---------+-------+
   | ParentID | int(11) |      |     | 0       |       |
   | ChildID  | int(11) |      |     | 0       |       |
   +----------+---------+------+-----+---------+-------+
   
 
 ReturnCode rc = TableClassRelation.findOrInsert(parentID, childID);
 if (!rc.isDuplicated) {
        int parentID = Integer.parseInt(rc.getValue().toString);
 }
 

Since:
6/12/04
Author:
Jie Li

Field Summary
 
Fields inherited from class edu.iastate.metnet.db.AbstractMetNetTable
sql
 
Method Summary
 java.lang.String getSelectSQL(int parentID, int childID)
           
static TableClassRelation getSharedInstance()
           
 
Methods inherited from class edu.iastate.metnet.db.AbstractMetNetTable
getSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSharedInstance

public static TableClassRelation getSharedInstance()

getSelectSQL

public java.lang.String getSelectSQL(int parentID,
                                     int childID)