org.axiondb.constraints

Class ForeignKeyConstraint

public class ForeignKeyConstraint extends BaseConstraint

A FOREIGN KEY constraint

Version: $Revision: 1.11 $ $Date: 2007/11/13 19:04:02 $

Author: Ahimanikya Satapathy

Field Summary
static intCASCADE
static intRESTRICT
static intSETDEFAULT
static intSETNULL
Constructor Summary
ForeignKeyConstraint(String name)
ForeignKeyConstraint(String name, String type)
Method Summary
voidaddColumns(List list)
voidaddForeignColumns(List list)
booleanevaluate(RowEvent event)
booleanevaluate(RowEvent event, RowDecorator dec)
booleanevaluate(RowIterator oldRows, RowIterator newRows, Table table)
ListgetChildTableColumns()
StringgetChildTableName()
intgetOnDeleteActionType()
intgetOnUpdateActionType()
ListgetParentTableColumns()
StringgetParentTableName()
voidresolve(Database db, TableIdentifier table)
voidsetChildTable(Table table)
voidsetChildTableName(String tableName)
voidsetOnDeleteActionType(int actionType)
voidsetOnUpdateActionType(int actionType)
voidsetParentTable(Table table)
voidsetParentTableName(String tableName)

Field Detail

CASCADE

public static final int CASCADE

RESTRICT

public static final int RESTRICT

SETDEFAULT

public static final int SETDEFAULT

SETNULL

public static final int SETNULL

Constructor Detail

ForeignKeyConstraint

public ForeignKeyConstraint(String name)

ForeignKeyConstraint

public ForeignKeyConstraint(String name, String type)

Method Detail

addColumns

public void addColumns(List list)

addForeignColumns

public void addForeignColumns(List list)

evaluate

public boolean evaluate(RowEvent event)

evaluate

public boolean evaluate(RowEvent event, RowDecorator dec)

evaluate

public boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table)

getChildTableColumns

public List getChildTableColumns()

getChildTableName

public String getChildTableName()

getOnDeleteActionType

public int getOnDeleteActionType()

getOnUpdateActionType

public int getOnUpdateActionType()

getParentTableColumns

public List getParentTableColumns()

getParentTableName

public String getParentTableName()

resolve

public void resolve(Database db, TableIdentifier table)

setChildTable

public void setChildTable(Table table)

setChildTableName

public void setChildTableName(String tableName)

setOnDeleteActionType

public void setOnDeleteActionType(int actionType)

setOnUpdateActionType

public void setOnUpdateActionType(int actionType)

setParentTable

public void setParentTable(Table table)

setParentTableName

public void setParentTableName(String tableName)