com.bonevich.erj.model
Class Schema

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

public final class Schema
extends ModelElement

A class that represents a SQL schema, which is composed of relations and domains.

Author:
Jeffrey D. Bonevich
See Also:
KeyConstraint, Relation

Field Summary
static java.lang.String NEW_SCHEMA_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, EMPTY_STR, 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
Schema()
           
 
Method Summary
 void accept(ModelElementVisitor visitor)
           
 void addKey(ForeignKey key)
           
 boolean containsDomain(Domain domain)
           
 boolean containsKey(ForeignKey key)
           
 boolean containsRelation(Relation relation)
           
 Domain createDomain()
           
 Relation createRelation()
           
 void deleteDomain(Domain domain)
           
 void deleteRelation(Relation relation)
           
 void dispose()
           
 int getDomainCount()
           
 java.util.Iterator getDomainIterator()
           
 java.util.Iterator getKeyIterator()
           
 int getRelationCount()
           
 java.util.Iterator getRelationIterator()
           
 void removeKey(ForeignKey key)
           
 
Methods inherited from class com.bonevich.erj.model.ModelElement
equals, 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_SCHEMA_STR

public static final java.lang.String NEW_SCHEMA_STR
See Also:
Constant Field Values
Constructor Detail

Schema

public Schema()
Method Detail

createRelation

public Relation createRelation()

deleteRelation

public void deleteRelation(Relation relation)

containsRelation

public boolean containsRelation(Relation relation)

getRelationIterator

public java.util.Iterator getRelationIterator()

getRelationCount

public int getRelationCount()

createDomain

public Domain createDomain()

deleteDomain

public void deleteDomain(Domain domain)

containsDomain

public boolean containsDomain(Domain domain)

getDomainIterator

public java.util.Iterator getDomainIterator()

getDomainCount

public int getDomainCount()

addKey

public void addKey(ForeignKey key)

removeKey

public void removeKey(ForeignKey key)

containsKey

public boolean containsKey(ForeignKey key)

getKeyIterator

public java.util.Iterator getKeyIterator()

dispose

public void dispose()
Specified by:
dispose in class ModelElement

accept

public void accept(ModelElementVisitor visitor)
Specified by:
accept in class ModelElement


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