Dresden OCL Toolkit

tudresden.ocl.sql.orstrategy
Interface AssociationStrategy

All Known Implementing Classes:
StandardAssociationMapping

public interface AssociationStrategy


Method Summary
 void map(ru.novosoft.uml.foundation.core.MAssociation association, Map classToTables, Map associationTables, Map navigationGuides, Map classViews)
          Maps associations to foreign key relationships and association tables if neccesary Structure of classToTables: MClassifier -> List of Table
structure of navigationGuides: String className -> (String opposite association role -> Guide)
structure of associationTables: MAssociation -> Table
structure of classViews: MClassifier -> ObjectView
any new foreign keys will be added to the first Table listed and refer to the primary key to another classes first listed Table
 

Method Detail

map

public void map(ru.novosoft.uml.foundation.core.MAssociation association,
                Map classToTables,
                Map associationTables,
                Map navigationGuides,
                Map classViews)
Maps associations to foreign key relationships and association tables if neccesary Structure of classToTables: MClassifier -> List of Table
structure of navigationGuides: String className -> (String opposite association role -> Guide)
structure of associationTables: MAssociation -> Table
structure of classViews: MClassifier -> ObjectView
any new foreign keys will be added to the first Table listed and refer to the primary key to another classes first listed Table

Parameters:
association - the association to be inserted
classToTables - a List of Table for each class mapped.
associationTables - a Map storing associationTables for Associations that need them
navigationGuides - a Map storing for each class name a Map of association roles and guides to their Ends
classViews - a Map storing an ObjectView for every MClassifier

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.