com.sas.servlet.commands.olap.export
Class BaseOLAPExportCommand

com.sas.servlet.commands.olap.export.BaseOLAPExportCommand
All Implemented Interfaces:
DynamicAttributeCommandInterface, OLAPExportCommandInterface, OLAPExportCommandV2Interface, BaseEntityInterface, BaseEntityValueInterface, EntityKeyInterface, com.sas.lang.StringDataInterface, com.sas.PublicClonable, com.sas.util.Command, com.sas.util.SimpleCommand, java.lang.Cloneable, java.rmi.Remote
Direct Known Subclasses:
OLAPExportToCSVCommand, OLAPExportToExcelXMLCommand, OLAPExportToHTMLCommand, OLAPExportToTabSeparatedCommand

public abstract class BaseOLAPExportCommand
implements OLAPExportCommandV2Interface

Base class for the commands that export multidimensional data.

Since:
3.1

Field Summary
 
Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface
COMMAND_NAME_PREFIX
 
Constructor Summary
BaseOLAPExportCommand()
           
 
Method Summary
 void execute(int startRow, int nRows, boolean isRawData, boolean repeatLabels)
          Executes the command
 void execute(int startRow, int nRows, boolean isRawData, boolean repeatLabels, java.lang.String[] headers, java.lang.String[] footers)
          Executes the command
 void execute(java.lang.Object o)
          Executes the command.
abstract  void execute(java.lang.Object o, int startRow, int nRows, boolean isRawData, boolean repeatLabels)
          Executes the command
abstract  void execute(java.lang.Object out, int startRow, int nRows, boolean isRawData, boolean repeatLabels, java.lang.String[] headers, java.lang.String[] footers)
          Executes the command
 
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
 

Constructor Detail

BaseOLAPExportCommand

public BaseOLAPExportCommand()
Method Detail

execute

public void execute(java.lang.Object o)
Executes the command.

Specified by:
execute in interface com.sas.util.SimpleCommand
Specified by:
execute in class BaseCommand
Parameters:
o - The output object where to write the exported data to (example a ServletResponse or a Writer)

execute

public abstract void execute(java.lang.Object o,
                             int startRow,
                             int nRows,
                             boolean isRawData,
                             boolean repeatLabels)
Description copied from interface: OLAPExportCommandInterface
Executes the command

Specified by:
execute in interface OLAPExportCommandInterface
Parameters:
o - the output object where to write the exported data to (example a ServletResponse or a Writer)
startRow - the index (in the model) of the first row of data to export
nRows - the number of rows of data to export
isRawData - true if non formatted data have to be exported, false if formatted data have to be exported
repeatLabels - true if the row labels have to be repeated in the exported stream when the OLAP model is expanded, false otherwise

execute

public void execute(int startRow,
                    int nRows,
                    boolean isRawData,
                    boolean repeatLabels)
Description copied from interface: OLAPExportCommandInterface
Executes the command

Specified by:
execute in interface OLAPExportCommandInterface
Parameters:
startRow - the index (in the model) of the first row of data to export
nRows - the number of rows of data to export
isRawData - true if non formatted data have to be exported, false if formatted data have to be exported
repeatLabels - true if the row labels have to be repeated in the exported stream when the OLAP model is expanded, false otherwise

execute

public void execute(int startRow,
                    int nRows,
                    boolean isRawData,
                    boolean repeatLabels,
                    java.lang.String[] headers,
                    java.lang.String[] footers)
Description copied from interface: OLAPExportCommandV2Interface
Executes the command

Specified by:
execute in interface OLAPExportCommandV2Interface
Parameters:
startRow - the index (in the model) of the first row of data to export
nRows - the number of rows of data to export
isRawData - true if non formatted data have to be exported, false if formatted data have to be exported
repeatLabels - true if the row labels have to be repeated in the exported stream when the OLAP model is expanded, false otherwise
headers - the headers to export above the data, each header on a separate row
footers - the footers to export below the data, each footer on a separate row

execute

public abstract void execute(java.lang.Object out,
                             int startRow,
                             int nRows,
                             boolean isRawData,
                             boolean repeatLabels,
                             java.lang.String[] headers,
                             java.lang.String[] footers)
Description copied from interface: OLAPExportCommandV2Interface
Executes the command

Specified by:
execute in interface OLAPExportCommandV2Interface
Parameters:
out - the output object where to write the exported data to (example a ServletResponse or a Writer)
startRow - the index (in the model) of the first row of data to export
nRows - the number of rows of data to export
isRawData - true if non formatted data have to be exported, false if formatted data have to be exported
repeatLabels - true if the row labels have to be repeated in the exported stream when the OLAP model is expanded, false otherwise
headers - the headers to export above the data, each header on a separate row
footers - the footers to export below the data, each footer on a separate row



Copyright © 2009 SAS Institute Inc. All Rights Reserved.