com.sas.commands.relational
Class ReleaseAllColumnsCommand

com.sas.commands.relational.ReleaseAllColumnsCommand
All Implemented Interfaces:
CommandSupportedInterface, ContentsChangedInterface, DynamicAttributeCommandInterface, BaseEntityInterface, BaseEntityValueInterface, EntityKeyInterface, com.sas.lang.StringDataInterface, com.sas.PublicClonable, com.sas.util.Command, com.sas.util.SimpleCommand, java.lang.Cloneable, java.rmi.Remote

public class ReleaseAllColumnsCommand
implements ContentsChangedInterface, CommandSupportedInterface

This class implements the copy command.


Field Summary
protected  int column
           
protected  HoldInterface hold
           
static java.lang.String RB_KEY
           
 
Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface
COMMAND_NAME_PREFIX
 
Constructor Summary
ReleaseAllColumnsCommand()
          Default constructor
ReleaseAllColumnsCommand(java.lang.String name)
          Constructor that accepts a command name
ReleaseAllColumnsCommand(java.lang.String name, java.lang.String actionClass)
          Constructor that accepts a command name and an action class type
 
Method Summary
 void execute(java.lang.Object o)
          This method implements the execute method on the CommandInterface, which is not implemented by the abstract BaseCommand class
 int getColumn()
           
 java.util.HashMap getEventInfo()
          Returns a Map of event keys to event values.
 java.lang.Object getEventSource()
          Returns the target of this command which is the implicit source of the Event that will be fired due to the changed state of the target.
 HoldInterface getHoldInterface()
           
 boolean isContentsChanged()
          Return a boolean indicating whether the operation carried out during the command's last execution caused the command's target object to change.
 boolean isSupported(ActionSupportFilter actionFilter)
          Returns a boolean indicating whether the command is supported for the area specified on the ActionSupportFilter argument.
 void setColumn(int column)
           
 void setEventSource(java.lang.Object eventSource)
           
 void setHoldInterface(HoldInterface hold)
           
 
Methods inherited from class com.sas.commands.BaseCommand
getLocale, getName, getNextCommandName, getText, isExecutable, isUndoable, setLocale, setName, setText, undo
 
Methods inherited from class com.sas.entities.BaseEntity
clone, containsAttributeNamed, equals, equals, getAttribute, getAttribute, getAttributeCount, getAttributes, getEntityKey, getPropertyDescriptors, getStringAttribute, listAttributeNames, removeAllAttributes, removeAttribute, reset, sameEntity, setAttribute, setAttributes, setEntityKey, toString
 
Methods inherited from interface com.sas.entities.BaseEntityValueInterface
getAttribute, setAttribute
 
Methods inherited from interface com.sas.util.Command
clone
 

Field Detail

RB_KEY

public static final java.lang.String RB_KEY
See Also:
Constant Field Values

hold

protected HoldInterface hold

column

protected int column
Constructor Detail

ReleaseAllColumnsCommand

public ReleaseAllColumnsCommand()
Default constructor


ReleaseAllColumnsCommand

public ReleaseAllColumnsCommand(java.lang.String name)
Constructor that accepts a command name


ReleaseAllColumnsCommand

public ReleaseAllColumnsCommand(java.lang.String name,
                                java.lang.String actionClass)
Constructor that accepts a command name and an action class type

Method Detail

execute

public void execute(java.lang.Object o)
This method implements the execute method on the CommandInterface, which is not implemented by the abstract BaseCommand class

Specified by:
execute in interface com.sas.util.SimpleCommand
Specified by:
execute in class BaseCommand
Parameters:
o - The output stream to which the results of this command should be written.

isContentsChanged

public boolean isContentsChanged()
Description copied from interface: ContentsChangedInterface
Return a boolean indicating whether the operation carried out during the command's last execution caused the command's target object to change.

Specified by:
isContentsChanged in interface ContentsChangedInterface
Returns:
boolean indicating whether the command's target changed.

getEventInfo

public java.util.HashMap getEventInfo()
Description copied from interface: ContentsChangedInterface
Returns a Map of event keys to event values.

The keys and values on the map are dependent on the command and the type of target object that it operates on.

Specified by:
getEventInfo in interface ContentsChangedInterface
Returns:
a Map of event keys to event values.

getEventSource

public java.lang.Object getEventSource()
Description copied from interface: ContentsChangedInterface
Returns the target of this command which is the implicit source of the Event that will be fired due to the changed state of the target.

Specified by:
getEventSource in interface ContentsChangedInterface
Returns:
the target Object of this command.

setEventSource

public void setEventSource(java.lang.Object eventSource)

isSupported

public boolean isSupported(ActionSupportFilter actionFilter)
Returns a boolean indicating whether the command is supported for the area specified on the ActionSupportFilter argument.

Specified by:
isSupported in interface CommandSupportedInterface
Parameters:
actionFilter - The object that describes the current area.
Returns:
a boolean indicating whether the command is supported.
See Also:
BaseAction.setReturnStatus(int)

setHoldInterface

public void setHoldInterface(HoldInterface hold)

getHoldInterface

public HoldInterface getHoldInterface()

setColumn

public void setColumn(int column)

getColumn

public int getColumn()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.