net.sf.dewdrop.sqlml
Class ForeignKey

java.lang.Object
  extended bynet.sf.dewdrop.sqlml.SqlmlComponent
      extended bynet.sf.dewdrop.sqlml.SchemaComponent
          extended bynet.sf.dewdrop.sqlml.Constraint
              extended bynet.sf.dewdrop.sqlml.ForeignKey

public class ForeignKey
extends Constraint

Author:
Les Hazlewood

Field Summary
protected  ModificationAction onDelete
           
protected  ModificationAction onUpdate
           
protected  String table
           
 
Fields inherited from class net.sf.dewdrop.sqlml.Constraint
columnRefs, directive, inline
 
Fields inherited from class net.sf.dewdrop.sqlml.SchemaComponent
description, name
 
Fields inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
indentLevel, logger
 
Constructor Summary
ForeignKey()
           
 
Method Summary
 boolean equals(Object o)
           
 ModificationAction getOnDelete()
           
 ModificationAction getOnUpdate()
           
 String getTable()
           
 boolean hasDeleteAction()
           
 boolean hasUpdateAction()
           
 void onWriteSql(Writer out, Configuration cfg)
           
 void setOnDelete(ModificationAction onDelete)
           
 void setOnUpdate(ModificationAction onUpdate)
           
 void setTable(String foreignTable)
           
 
Methods inherited from class net.sf.dewdrop.sqlml.Constraint
addColumnRef, getColumnRefs, getDirective, isComplex, isInline, setDirective, setInline
 
Methods inherited from class net.sf.dewdrop.sqlml.SchemaComponent
getDescription, getName, setDescription, setName
 
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
getIndentLevel, i18n, i18n, i18n, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

protected String table

onDelete

protected ModificationAction onDelete

onUpdate

protected ModificationAction onUpdate
Constructor Detail

ForeignKey

public ForeignKey()
Method Detail

getTable

public String getTable()

setTable

public void setTable(String foreignTable)

getOnDelete

public ModificationAction getOnDelete()

setOnDelete

public void setOnDelete(ModificationAction onDelete)

getOnUpdate

public ModificationAction getOnUpdate()

setOnUpdate

public void setOnUpdate(ModificationAction onUpdate)

hasUpdateAction

public boolean hasUpdateAction()

hasDeleteAction

public boolean hasDeleteAction()

equals

public boolean equals(Object o)
Overrides:
equals in class Constraint

onWriteSql

public void onWriteSql(Writer out,
                       Configuration cfg)
Specified by:
onWriteSql in class SqlmlComponent
See Also:
SqlmlComponent.writeSql(java.io.Writer)