com.sri.emo.commandline.defaults
Class DefaultTreeExporter
java.lang.Object
com.sri.emo.commandline.defaults.AbstractExportSupport
com.sri.emo.commandline.defaults.AbstractNodeExportSupport
com.sri.emo.commandline.defaults.DefaultTreeExporter
- All Implemented Interfaces:
- TreeExporter
public class DefaultTreeExporter
- extends AbstractNodeExportSupport
- implements TreeExporter
- Author:
- Michael Rimov
Field Summary |
org.apache.log4j.Logger |
log
Log4j logger. |
Method Summary |
int |
exportNode(PrintWriter writer,
Node node)
Exports a node and all of its related attributes, security settings, and relations. |
int |
exportNodeTree(PrintWriter writer,
Node baseNode)
Exports the given node and all related objecst to the
given output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public final org.apache.log4j.Logger log
- Log4j logger.
DefaultTreeExporter
public DefaultTreeExporter(NodeTracker nodeTracker,
SqlRowGenerator generator)
exportNodeTree
public int exportNodeTree(PrintWriter writer,
Node baseNode)
throws DBException,
IOException
- Description copied from interface:
TreeExporter
- Exports the given node and all related objecst to the
given output stream.
- Specified by:
exportNodeTree
in interface TreeExporter
- Parameters:
writer
- 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
exportNode
public int exportNode(PrintWriter writer,
Node node)
throws DBException,
IOException
- Exports a node and all of its related attributes, security settings, and relations.
- Parameters:
writer
- node
-
- Returns:
-
- Throws:
DBException
IOException
Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.