|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.domain.geoloc.importer.AbstractImporterProcessor
com.gisgraphy.domain.geoloc.importer.GeonamesAdm4Importer
public class GeonamesAdm4Importer
Import the Adm of level 4 file. It is the first step of the adm4 import
process, the import will be complete when all the datastore object will be
updated by the GeonamesFeatureImporter
| Field Summary |
|---|
| Fields inherited from class com.gisgraphy.domain.geoloc.importer.AbstractImporterProcessor |
|---|
COMMENT_START, currentFile, importerConfig, in, internationalisationService, logger, readFileLine, status, statusMessage, totalReadLine, transactionManager |
| Constructor Summary | |
|---|---|
GeonamesAdm4Importer()
Default constructor |
|
| Method Summary | |
|---|---|
protected void |
flushAndClear()
Should flush and clear all the Daos that are used by the processor. |
protected java.io.File[] |
getFiles()
|
protected int |
getMaxInsertsBeforeFlush()
|
protected int |
getNumberOfColumns()
|
protected void |
processData(java.lang.String line)
Process a read line of the geonames file, must be implemented by the concrete class |
java.util.List<NameValueDTO<java.lang.Integer>> |
rollback()
/! |
void |
setAdmDao(IAdmDao admDao)
|
protected void |
setCommitFlushMode()
Will flush after every commit |
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 |
| Methods inherited from class com.gisgraphy.domain.geoloc.importer.AbstractImporterProcessor |
|---|
checkNumberOfColumn, countLines, dumpFields, getCurrentFileName, getNumberOfLinesToProcess, getReadFileLine, getStatus, getStatusMessage, getTotalReadLine, isEmptyField, isEndOfDocument, process, readLineAndProcessData, resetStatus, setImporterConfig, setInternationalisationService, setTransactionManager, setup, tearDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeonamesAdm4Importer()
| Method Detail |
|---|
protected void processData(java.lang.String line)
AbstractImporterProcessor
processData in class AbstractImporterProcessorline - the line to processpublic boolean shouldBeSkipped()
shouldBeSkipped in interface IImporterProcessorshouldBeSkipped in class AbstractImporterProcessorprotected boolean shouldIgnoreFirstLine()
AbstractImporterProcessor
shouldIgnoreFirstLine in class AbstractImporterProcessorprotected boolean shouldIgnoreComments()
AbstractImporterProcessor
shouldIgnoreComments in class AbstractImporterProcessorAbstractImporterProcessor.COMMENT_STARTprotected void setCommitFlushMode()
AbstractImporterProcessor
setCommitFlushMode in class AbstractImporterProcessorAbstractImporterProcessor.flushAndClear()protected void flushAndClear()
AbstractImporterProcessor
flushAndClear in class AbstractImporterProcessorprotected int getNumberOfColumns()
getNumberOfColumns in class AbstractImporterProcessorpublic void setAdmDao(IAdmDao admDao)
admDao - The admDao to setprotected java.io.File[] getFiles()
getFiles in class AbstractImporterProcessorImporterHelperprotected int getMaxInsertsBeforeFlush()
getMaxInsertsBeforeFlush in class AbstractImporterProcessorImporterConfig.setMaxInsertsBeforeFlush(int)public java.util.List<NameValueDTO<java.lang.Integer>> rollback()
IImporterProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||