smacs.find.imports
Class ScriptToSelinsInto
java.lang.Object
smacs.find.imports.ScriptToSelinsInto
- All Implemented Interfaces:
- ScriptToSelins
- public class ScriptToSelinsInto
- extends Object
- implements ScriptToSelins
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Logger log
ScriptToSelinsInto
public ScriptToSelinsInto(String name,
List nodes)
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