|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.sql.ObjectViewSchema
Implements ORMappingSchema and realizes the object-view-concept. That is, for each class an according view is going to be generated. The view queries all tables which belong to the class and thus enables to query all tupels respectivly objects related to a class via one virtual table.
Field Summary | |
(package private) Map |
classifiersToMappedClasses
|
(package private) Map |
classifiersToViews
|
(package private) ORMapping |
theORM
|
(package private) SQLBuilder |
theSQLBuilder
|
Constructor Summary | |
ObjectViewSchema(ORMapping orm,
SQLBuilder sqlb)
|
Method Summary | |
void |
construct()
Does the construction of the SQL code. |
private void |
createMappedClassLinks()
Creates all necessary links between MappedClass objects. |
private void |
createObjectViews()
Basic mapping of class tables to one view including attributes. |
String |
getCode()
|
MappedClass |
getMappedClass(String classifier)
|
String[] |
getQueriedTables(String viewName)
|
String |
getViewDefinition(String classifier)
|
String |
getViewDefinitions()
|
private void |
insertQueryMethodes()
Inserts information about query methodes contained by the classes in the class model. |
void |
setBuilder(SQLBuilder sqlb)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
ORMapping theORM
SQLBuilder theSQLBuilder
Map classifiersToMappedClasses
Map classifiersToViews
Constructor Detail |
public ObjectViewSchema(ORMapping orm, SQLBuilder sqlb)
orm
- an object relational mappingsqlb
- a SQLBuilderMethod Detail |
public MappedClass getMappedClass(String classifier)
getMappedClass
in interface ORMappingScheme
classifier
- a classifier
public String getViewDefinition(String classifier)
classifier
- a classifier
public String getViewDefinitions()
public String[] getQueriedTables(String viewName)
viewName
- the name of a view
public void setBuilder(SQLBuilder sqlb)
setBuilder
in interface SQLDirector
sqlb
- a builder used by the director to build database specific codepublic void construct()
construct
in interface SQLDirector
public String getCode()
getCode
in interface SQLDirector
private void createObjectViews()
private void createMappedClassLinks()
private void insertQueryMethodes()
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |