N : M
Mapped, using an association table, which will appear in
associatioTables
Method Summary |
Object |
clone()
|
static StandardAssociationMapping |
getInstance()
|
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 |
private void |
mapManyToMany(ru.novosoft.uml.foundation.core.MAssociation association)
|
private void |
mapOneToMany(ru.novosoft.uml.foundation.core.MAssociationEnd one,
ru.novosoft.uml.foundation.core.MAssociationEnd two)
|
private void |
mapOneToOne(ru.novosoft.uml.foundation.core.MAssociationEnd one,
ru.novosoft.uml.foundation.core.MAssociationEnd two)
|
String |
toString()
|
myInstance
private static StandardAssociationMapping myInstance
classToTables
private Map classToTables
associationTables
private Map associationTables
navigationGuides
private Map navigationGuides
classViews
private Map classViews
StandardAssociationMapping
private StandardAssociationMapping()
getInstance
public static StandardAssociationMapping getInstance()
map
public void map(ru.novosoft.uml.foundation.core.MAssociation association,
Map classToTables,
Map associationTables,
Map navigationGuides,
Map classViews)
- Description copied from interface:
AssociationStrategy
- 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
- Specified by:
map
in interface AssociationStrategy
- Parameters:
association
- the association to mapclassToTables
- contains a List of Table for every MClassifier mappedclassViews
- contains an ObjectView for every MClassifierassociationTables
- a Map containing Association-Tables for n:m or 1:n MAssociationsnavigationGuides
- String classifier -> (String roleName -> Guide associationEnd)
mapOneToOne
private void mapOneToOne(ru.novosoft.uml.foundation.core.MAssociationEnd one,
ru.novosoft.uml.foundation.core.MAssociationEnd two)
mapOneToMany
private void mapOneToMany(ru.novosoft.uml.foundation.core.MAssociationEnd one,
ru.novosoft.uml.foundation.core.MAssociationEnd two)
mapManyToMany
private void mapManyToMany(ru.novosoft.uml.foundation.core.MAssociation association)
clone
public Object clone()
toString
public String toString()
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.