org.astrogrid.desktop.modules.adqlEditor.commands
Class ColumnInsertCommand

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
          extended by org.astrogrid.desktop.modules.adqlEditor.commands.StandardInsertCommand
              extended by org.astrogrid.desktop.modules.adqlEditor.commands.ColumnInsertCommand
All Implemented Interfaces:
Serializable, UndoableEdit, CommandExec, CommandInfo

public class ColumnInsertCommand
extends StandardInsertCommand

Author:
jl99@star.le.ac.uk TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.astrogrid.desktop.modules.adqlEditor.commands.CommandExec
CommandExec.Result
 
Field Summary
protected  String columnName
           
protected  TableBean table
           
protected  String tableAlias
           
 
Fields inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
adqlTree, childElement, childToken, childType, maxOccurs, minOccurs, parentToken, parentType, undoManager
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Fields inherited from interface org.astrogrid.desktop.modules.adqlEditor.commands.CommandExec
ERROR, FAILED, OK, WARNING
 
Constructor Summary
ColumnInsertCommand(AdqlTree adqlTree, UndoManager undoManager, AdqlNode parentTarget, SchemaType childType, SchemaProperty childElement)
           
ColumnInsertCommand(ColumnInsertCommand cic)
           
 
Method Summary
protected  CommandExec.Result _execute()
           
private  void _reinstateAllColumnsOption()
           
protected  CommandExec.Result _unexecute()
           
 CommandExec.Result execute()
           
 String getColumnName()
           
 TableBean getTable()
           
 String getTableAlias()
           
private  void removeAllColumnsOption()
           
 void setColumnName(String columnName)
           
 void setSelectedValue(String value)
           
 void setTable(TableBean tableBean)
           
 void setTableAlias(String alias)
           
 String toString()
           
 
Methods inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.StandardInsertCommand
die, getPresentationName, redo, undo
 
Methods inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
addToEditStore, exchangeInEditStore, exchangeInEditStore, getChildDisplayName, getChildElement, getChildElementName, getChildEntry, getChildIndex, getChildMaxOccurs, getChildMinOccurs, getChildObject, getChildToken, getChildType, getFromEditStore, getMessages, getParentDisplayName, getParentElementName, getParentEntry, getParentObject, getParentToken, getParentType, isChildCascadeable, isChildColumnLinked, isChildDisallowed, isChildDrivenByEnumeratedAttribute, isChildDrivenByEnumeratedElement, isChildEnabled, isChildHeldInArray, isChildInPatternContext, isChildMandatorySingleton, isChildOptionalSingleton, isChildSupportedType, isChildTableLinked, isInitializedStatusGood, isInsertableIntoArray, isParentSuitablePasteTargetFor, setMessages
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

protected TableBean table

columnName

protected String columnName

tableAlias

protected String tableAlias
Constructor Detail

ColumnInsertCommand

public ColumnInsertCommand(AdqlTree adqlTree,
                           UndoManager undoManager,
                           AdqlNode parentTarget,
                           SchemaType childType,
                           SchemaProperty childElement)
Parameters:
target -
-

ColumnInsertCommand

public ColumnInsertCommand(ColumnInsertCommand cic)
Method Detail

getColumnName

public String getColumnName()

setColumnName

public void setColumnName(String columnName)

setSelectedValue

public void setSelectedValue(String value)
Overrides:
setSelectedValue in class StandardInsertCommand

getTable

public TableBean getTable()

setTable

public void setTable(TableBean tableBean)

getTableAlias

public String getTableAlias()

setTableAlias

public void setTableAlias(String alias)

execute

public CommandExec.Result execute()
Specified by:
execute in interface CommandExec
Overrides:
execute in class StandardInsertCommand

_execute

protected CommandExec.Result _execute()
Overrides:
_execute in class StandardInsertCommand

_unexecute

protected CommandExec.Result _unexecute()
Overrides:
_unexecute in class StandardInsertCommand

removeAllColumnsOption

private void removeAllColumnsOption()

_reinstateAllColumnsOption

private void _reinstateAllColumnsOption()

toString

public String toString()
Overrides:
toString in class StandardInsertCommand


Copyright © 2002-2010 AstroGrid. All Rights Reserved.