public class AdmExtracter extends AbstractSimpleImporterProcessor
COMMENT_START, currentFile, importerConfig, in, internationalisationService, logger, readFileLine, status, statusMessage, totalReadLine, transactionManager, txDefinition, txStatus| Constructor and Description |
|---|
AdmExtracter()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushAndClear()
Should flush and clear all the Daos that are used by the processor.
|
protected File[] |
getFiles() |
protected int |
getNumberOfColumns() |
protected void |
processData(String line)
Process a read line of the geonames file, must be implemented by the
concrete class
|
List<NameValueDTO<Integer>> |
rollback()
/!
|
protected void |
setCommitFlushMode()
Will flush after every commit
|
void |
setup()
Template method that can be override.
|
boolean |
shouldBeSkipped() |
protected boolean |
shouldIgnoreComments()
Whether the filter should ignore the comments (i.e. lines starting with #)
|
protected boolean |
shouldIgnoreFirstLine()
Template Method : Whether the processor should ignore the first line of
the input
|
protected void |
tearDown()
Template method that can be override.
|
checkNumberOfColumn, commit, countLines, decrementReadedFileLine, dumpFields, getCurrentFileName, getMaxInsertsBeforeFlush, getNumberOfLinesToProcess, getReadFileLine, getStatus, getStatusMessage, getTotalReadLine, incrementReadedFileLine, isEmptyField, isEndOfDocument, needCommit, onFileProcessed, process, processError, readLineAndProcessData, resetStatus, rollbackTransaction, setImporterConfig, setInternationalisationService, setTransactionManager, startTransactionprotected void processData(String line)
AbstractSimpleImporterProcessorprocessData in class AbstractSimpleImporterProcessorline - the line to processpublic boolean shouldBeSkipped()
shouldBeSkipped in interface IImporterProcessorshouldBeSkipped in class AbstractSimpleImporterProcessorprotected void tearDown()
AbstractSimpleImporterProcessortearDown in class AbstractSimpleImporterProcessorpublic void setup()
AbstractSimpleImporterProcessorsetup in class AbstractSimpleImporterProcessorprotected boolean shouldIgnoreFirstLine()
AbstractSimpleImporterProcessorshouldIgnoreFirstLine in class AbstractSimpleImporterProcessorprotected boolean shouldIgnoreComments()
AbstractSimpleImporterProcessorshouldIgnoreComments in class AbstractSimpleImporterProcessorAbstractSimpleImporterProcessor.COMMENT_STARTprotected void setCommitFlushMode()
AbstractSimpleImporterProcessorsetCommitFlushMode in class AbstractSimpleImporterProcessorAbstractSimpleImporterProcessor.flushAndClear()protected void flushAndClear()
AbstractSimpleImporterProcessorflushAndClear in class AbstractSimpleImporterProcessorprotected int getNumberOfColumns()
getNumberOfColumns in class AbstractSimpleImporterProcessorprotected File[] getFiles()
getFiles in class AbstractSimpleImporterProcessorImporterHelperpublic List<NameValueDTO<Integer>> rollback()
IImporterProcessorCopyright © 2015. All rights reserved.