Dresden OCL Toolkit

tudresden.ocl.sql.orstrategy
Class SimpleClassToTableMapping

java.lang.Object
  extended bytudresden.ocl.sql.orstrategy.SimpleClassToTableMapping
All Implemented Interfaces:
ClassStrategy

public class SimpleClassToTableMapping
extends Object
implements ClassStrategy

Maps each class to a single table. this should be the default mapping strategy for classes.


Field Summary
private static SimpleClassToTableMapping myInstance
           
 
Constructor Summary
private SimpleClassToTableMapping()
           
 
Method Summary
 Object clone()
           
static SimpleClassToTableMapping getInstance()
           
 void map(ru.novosoft.uml.foundation.core.MClassifier classifier, Map classToTables, Map classViews)
          Assumes that class never was mapped before.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myInstance

private static SimpleClassToTableMapping myInstance
Constructor Detail

SimpleClassToTableMapping

private SimpleClassToTableMapping()
Method Detail

getInstance

public static SimpleClassToTableMapping getInstance()

map

public void map(ru.novosoft.uml.foundation.core.MClassifier classifier,
                Map classToTables,
                Map classViews)
Assumes that class never was mapped before. If an entry for classifier is found in the classToTables mapping no mapping will be done.

Specified by:
map in interface ClassStrategy
Parameters:
classifier - the class to be mapped
classToTables - all classes mapped so far. see ClassStrategy for details
classViews - a Map containing an (unfinished) ObjectView for all MClassifiers mapped so far
See Also:
ClassStrategy

clone

public Object clone()

toString

public String toString()

Dresden OCL Toolkit

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