rdbtoonto.dbmodel
Class TableDef
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableDef
public TableDef(java.lang.String name)
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()