2.17.2: 2011-06-17

net.sf.basedb.core.dbengine
Class TableInfo.ForeignKeyInfo

java.lang.Object
  extended by net.sf.basedb.core.dbengine.TableInfo.ForeignKeyInfo
Enclosing class:
TableInfo

public static class TableInfo.ForeignKeyInfo
extends Object

Holds information about a foreign key of a table.


Field Summary
private  Set<String> fkColumns
           
private  String name
           
private  Set<String> refColumns
           
private  String refName
           
 
Constructor Summary
TableInfo.ForeignKeyInfo(String name, String refName)
          Create a new ForeignKeyInfo object.
 
Method Summary
 Set<String> getFkColumns()
           
 String getName()
           
 Set<String> getRefColumns()
           
 String getRefName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final String name

refName

private final String refName

fkColumns

private final Set<String> fkColumns

refColumns

private final Set<String> refColumns
Constructor Detail

TableInfo.ForeignKeyInfo

public TableInfo.ForeignKeyInfo(String name,
                                String refName)
Create a new ForeignKeyInfo object. You should also add column names to the getFkColumns() and getRefColumns() sets.

Parameters:
name - The name of the foreign key
refName - The referenced table
Method Detail

getName

public String getName()

getRefName

public String getRefName()

getFkColumns

public Set<String> getFkColumns()

getRefColumns

public Set<String> getRefColumns()

toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17