Hi,
at first thanks for your quick responses. What I want to do is to create automatically Classes that implement the J2EE DAO Pattern (see on
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html). For this purpose I developed my own small UML profile, that contains the stereotypes <<persistent>>, <<persistenceData>> and <<primaryKey>>.
<<persistenceData>> is meant to be applied only on one peristent class. For all the others I use <<persistent>>.
<<primaryKey>> is used to mark attributes or associationends of classes that are needed to idenify instances of the class.
For each class marked with <<persistent>> or <<persistenceData>> I want to produce a DAO Interface and a DAO Class implementation. Furthermore I want to create an abstract DAO factory and concrete DAO factories for each DBMS to use.
For this purpose <<persistenceData>> additionaly defines some tags like databaseProductName, where I specify the different database product names in a comma separated list. A value for this tag could look like this "MySQL,Derby,HSQLDB".
My problem is now, that if I want to produce attributes and methods for the abstract DAO factory (see figure 9.8 on
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html)
I need first to retrieve all the names of classes to persist and the values of the tags of <<persistenceData>>. Furthermore I want to use the names specified in databaseProductName to produce concrete DAO factories with name like this MySQL_DAOFactory, Derby_DAOFactory and HSQLDB_DAOFactory.
How can I achieve this without changing my uml profile?
Can it be that the transformation language used in EA is to weak to express such transformations?
Thanks in advance for your replies.