Class RDBPrintTask
- java.lang.Object
-
- org.openforis.concurrency.Worker
-
- org.openforis.concurrency.Task
-
- org.openforis.collect.relational.print.RDBPrintTask
-
- Direct Known Subclasses:
RDBPrintJob.RecordDataPrintTask,RDBPrintJob.ReferenceDataPrintTask,RDBSchemaPrintTask
public abstract class RDBPrintTask extends org.openforis.concurrency.Task- Author:
- S. Ricci
-
-
Field Summary
Fields Modifier and Type Field Description protected RDBPrintJob.RdbDialectdialectprotected RelationalSchemaschemaprotected Writerwriter
-
Constructor Summary
Constructors Constructor Description RDBPrintTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateInternalVariables()protected booleanisSchemaless()voidsetDateTimeFormat(String dateTimeFormat)voidsetDialect(RDBPrintJob.RdbDialect dialect)voidsetSchema(RelationalSchema schema)voidsetWriter(Writer writer)protected voidwriteBatchInsert(Table<?> table, DataExtractor extractor)-
Methods inherited from class org.openforis.concurrency.Task
beforeExecuteInternal, countTotalItems, getProcessedItems, getProgressPercent, getRemainingItems, getSkippedItems, getTotalItems, incrementProcessedItems, incrementSkippedItems, setProcessedItems, setTotalItems
-
Methods inherited from class org.openforis.concurrency.Worker
abort, addStatusChangeListener, afterExecute, afterExecuteInternal, beforeExecute, changeStatus, destroy, execute, getDuration, getEndTime, getErrorMessage, getErrorMessageArgs, getId, getLastException, getName, getStartTime, getStatus, getWeight, initialize, initializeInternalVariables, isAborted, isCompleted, isEnded, isFailed, isPending, isRunning, logDebug, logError, logInfo, logWarning, notifyAllStatusChangeListeners, onAborted, onCompleted, onEnd, onFailed, release, removeStatusChangeListener, run, setErrorMessage, setErrorMessageArgs, setLastException, setWeight, validateInput, waitFor
-
-
-
-
Field Detail
-
schema
protected RelationalSchema schema
-
writer
protected Writer writer
-
dialect
protected RDBPrintJob.RdbDialect dialect
-
-
Method Detail
-
createInternalVariables
protected void createInternalVariables() throws Throwable- Overrides:
createInternalVariablesin classorg.openforis.concurrency.Worker- Throws:
Throwable
-
writeBatchInsert
protected void writeBatchInsert(Table<?> table, DataExtractor extractor) throws IOException
- Throws:
IOException
-
isSchemaless
protected boolean isSchemaless()
-
setWriter
public void setWriter(Writer writer)
-
setSchema
public void setSchema(RelationalSchema schema)
-
setDialect
public void setDialect(RDBPrintJob.RdbDialect dialect)
-
setDateTimeFormat
public void setDateTimeFormat(String dateTimeFormat)
-
-