org.objectweb.medor.optim.rdb
Class RdbAssignRdbAdapterRule

java.lang.Object
  |
  +--org.objectweb.medor.optim.lib.BasicRule
        |
        +--org.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)
          This method applies a single rule.
 void setName2Adapter(java.util.Map m)
           
 
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)
                  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.

Specified by:
rewrite in interface RewriteRule
Overrides:
rewrite in class BasicRule
Parameters:
qt - the QueryTree to be rewritten
Returns:
the rewritten QueryTree
Throws:
MedorException

assignAdapter

protected void assignAdapter(QueryTree qt)
                      throws MedorException
MedorException