org.objectweb.medor.optim.jorm

Class Jorm2Rdb

Implemented Interfaces:
RewriteRule

public class Jorm2Rdb
extends JormRule

This rules transforms a QueryTree built on top of JORM Extents into a QueryTree built on top of RdbExpQueryLeaves.

It handles cases where there are Nest QueryNodes, and relies on the JormFlatten2Rdb rule for the rest of the QueryTree.

Author:
A. Lefebvre

Nested Class Summary

Nested classes/interfaces inherited from class org.objectweb.medor.optim.lib.BasicRule

BasicRule.ModifiedExpression

Field Summary

Fields inherited from class org.objectweb.medor.optim.lib.BasicRule

debug, log

Constructor Summary

Jorm2Rdb()

Method Summary

QueryTree
rewrite(QueryTree qt, QueryNode parent)

Methods inherited from class org.objectweb.medor.optim.jorm.JormRule

getClassMapping, getGenClassMapping, getJORMFieldName, getPEM, getPNCOperand, getPrimitiveElement

Methods inherited from class org.objectweb.medor.optim.lib.BasicRule

replaceUsage, rewrite

Constructor Details

Jorm2Rdb

public Jorm2Rdb()

Method Details

rewrite

public QueryTree rewrite(QueryTree qt,
                         QueryNode parent)
            throws MedorException
Specified by:
rewrite in interface RewriteRule