com.sri.emo.commandline.defaults
Class AbstractNodeExportSupport
java.lang.Object
com.sri.emo.commandline.defaults.AbstractExportSupport
com.sri.emo.commandline.defaults.AbstractNodeExportSupport
- Direct Known Subclasses:
- DefaultTreeExporter, WizardExporter
public abstract class AbstractNodeExportSupport
- extends AbstractExportSupport
Contains functions that
- Author:
- Michael Rimov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractNodeExportSupport
public AbstractNodeExportSupport(NodeTracker nodeTracker,
SqlRowGenerator generator)
exportNodeTags
protected int exportNodeTags(PrintWriter writer,
Node node)
throws DBException
- Throws:
DBException
exportNodeType
protected int exportNodeType(PrintWriter writer,
String nodeEntityName)
throws DBException
- Throws:
DBException
exportParts
protected int exportParts(PrintWriter writer,
NodeType nt)
throws DBException
- Parameters:
writer
- nt
-
- Returns:
- the number of objects added to the export script.
- Throws:
DBException
exportPicklists
protected int exportPicklists(PrintWriter writer,
NodeType nt)
throws DBException
- Throws:
DBException
exportAttributes
public int exportAttributes(PrintWriter writer,
Node owner)
throws DBException,
IOException
- Throws:
DBException
IOException
exportRelations
public int exportRelations(PrintWriter writer,
Node owner)
throws DBException,
IOException
- This function exports the relations where the parameter owner is the SOURCE. Currently, we
cannot export nodes where parameter owner is dest because the other end of that relation might
not be exported, at which point the GUI will blow up when the node is brought up to edit.
- Parameters:
writer
- owner
-
- Returns:
- the number of records exported.
- Throws:
DBException
IOException
Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.