rdbtoonto.dbmodel
Class TableDef

java.lang.Object
  extended by rdbtoonto.dbmodel.TableDef

public class TableDef
extends java.lang.Object

Author:
S3DTNCF TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
TableDef(java.lang.String name)
           
 
Method Summary
 void addAttribute(Attribute att)
           
 void addForeignKey(ForeignKey fkey)
           
 void display()
           
 Attribute getAttribute(java.lang.String att)
           
 java.util.Set<java.lang.String> getAttributeNames()
           
 java.util.Hashtable<java.lang.String,Attribute> getAttributes()
           
 java.util.HashSet<java.lang.String> getForeignColNames()
           
 ForeignKey getForeignKey(java.lang.String att)
           
 java.util.Vector<ForeignKey> getForeignKeys()
           
 java.lang.String getName()
           
 int getNbAttributes()
           
 PrimaryKey getPrimaryKey()
           
 Table getTable()
           
 java.lang.String getType()
           
 boolean hasAttribute(java.lang.String att)
           
 boolean hasPrimaryKey()
           
 boolean hasPrimaryKey(java.lang.String attName)
           
 void setName(java.lang.String name)
           
 void setPrimaryKey(PrimaryKey pkey)
           
 void setTable(Table table)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDef

public TableDef(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

hasAttribute

public boolean hasAttribute(java.lang.String att)

getAttribute

public Attribute getAttribute(java.lang.String att)

getAttributes

public java.util.Hashtable<java.lang.String,Attribute> getAttributes()

getNbAttributes

public int getNbAttributes()

getAttributeNames

public java.util.Set<java.lang.String> getAttributeNames()

addAttribute

public void addAttribute(Attribute att)

hasPrimaryKey

public boolean hasPrimaryKey()

hasPrimaryKey

public boolean hasPrimaryKey(java.lang.String attName)

getPrimaryKey

public PrimaryKey getPrimaryKey()

setPrimaryKey

public void setPrimaryKey(PrimaryKey pkey)

getForeignKeys

public java.util.Vector<ForeignKey> getForeignKeys()

getForeignKey

public ForeignKey getForeignKey(java.lang.String att)

addForeignKey

public void addForeignKey(ForeignKey fkey)

getForeignColNames

public java.util.HashSet<java.lang.String> getForeignColNames()

getTable

public Table getTable()

setTable

public void setTable(Table table)

display

public void display()