public class ExportCommand extends SQLCommand
EXPORT REPORT_KEY report_key [ADDITIONAL_CRITERIA additional_criteria] [PLUGIN plugin] [ATTRIBUTES attributes] [UPDATE_FIELDS update_fields] [MIME_TYPE mime_type] [STRING_DELIM string_delim] [FILE_NAME file_name] [MAX_TO_EXPORT max_to_export] [FOLDER folder]Usage
-- Simple export -- EXPORT REPORT_KEY 123@2~123@1 -- Export with java plugin to handle special formatting etc-- EXPORT REPORT_KEY 123@2~123@1 PLUGIN_CLASS com.aspc.test.formatReport -- Export that will update a field on each record when imported -- EXPORT REPORT_KEY 123@2~123@1 UPDATE_FIELDS exportedFg|true|exportTime|time.now()THREAD MODE: SINGLE THREADED command
CURSOR_SIZE
Constructor and Description |
---|
ExportCommand(Connection connection,
Pattern pattern)
std.
|
Modifier and Type | Method and Description |
---|---|
protected ExporterWithUpdate |
doExport(ReadOnlyDataSource rds,
Parser p,
DBReport report) |
protected void |
execute(Parser p)
execute the command.
|
protected java.lang.String |
getAttributes(Parser p) |
java.lang.String |
getColumnName(int col)
implements getColumnName of interface CommandBuildResultsPlugin.
|
java.lang.String |
getColumnType(int col)
Gets the column type for the given column index, starting at one
|
protected java.lang.String |
getFileName(Parser p,
java.lang.String mimeType,
DBReport report) |
protected java.lang.String |
getMimeType(Parser p) |
java.lang.String |
getRecordID(int row)
the record ID
|
protected DBReport |
getReport(VirtualDB layer,
Parser p) |
protected boolean |
getShowHeadings(Parser p) |
protected char |
getStringDelim(Parser p) |
protected java.util.Map<java.lang.String,java.lang.String> |
getUpdFields(Parser p) |
java.lang.Object |
getValue(int row,
int col)
the value for this row, column
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnly
execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawTitle
public ExportCommand(Connection connection, Pattern pattern)
connection
- the connectionpattern
- the patternprotected void execute(Parser p) throws java.lang.Exception
protected ExporterWithUpdate doExport(ReadOnlyDataSource rds, Parser p, DBReport report) throws java.lang.Exception
rds
- data sourcep
- the parserreport
- the reportjava.lang.Exception
- a serious problemprotected final java.util.Map<java.lang.String,java.lang.String> getUpdFields(Parser p) throws java.lang.Exception
p
- java.lang.Exception
- a serious problemprotected DBReport getReport(VirtualDB layer, Parser p) throws java.lang.Exception
layer
- p
- java.lang.Exception
- a serious problemprotected java.lang.String getMimeType(Parser p) throws java.lang.Exception
p
- java.lang.Exception
- a serious problemprotected char getStringDelim(Parser p) throws java.lang.Exception
p
- java.lang.Exception
- a serious problemprotected java.lang.String getAttributes(Parser p) throws java.lang.Exception
p
- java.lang.Exception
- a serious problemprotected boolean getShowHeadings(Parser p) throws java.lang.Exception
p
- java.lang.Exception
- a serious problemprotected java.lang.String getFileName(Parser p, java.lang.String mimeType, DBReport report) throws java.lang.Exception
p
- mimeType
- report
- java.lang.Exception
- a serious problempublic java.lang.String getColumnName(int col)
col
- the column number to namepublic java.lang.String getRecordID(int row)
row
- the row indexpublic java.lang.String getColumnType(int col)
col
- the column indexpublic java.lang.Object getValue(int row, int col)
row
- the row indexcol
- the columnstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.