SMACS

smacs.find.imports
Class ScriptToSelinsInto

java.lang.Object
  extended bysmacs.find.imports.ScriptToSelinsInto
All Implemented Interfaces:
ScriptToSelins

public class ScriptToSelinsInto
extends Object
implements ScriptToSelins


Field Summary
protected static Logger log
           
 
Constructor Summary
ScriptToSelinsInto(String name, List nodes)
           
 
Method Summary
 void addInsertIntoStatement(SimpleNode node)
           
 DbvizSelins convert()
          do all scan and builds steps to convert the sql tree.
 Vector getSelectInsertRuleVector(SimpleNode tree)
          scan SqlScript parsing tree for Rules and return a vector.
 List selectNodes(SimpleNode tree)
          catch the nodes that are relevant to us.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

ScriptToSelinsInto

public ScriptToSelinsInto(String name,
                          List nodes)
Method Detail

addInsertIntoStatement

public void addInsertIntoStatement(SimpleNode node)

convert

public DbvizSelins convert()
Description copied from interface: ScriptToSelins
do all scan and builds steps to convert the sql tree. It is assumed that this object has been initialized with an SqlScript file and that will be converted into a native DbvizSelins wrapper tree upon request only.

Specified by:
convert in interface ScriptToSelins
Returns:
new DbvizSelins

getSelectInsertRuleVector

public Vector getSelectInsertRuleVector(SimpleNode tree)
Description copied from interface: ScriptToSelins
scan SqlScript parsing tree for Rules and return a vector. The attached Rule objects in the Vector are different for InsertInto and InsertFrom

Specified by:
getSelectInsertRuleVector in interface ScriptToSelins
Returns:
a Vector of Rule copies. The size of the Vector indicates success.

selectNodes

public List selectNodes(SimpleNode tree)
Description copied from interface: ScriptToSelins
catch the nodes that are relevant to us.

Specified by:
selectNodes in interface ScriptToSelins
Returns:
list of nodes

SMACS