Dresden OCL Toolkit

tudresden.ocl.test.sql
Class UniversityExampleSchema

java.lang.Object
  extended bytudresden.ocl.test.sql.UniversityExampleSchema
All Implemented Interfaces:
ORMapping

public class UniversityExampleSchema
extends Object
implements ORMapping

An example schema to test the ILSQLCodeGenerator.

Version:
1.0
Author:
Sten Loecher

Field Summary
(package private)  Map classifiersToTables
           
 
Constructor Summary
UniversityExampleSchema()
          Creates new UniversityExampleSchema
 
Method Summary
 Map associationEnds(String classifier)
           
 Set attributes(String classifier)
           
 Set classifiers()
           
 Set directSupertypeNames(String classifier)
           
 List getClassTables(String classifier)
           
 List guidesToAssociationEnds(String classifier, String assEnd)
           
 Set operations(String classifier)
           
 List tables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classifiersToTables

Map classifiersToTables
Constructor Detail

UniversityExampleSchema

public UniversityExampleSchema()
Creates new UniversityExampleSchema

Method Detail

associationEnds

public Map associationEnds(String classifier)
Specified by:
associationEnds in interface ORMapping
Parameters:
classifier - a classifier
Returns:
a Map that maps the names of all association ends to the according class name

attributes

public Set attributes(String classifier)
Specified by:
attributes in interface ORMapping
Parameters:
classifier - a classifier
Returns:
a Set containing all names of attributes that are properties of the classifier

classifiers

public Set classifiers()
Specified by:
classifiers in interface ORMapping
Returns:
a Set containing the names of all classifiers

directSupertypeNames

public Set directSupertypeNames(String classifier)
Specified by:
directSupertypeNames in interface ORMapping
Parameters:
classifier - a classifier
Returns:
a Set containing all the names of direct supertypes of the classifier

getClassTables

public List getClassTables(String classifier)
Specified by:
getClassTables in interface ORMapping
Parameters:
classifier - a classifier
Returns:
a List with all table objects the classifier was mapped to
See Also:
Table

guidesToAssociationEnds

public List guidesToAssociationEnds(String classifier,
                                    String assEnd)
Specified by:
guidesToAssociationEnds in interface ORMapping
Parameters:
classifier - a classifier
assEnd - the name of the association end
Returns:
a List that contains guides to to the specified association end from the classifier
See Also:
Guide

operations

public Set operations(String classifier)
Specified by:
operations in interface ORMapping
Parameters:
classifier - a classifier
Returns:
a Set containing all names of operations that are properties of the classifier

tables

public List tables()
Specified by:
tables in interface ORMapping
Returns:
a List with all table objects created during the object relational mapping
See Also:
Table

Dresden OCL Toolkit

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