public class ExportStdNew extends InterruptibleProcess
ImportStd
Modifier and Type | Field and Description |
---|---|
protected AliveConfirmer |
aliveConfirmer |
protected int |
exportedColumns |
protected java.lang.String |
fileName |
protected java.io.FileWriter |
fileWriter |
protected DataObject |
mainDataObject |
sessionResources
Constructor and Description |
---|
ExportStdNew(AliveConfirmer aliveConfirmer,
DataObject mainDataObject,
java.util.Vector<java.lang.String> columnsToExport,
java.lang.String fileName)
Constructs a new ExportStd.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addField(java.lang.StringBuffer line,
java.lang.String columnName) |
protected void |
addValue(java.lang.StringBuffer line,
java.lang.String value) |
protected void |
exportRow() |
void |
processExport() |
void |
setFieldSelection(java.lang.String fieldSelection)
Sets the field selection.
|
void |
setWhereCondition(java.lang.String whereCondition) |
protected void |
writeColumnHeader() |
getConflictInfos, hasConflict, isToRun, setAliveConfirmer, setConflictInfo, setConflictInfo, setStatusInfoPresenter, setStatusInformation
protected DataObject mainDataObject
protected AliveConfirmer aliveConfirmer
protected java.lang.String fileName
protected java.io.FileWriter fileWriter
protected int exportedColumns
public ExportStdNew(AliveConfirmer aliveConfirmer, DataObject mainDataObject, java.util.Vector<java.lang.String> columnsToExport, java.lang.String fileName)
aliveConfirmer
- the alive confirmer to interrupt the process.mainDataObject
- the main source data objectcolumnsToExport
- the columns to exportfileName
- the name of the target filepublic void setFieldSelection(java.lang.String fieldSelection)
fieldSelection
- the field select to use instead of "*";public void setWhereCondition(java.lang.String whereCondition)
public void processExport() throws java.io.IOException
java.io.IOException
protected void writeColumnHeader() throws java.io.IOException
java.io.IOException
protected void exportRow() throws java.io.IOException
java.io.IOException
protected void addField(java.lang.StringBuffer line, java.lang.String columnName)
protected void addValue(java.lang.StringBuffer line, java.lang.String value)
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de