org.apache.ws.jaxme.sqls.impl

Class ForeignKeyImpl

Implemented Interfaces:
ColumnSet, ForeignKey

public class ForeignKeyImpl
extends ColumnSetImpl
implements ForeignKey

Implementation of a foreign key.
Author:
Jochen Wiedmann

Nested Class Summary

static class
ForeignKeyImpl.ColumnReferenceImpl

Field Summary

List
references

Constructor Summary

ForeignKeyImpl(Table pTable, Table pReferencedTable)

Method Summary

void
addColumnLink(String pName, String pReferencedName)
void
addColumnLink(Column pColumn, Column pReferencedColumn)
void
addColumnLink(Column.Name pName, Column.Name pReferencedName)
void
addColumnReference(ForeignKey.ColumnLink pReference)
Iterator
getColumnLinks()
Iterator
getColumns()
ForeignKey.Mode
getOnDelete()
ForeignKey.Mode
getOnUpdate()
ColumnSet
getReferencedColumns()
Table
getReferencedTable()
void
setOnDelete(ForeignKey.Mode pMode)
void
setOnUpdate(ForeignKey.Mode pMode)

Methods inherited from class org.apache.ws.jaxme.sqls.impl.ColumnSetImpl

getTable

Field Details

references

public List references

Constructor Details

ForeignKeyImpl

protected ForeignKeyImpl(Table pTable,
                         Table pReferencedTable)

Method Details

addColumnLink

public void addColumnLink(String pName,
                          String pReferencedName)
Specified by:
addColumnLink in interface ForeignKey

addColumnLink

public void addColumnLink(Column pColumn,
                          Column pReferencedColumn)
Specified by:
addColumnLink in interface ForeignKey

addColumnLink

public void addColumnLink(Column.Name pName,
                          Column.Name pReferencedName)
Specified by:
addColumnLink in interface ForeignKey

addColumnReference

public void addColumnReference(ForeignKey.ColumnLink pReference)

getColumnLinks

public Iterator getColumnLinks()
Specified by:
getColumnLinks in interface ForeignKey

getColumns

public Iterator getColumns()
Specified by:
getColumns in interface ColumnSet

getOnDelete

public ForeignKey.Mode getOnDelete()
Specified by:
getOnDelete in interface ForeignKey

getOnUpdate

public ForeignKey.Mode getOnUpdate()
Specified by:
getOnUpdate in interface ForeignKey

getReferencedColumns

public ColumnSet getReferencedColumns()
Specified by:
getReferencedColumns in interface ForeignKey

getReferencedTable

public Table getReferencedTable()
Specified by:
getReferencedTable in interface ForeignKey

setOnDelete

public void setOnDelete(ForeignKey.Mode pMode)
Specified by:
setOnDelete in interface ForeignKey

setOnUpdate

public void setOnUpdate(ForeignKey.Mode pMode)
Specified by:
setOnUpdate in interface ForeignKey