com.redhat.persistence.metadata
Class ForeignKey

java.lang.Object
  extended bycom.redhat.persistence.metadata.Constraint
      extended bycom.redhat.persistence.metadata.ForeignKey

public class ForeignKey
extends Constraint

ForeignKey

Version:
$Revision: #4 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
static String versionId
           
 
Constructor Summary
ForeignKey(String name, Column from, Column to)
           
ForeignKey(String name, Column from, Column to, boolean cascade)
           
ForeignKey(Table table, String name, Column[] columns, UniqueKey key)
           
ForeignKey(Table table, String name, Column[] columns, UniqueKey key, boolean cascade)
           
 
Method Summary
 String getSQL()
           
 UniqueKey getUniqueKey()
           
 boolean isDeferred()
           
 boolean isNullable()
           
 
Methods inherited from class com.redhat.persistence.metadata.Constraint
getColumns, getName, getTable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ForeignKey

public ForeignKey(Table table,
                  String name,
                  Column[] columns,
                  UniqueKey key,
                  boolean cascade)

ForeignKey

public ForeignKey(Table table,
                  String name,
                  Column[] columns,
                  UniqueKey key)

ForeignKey

public ForeignKey(String name,
                  Column from,
                  Column to,
                  boolean cascade)

ForeignKey

public ForeignKey(String name,
                  Column from,
                  Column to)
Method Detail

getUniqueKey

public UniqueKey getUniqueKey()

isNullable

public boolean isNullable()

isDeferred

public boolean isDeferred()
Specified by:
isDeferred in class Constraint

getSQL

public String getSQL()
Specified by:
getSQL in class Constraint


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC