org.databene.platform.db.model
Class DBForeignKeyConstraint

java.lang.Object
  extended by org.databene.platform.db.model.DBConstraint
      extended by org.databene.platform.db.model.DBForeignKeyConstraint

public class DBForeignKeyConstraint
extends DBConstraint

Represents a foreign key constraint.

Created: 06.01.2007 09:00:59

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.platform.db.model.DBConstraint
name
 
Constructor Summary
DBForeignKeyConstraint(java.lang.String name, DBForeignKeyColumn... foreignKeyColumns)
           
 
Method Summary
 void addForeignKeyColumn(DBForeignKeyColumn foreignKeyColumn)
           
 DBColumn[] getColumns()
          Returns the columns which constitute this constraint
 java.util.List<DBForeignKeyColumn> getForeignKeyColumns()
           
 DBTable getForeignTable()
           
 DBTable getOwner()
          Returns the table which owns this constraint
 
Methods inherited from class org.databene.platform.db.model.DBConstraint
equals, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBForeignKeyConstraint

public DBForeignKeyConstraint(java.lang.String name,
                              DBForeignKeyColumn... foreignKeyColumns)
Method Detail

getForeignKeyColumns

public java.util.List<DBForeignKeyColumn> getForeignKeyColumns()

addForeignKeyColumn

public void addForeignKeyColumn(DBForeignKeyColumn foreignKeyColumn)

getForeignTable

public DBTable getForeignTable()

getOwner

public DBTable getOwner()
Description copied from class: DBConstraint
Returns the table which owns this constraint

Specified by:
getOwner in class DBConstraint
Returns:
the table which owns this constraint

getColumns

public DBColumn[] getColumns()
Description copied from class: DBConstraint
Returns the columns which constitute this constraint

Specified by:
getColumns in class DBConstraint
Returns:
the columns which constitute this constraint


Copyright © 2010. All Rights Reserved.