CsvType
- Klasse des CSV-Quellobjektespublic abstract class CsvExportTask<CsvType> extends ImmoToolTask<Long,Void>
ImmoToolTask
zum Export von CSV-Tabellen.ImmoToolTask.Adapter, ImmoToolTask.Callback, ImmoToolTask.Listener
SwingWorker.StateValue
Constructor and Description |
---|
CsvExportTask(File csvFile,
Charset csvCharset,
AbstractDbDriver dbDriver) |
Modifier and Type | Method and Description |
---|---|
protected Long |
doInBackground() |
protected Long |
executeExport() |
File |
getCsvFile() |
protected AbstractDbDriver |
getDbDriver() |
protected abstract String |
getFieldTitle(int index) |
protected String[] |
getHeadlineValues() |
protected abstract CsvType[] |
loadCsvObjects() |
protected abstract String[] |
loadEmptyContainer() |
protected void |
writeValue(int field,
String value,
String[] values) |
protected abstract void |
writeValues(CsvType src,
String[] dest) |
addListener, cancelled, checkCancelled, createCallback, done, executeAndWait, executeAndWait, failed, finished, getDescription, getId, getMessage, getParentWindow, getTaskDialog, getTitle, isCancelException, isPending, isStarted, process, propertyChange, removeListener, setDescription, setMessage, setParentWindow, setProgress, setProgress, setProgress, setProgress, setTaskDialog, setTitle, succeeded
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
public CsvExportTask(File csvFile, Charset csvCharset, AbstractDbDriver dbDriver)
protected Long doInBackground() throws Exception
doInBackground
in class ImmoToolTask<Long,Void>
Exception
protected Long executeExport() throws IOException, SQLException
IOException
SQLException
public File getCsvFile()
protected AbstractDbDriver getDbDriver()
protected abstract String getFieldTitle(int index)
protected String[] getHeadlineValues()
protected abstract CsvType[] loadCsvObjects() throws SQLException
SQLException
protected abstract String[] loadEmptyContainer()
Copyright © 2015 OpenEstate. All rights reserved.