com.sri.emo.commandline.defaults
Class AbstractNodeExportSupport

java.lang.Object
  extended by com.sri.emo.commandline.defaults.AbstractExportSupport
      extended by com.sri.emo.commandline.defaults.AbstractNodeExportSupport
Direct Known Subclasses:
DefaultTreeExporter, WizardExporter

public abstract class AbstractNodeExportSupport
extends AbstractExportSupport

Contains functions that

Author:
Michael Rimov

Field Summary
 
Fields inherited from class com.sri.emo.commandline.defaults.AbstractExportSupport
TESTER_UID
 
Constructor Summary
AbstractNodeExportSupport(NodeTracker nodeTracker, SqlRowGenerator generator)
           
 
Method Summary
 int exportAttributes(PrintWriter writer, Node owner)
           
protected  int exportNodeTags(PrintWriter writer, Node node)
           
protected  int exportNodeType(PrintWriter writer, String nodeEntityName)
           
protected  int exportParts(PrintWriter writer, NodeType nt)
           
protected  int exportPicklists(PrintWriter writer, NodeType nt)
           
 int exportRelations(PrintWriter writer, Node owner)
          This function exports the relations where the parameter owner is the SOURCE.
 
Methods inherited from class com.sri.emo.commandline.defaults.AbstractExportSupport
exportSecuredDBobjectEntries, exportSecurityEntries, getGenerator, getNodeTracker, getSQL, writeDBObject, writeDBObject, writeSql
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNodeExportSupport

public AbstractNodeExportSupport(NodeTracker nodeTracker,
                                 SqlRowGenerator generator)
Method Detail

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.