org.infolayer.model
Class Connection

java.lang.Object
  extended byorg.infolayer.model.Connection
All Implemented Interfaces:
ModificationListener
Direct Known Subclasses:
RamConnection, TableConnection

public abstract class Connection
extends java.lang.Object
implements ModificationListener


Constructor Summary
Connection()
           
 
Method Summary
abstract  void close()
           
static Connection create(UmlClass base, java.lang.String connector)
          Creates a connection for the given (base) class, using the given connector.
 UmlObject createUmlObject(UmlClass umlClass, java.lang.String id, boolean fillImmediately)
          Creates a new UmlObject for an existing instance
static java.lang.String generateId()
           
abstract  void init(UmlClass base, java.lang.String connector)
          This method is called automatically from the static create method
abstract  void open()
          Opens a connection that has been created before.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infolayer.model.ModificationListener
modified
 

Constructor Detail

Connection

public Connection()
Method Detail

generateId

public static java.lang.String generateId()

create

public static Connection create(UmlClass base,
                                java.lang.String connector)
Creates a connection for the given (base) class, using the given connector. Calls the init method of the connection internally


init

public abstract void init(UmlClass base,
                          java.lang.String connector)
This method is called automatically from the static create method


open

public abstract void open()
Opens a connection that has been created before. Separation of creation and open allows the holder to store a reference before the connection is actually accessed since the access may result in further indirect access to the connection


createUmlObject

public final UmlObject createUmlObject(UmlClass umlClass,
                                       java.lang.String id,
                                       boolean fillImmediately)
Creates a new UmlObject for an existing instance


close

public abstract void close()