org.objectweb.medor.optim.jorm
Class JormAssignMapperRule
- RewriteRule
public class JormAssignMapperRule
It permits to assign the mappers to the JORM leaves.
This rule must be executed
before the rewriting of the JORM leaves. Two maps are assigned to this rule.
The first map has the following caracteristics:
- key = JORM class name
- value = the mapper instance which maps the jorm class.
The second map has the following caracteristics:
- key = JORM class name
- value = the project name for this JORM class.
Currently this rule does not take in account the possibility to map the
same class several times into several mapper.
deprecated Should now use the JormQueryTreeHelper methods instead.
- S. Chassande-Barrioz
JormQueryTreeHelper
jormName2Mapper
protected Map jormName2Mapper
jormName2Project
protected Map jormName2Project
JormAssignMapperRule
public JormAssignMapperRule()
getJormName2Mapper
public Map getJormName2Mapper()
setJormName2Mapper
public void setJormName2Mapper(Map jormName2Mapper,
Map jormName2Project)
It assigns the map used in this rule. (Read the class description for
more details).
jormName2Mapper
- is the map