net.sf.basedb.core.dbengine
Class TableInfo.ForeignKeyInfo
java.lang.Object
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.
name
private final String name
refName
private final String refName
fkColumns
private final Set<String> fkColumns
refColumns
private final Set<String> refColumns
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 keyrefName
- The referenced table
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