ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.commands
Class GenerateTableDataCommand

java.lang.Object
  extended bythinkui.db.AbstractDataObject
      extended bythinkui.command.AbstractCommand
          extended bythinkui.desktop.AbstractSwingCommand
              extended bythinkui.sqlclient.AbstractSQLClientCommand
                  extended bythinkui.sqlclient.commands.GenerateTableDataCommand
All Implemented Interfaces:
thinkui.common.Abortable, thinkui.common.CaptionSupport, thinkui.common.ClassNameSupport, java.lang.Cloneable, thinkui.command.Command, thinkui.command.CommandErrorHandler, java.lang.Comparable, thinkui.db.DataClassSupport, DataObject, java.io.Serializable

public class GenerateTableDataCommand
extends AbstractSQLClientCommand

Implements a command to generate test data for the selected database table.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class thinkui.desktop.AbstractSwingCommand
DATA_CLASS
 
Fields inherited from interface thinkui.command.Command
NO_RESULT
 
Fields inherited from interface thinkui.db.DataObject
INDEX_SEPARATOR, NAME_SEPARATOR
 
Constructor Summary
GenerateTableDataCommand()
          GenerateTableDataCommand constructor.
 
Method Summary
 java.lang.Object execute(thinkui.command.CommandContext commandContext)
           
 boolean getGenerateChildren()
           
 int getNumDataObjects()
           
 boolean isPrecondition(thinkui.command.CommandContext commandContext)
           
 void setGenerateChildren(boolean generateChildren)
          Sets whether or not to generate data for children data objects.
 void setNumDataObjects(int numDataObjects)
          Sets the number of data objects to generate.
 
Methods inherited from class thinkui.sqlclient.AbstractSQLClientCommand
canTranslateToDataClass, canTranslateToTableData, filterDataObjects, getDataObjectManager, getMetaDataManager, handleError, isUseApplicationDataObjectManager, postExecute, preExecute, setUseApplicationDataObjectManager, translateToDataClass, translateToTableData, translateToTableData, translateToTableData, translateToTableData
 
Methods inherited from class thinkui.desktop.AbstractSwingCommand
getCommandManager, getDataClass, getLabel, getSelectedObject, getSelectedObjects, setCommandManager, setLabel
 
Methods inherited from class thinkui.command.AbstractCommand
abort, equals, getData, getExecutionState, getInitCommand, getNextCommand, getObjectClassName, isAbortable, isAbortRequested, isEnabled, setAbortRequested, setData, setEnabled, setExecutionState, setInitCommand, setNextCommand
 
Methods inherited from class thinkui.db.AbstractDataObject
clearValue, clearValues, compareTo, copy, copyFrom, copyFrom, copyFrom, copyNonEmptyValuesFrom, getAsString, getAttribute, getBigDecimal, getBigInteger, getBoolean, getCaption, getCharacter, getDate, getInteger, getLong, getModifiedAttrNames, getName, getNumber, getPersistentState, getPrimaryKey, getShort, getString, getTimestamp, getValue, getValuesMap, hashCode, initFrom, initFrom, initFrom, initValue, isAttribute, isModified, isModified, isNew, isOverridden, isReadOnly, isReadOnly, isValueEmpty, isValueSet, override, setModifiedAttrNames, setName, setPersistentState, setReadOnly, setValue, setValuesMap, toString, validate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface thinkui.db.DataObject
clearValue, clearValues, copy, copyFrom, copyFrom, copyFrom, getAsString, getAttribute, getBigDecimal, getBigInteger, getBoolean, getCharacter, getDate, getInteger, getLong, getModifiedAttrNames, getName, getPersistentState, getPrimaryKey, getShort, getString, getTimestamp, getValue, getValuesMap, hashCode, initFrom, initFrom, initFrom, initValue, isAttribute, isModified, isModified, isNew, isOverridden, isReadOnly, isReadOnly, isValueEmpty, isValueSet, override, setModifiedAttrNames, setName, setPersistentState, setReadOnly, setValue, setValuesMap, toString, validate
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface thinkui.common.CaptionSupport
getCaption
 

Constructor Detail

GenerateTableDataCommand

public GenerateTableDataCommand()
GenerateTableDataCommand constructor.

Method Detail

execute

public final java.lang.Object execute(thinkui.command.CommandContext commandContext)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getGenerateChildren

public final boolean getGenerateChildren()
Returns:
whether or not to generate data for children data objects.

getNumDataObjects

public final int getNumDataObjects()
Returns:
the number of data objects to generate.

isPrecondition

public final boolean isPrecondition(thinkui.command.CommandContext commandContext)
Returns:
whether or not the precondition for the command has been met.

setGenerateChildren

public final void setGenerateChildren(boolean generateChildren)
Sets whether or not to generate data for children data objects.


setNumDataObjects

public final void setNumDataObjects(int numDataObjects)
Sets the number of data objects to generate.


ThinkUI SQL Client 1.1.3 API

Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.