com.sri.emo.commandline
Interface TreeExporter

All Known Implementing Classes:
DefaultTreeExporter

public interface TreeExporter

Exports the SQL of an entire tree of nodes (defined by the node baseNode).

Author:
Michael Rimov

Method Summary
 int exportNodeTree(PrintWriter output, Node baseNode)
          Exports the given node and all related objecst to the given output stream.
 List getSQL(DBObject dbobject)
          Retrieves the sql insert strings for the
 

Method Detail

exportNodeTree

int exportNodeTree(PrintWriter output,
                   Node baseNode)
                   throws DBException,
                          IOException
Exports the given node and all related objecst to the given output stream.

Parameters:
output - the printwriter to save the exported sql data to.
baseNode - the root of the tree to export.
Returns:
the total number of records exported in that tree.
Throws:
DBException
IOException

getSQL

List getSQL(DBObject dbobject)
            throws DBException
Retrieves the sql insert strings for the

Returns:
list of strings, all the SQL insert statements for the given object
Throws:
DBException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.