com.bonevich.erj.model
Class ForeignKey

java.lang.Object
  |
  +--com.bonevich.erj.model.ModelElement
        |
        +--com.bonevich.erj.model.KeyConstraint
              |
              +--com.bonevich.erj.model.ForeignKey
All Implemented Interfaces:
ErjConstants

public final class ForeignKey
extends KeyConstraint

A class that represents ...

Author:
Jeffrey D. Bonevich
See Also:
Relation

Nested Class Summary
static class ForeignKey.Cardinality
           
 
Field Summary
static ForeignKey.Cardinality[] CARDINALITY_ARRAY
           
static ForeignKey.Cardinality MANY_TO_MANY
           
static java.lang.String MANY_TO_MANY_STR
           
static java.lang.String NEW_FOREIGNKEY_STR
           
static ForeignKey.Cardinality ONE_TO_MANY
           
static ForeignKey.Cardinality ONE_TO_MANY_MANDATORY
           
static java.lang.String ONE_TO_MANY_MANDATORY_STR
           
static java.lang.String ONE_TO_MANY_STR
           
static ForeignKey.Cardinality ONE_TO_ONE
           
static java.lang.String ONE_TO_ONE_STR
           
static ForeignKey.Cardinality ONE_TO_ZERO
           
static java.lang.String ONE_TO_ZERO_STR
           
static ForeignKey.Cardinality ZERO_TO_MANY
           
static ForeignKey.Cardinality ZERO_TO_MANY_MANDATORY
           
static java.lang.String ZERO_TO_MANY_MANDATORY_STR
           
static java.lang.String ZERO_TO_MANY_STR
           
static ForeignKey.Cardinality ZERO_TO_ZERO
           
static java.lang.String ZERO_TO_ZERO_STR
           
 
Fields inherited from class com.bonevich.erj.model.KeyConstraint
_attributes, _relation, EMPTY_STR
 
Fields inherited from class com.bonevich.erj.model.ModelElement
_description, _dyn_description, _dyn_identifier, _dyn_name, _identifier, _name
 
Fields inherited from interface com.bonevich.erj.ErjConstants
EDITOR_COLOR, EDITOR_FONT, ICON_AK, ICON_DOMAIN, ICON_FK, ICON_FOREIGNKEY, ICON_NOTNULL, ICON_NULL, ICON_PK, ICON_RELATION, ICON_SCHEMA, ICON_SPLASH, INITIAL_FRAME_SIZE, LABEL_COLOR, LABEL_FILL, LABEL_FONT, LABEL_FONT_ITALIC, LABEL_FONT_SIZE, LABEL_FONTMETRICS, STATUSBAR_COLOR, STATUSBAR_FONT, STATUSBAR_FONT_ITALIC, STATUSBAR_MOD_FILL, SUBLABEL_FILL
 
Constructor Summary
ForeignKey(Relation relation, Attribute[] attributes, Relation referentRelation)
           
 
Method Summary
 void accept(KeyVisitor visitor)
           
 ForeignKey.Cardinality getCardinality()
           
 Relation getReferentRelation()
           
 void setCardinality(ForeignKey.Cardinality cardinality)
           
 
Methods inherited from class com.bonevich.erj.model.KeyConstraint
accept, addAttribute, dispose, equals, getAttributeIterator, getRelation
 
Methods inherited from class com.bonevich.erj.model.ModelElement
getDescription, getIdentifier, getName, getOclReferenceId, isNameInitialized, setDescription, setIdentifier, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEW_FOREIGNKEY_STR

public static final java.lang.String NEW_FOREIGNKEY_STR
See Also:
Constant Field Values

ZERO_TO_ZERO_STR

public static final java.lang.String ZERO_TO_ZERO_STR
See Also:
Constant Field Values

ONE_TO_ZERO_STR

public static final java.lang.String ONE_TO_ZERO_STR
See Also:
Constant Field Values

ONE_TO_ONE_STR

public static final java.lang.String ONE_TO_ONE_STR
See Also:
Constant Field Values

ZERO_TO_MANY_STR

public static final java.lang.String ZERO_TO_MANY_STR
See Also:
Constant Field Values

ONE_TO_MANY_STR

public static final java.lang.String ONE_TO_MANY_STR
See Also:
Constant Field Values

ZERO_TO_MANY_MANDATORY_STR

public static final java.lang.String ZERO_TO_MANY_MANDATORY_STR
See Also:
Constant Field Values

ONE_TO_MANY_MANDATORY_STR

public static final java.lang.String ONE_TO_MANY_MANDATORY_STR
See Also:
Constant Field Values

MANY_TO_MANY_STR

public static final java.lang.String MANY_TO_MANY_STR
See Also:
Constant Field Values

ZERO_TO_ZERO

public static final ForeignKey.Cardinality ZERO_TO_ZERO

ONE_TO_ZERO

public static final ForeignKey.Cardinality ONE_TO_ZERO

ONE_TO_ONE

public static final ForeignKey.Cardinality ONE_TO_ONE

ZERO_TO_MANY

public static final ForeignKey.Cardinality ZERO_TO_MANY

ONE_TO_MANY

public static final ForeignKey.Cardinality ONE_TO_MANY

ZERO_TO_MANY_MANDATORY

public static final ForeignKey.Cardinality ZERO_TO_MANY_MANDATORY

ONE_TO_MANY_MANDATORY

public static final ForeignKey.Cardinality ONE_TO_MANY_MANDATORY

MANY_TO_MANY

public static final ForeignKey.Cardinality MANY_TO_MANY

CARDINALITY_ARRAY

public static final ForeignKey.Cardinality[] CARDINALITY_ARRAY
Constructor Detail

ForeignKey

public ForeignKey(Relation relation,
                  Attribute[] attributes,
                  Relation referentRelation)
Method Detail

getCardinality

public ForeignKey.Cardinality getCardinality()

setCardinality

public void setCardinality(ForeignKey.Cardinality cardinality)

getReferentRelation

public Relation getReferentRelation()

accept

public void accept(KeyVisitor visitor)
Specified by:
accept in class KeyConstraint


Copyright © 2001-2003 bonevich.com. All Rights Reserved.