org.objectweb.medor.optim.rdb
Class RdbAssignRdbAdapterRule

java.lang.Object
  extended byorg.objectweb.medor.optim.lib.BasicRule
      extended byorg.objectweb.medor.optim.rdb.RdbAssignRdbAdapterRule
All Implemented Interfaces:
RewriteRule

public class RdbAssignRdbAdapterRule
extends BasicRule

Author:
S.Chassande-Barrioz

Nested Class Summary
 
Nested classes inherited from class org.objectweb.medor.optim.lib.BasicRule
BasicRule.ModifiedExpression
 
Field Summary
protected  java.util.Map name2Adapter
           
 
Fields inherited from class org.objectweb.medor.optim.lib.BasicRule
debug, log
 
Constructor Summary
RdbAssignRdbAdapterRule()
           
RdbAssignRdbAdapterRule(java.util.Map m)
           
 
Method Summary
protected  void assignAdapter(QueryTree qt)
           
 java.util.Map getName2Adapter()
           
 QueryTree rewrite(QueryTree qt, QueryNode _parent)
          This method applies a single rule.
 void setName2Adapter(java.util.Map m)
           
 
Methods inherited from class org.objectweb.medor.optim.lib.BasicRule
replaceUsage, rewrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name2Adapter

protected java.util.Map name2Adapter
Constructor Detail

RdbAssignRdbAdapterRule

public RdbAssignRdbAdapterRule()

RdbAssignRdbAdapterRule

public RdbAssignRdbAdapterRule(java.util.Map m)
Method Detail

setName2Adapter

public void setName2Adapter(java.util.Map m)

getName2Adapter

public java.util.Map getName2Adapter()

rewrite

public QueryTree rewrite(QueryTree qt,
                         QueryNode _parent)
                  throws MedorException
Description copied from interface: RewriteRule
This method applies a single rule.

It is typically called by the QueryRewriter for applying the entire rewriting process.

Parameters:
qt - the QueryTree to be rewritten
_parent - the parent QueryNode for which modification of propagated field, if they are replaced in the qt, should be done.
Returns:
the rewritten QueryTree
Throws:
MedorException

assignAdapter

protected void assignAdapter(QueryTree qt)
                      throws MedorException
Throws:
MedorException