easik.sketch.util.Export
Class SaveForSQL

java.lang.Object
  extended by easik.sketch.util.Export.SaveForSQL

public class SaveForSQL
extends java.lang.Object

A class to provide a method to save a sketch for SQL database generation if the sketch has been modified since the last use, and to initialize the SketchHandler associated with the sketch.

Since:
2006-05-18 Vera Ranieri
Version:
2006-06-27 Vera Ranieri
Author:
Vera Ranieri 2006

Constructor Summary
SaveForSQL()
           
 
Method Summary
static ExportHandler saveAction(java.lang.String platform)
          Prompts user if current sketch is unsaved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveForSQL

public SaveForSQL()
Method Detail

saveAction

public static ExportHandler saveAction(java.lang.String platform)
                                throws java.lang.Exception
Prompts user if current sketch is unsaved. Saves current sketch as XML file for SQL generation. Parses saved XML file for SQL translation.

Parameters:
platform - The platform upon which the sketch is to be exported
Returns:
The ExportHandler, if one was successfully created. null otherwise.
Throws:
java.lang.Exception - If an error occurred while parsing XML.