net.sourceforge.squirrel_sql.plugins.sqlscript.table_script
Class CreateDataScriptCommand

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by net.sourceforge.squirrel_sql.plugins.sqlscript.table_script.CreateDataScriptCommand
All Implemented Interfaces:
WindowFocusListener, WindowListener, WindowStateListener, EventListener, ICommand
Direct Known Subclasses:
CreateDataScriptOfCurrentSQLCommand, CreateTableOfCurrentSQLCommand

public class CreateDataScriptCommand
extends WindowAdapter
implements ICommand


Field Summary
protected  IAbortController _abortController
           
protected  ISession _session
          Current session.
 
Constructor Summary
CreateDataScriptCommand(ISession session, IAbortController abortController, SQLScriptPlugin plugin, boolean templateScriptOnly)
          Ctor specifying the current session and IAbortController.
CreateDataScriptCommand(ISession session, SQLScriptPlugin plugin, boolean templateScriptOnly)
          Ctor specifying the current session.
 
Method Summary
 void execute()
          Execute this command.
protected  void genInserts(ResultSet srcResult, String sTable, StringBuffer sbRows, boolean headerOnly)
           
protected  String getFirstColumnName(ITableInfo ti)
           
protected  int getFirstColumnType(ITableInfo ti)
           
protected  void hideAbortFrame()
           
protected  boolean isAborted()
           
protected  void showAbortFrame()
           
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_abortController

protected IAbortController _abortController

_session

protected ISession _session
Current session.

Constructor Detail

CreateDataScriptCommand

public CreateDataScriptCommand(ISession session,
                               SQLScriptPlugin plugin,
                               boolean templateScriptOnly)
Ctor specifying the current session.


CreateDataScriptCommand

public CreateDataScriptCommand(ISession session,
                               IAbortController abortController,
                               SQLScriptPlugin plugin,
                               boolean templateScriptOnly)
Ctor specifying the current session and IAbortController.

Method Detail

showAbortFrame

protected void showAbortFrame()

execute

public void execute()
Execute this command.

Specified by:
execute in interface ICommand

getFirstColumnName

protected String getFirstColumnName(ITableInfo ti)
                             throws SQLException
Throws:
SQLException

getFirstColumnType

protected int getFirstColumnType(ITableInfo ti)
                          throws SQLException
Throws:
SQLException

genInserts

protected void genInserts(ResultSet srcResult,
                          String sTable,
                          StringBuffer sbRows,
                          boolean headerOnly)
                   throws SQLException
Throws:
SQLException

hideAbortFrame

protected void hideAbortFrame()

isAborted

protected boolean isAborted()


Copyright © 2001-2011. All Rights Reserved.