tudresden.ocl.sql.orstrategy
Class CollectionMapper
java.lang.Object
tudresden.ocl.sql.orstrategy.CollectionMapper
- All Implemented Interfaces:
- DatatypeStrategy
- public class CollectionMapper
- extends Object
- implements DatatypeStrategy
a DatatypeStrategy for mapping unknown datatypes representing
any kind of ordered or unordered collection to it's own table
in the database schema
- Author:
- Andrea Kling
Method Summary |
void |
map(ru.novosoft.uml.foundation.core.MAttribute attribute,
Map classToTables,
Map classViews)
Maps attribute to its own collection table. |
private void |
removeFromOV(ru.novosoft.uml.foundation.core.MClassifier owner,
String attribute)
removes the attribute from ObjectViews |
String |
toString()
a short description of the strategy |
dataTypes
private List dataTypes
attributeNames
private List attributeNames
classViews
private Map classViews
CollectionMapper
public CollectionMapper(List attributeNames,
List dataTypes)
- Parameters:
attributeNames
- a List of String containing column names for the
collection tabledataTypes
- a List of String containing the column datatypes
corresponding attributeNames
map
public void map(ru.novosoft.uml.foundation.core.MAttribute attribute,
Map classToTables,
Map classViews)
- Maps attribute to its own collection table. the attribute is removed
from the ObjectView of it's classifier and of all ObjectViews of this
classifiers subclasses
- Specified by:
map
in interface DatatypeStrategy
- Parameters:
attribute
- an Attribute having an collection datatypeclassToTables
- a Map containing for every MClassifier a List of TableclassViews
- contains an ObjectView for every MClassifier- See Also:
ObjectView
removeFromOV
private void removeFromOV(ru.novosoft.uml.foundation.core.MClassifier owner,
String attribute)
- removes the attribute from ObjectViews
toString
public String toString()
- a short description of the strategy
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.