|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.domain.geoloc.importer.AbstractGeonamesProcessor
com.gisgraphy.domain.geoloc.importer.GeonamesAlternateNamesImporter
public class GeonamesAlternateNamesImporter
Import the Alternate names.
Field Summary |
---|
Fields inherited from class com.gisgraphy.domain.geoloc.importer.AbstractGeonamesProcessor |
---|
COMMENT_START, currentFile, importerConfig, in, logger, readFileLine, statusMessage, totalReadLine |
Constructor Summary | |
---|---|
GeonamesAlternateNamesImporter()
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 |
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 |
setAlternateNameDao(IAlternateNameDao alternateNameDao)
|
void |
setCityDao(ICityDao cityDao)
|
protected void |
setCommitFlushMode()
Will flush after every commit |
void |
setGisFeatureDao(IGisFeatureDao gisFeatureDao)
|
void |
setSolRSynchroniser(ISolRSynchroniser solRSynchroniser)
|
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. |
Methods inherited from class com.gisgraphy.domain.geoloc.importer.AbstractGeonamesProcessor |
---|
checkNumberOfColumn, countLines, dumpFields, getCurrentFileName, getMaxInsertsBeforeFlush, getNumberOfLinesToProcess, getReadFileLine, getStatus, getStatusMessage, getTotalReadLine, isEmptyField, isEndOfDocument, process, readLineAndProcessData, resetStatusFields, setImporterConfig, setTransactionManager, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeonamesAlternateNamesImporter()
Method Detail |
---|
protected void processData(java.lang.String line)
AbstractGeonamesProcessor
processData
in class AbstractGeonamesProcessor
line
- the line to processprotected boolean shouldIgnoreFirstLine()
AbstractGeonamesProcessor
shouldIgnoreFirstLine
in class AbstractGeonamesProcessor
protected boolean shouldIgnoreComments()
AbstractGeonamesProcessor
shouldIgnoreComments
in class AbstractGeonamesProcessor
AbstractGeonamesProcessor.COMMENT_START
protected void setCommitFlushMode()
AbstractGeonamesProcessor
setCommitFlushMode
in class AbstractGeonamesProcessor
AbstractGeonamesProcessor.flushAndClear()
protected void flushAndClear()
AbstractGeonamesProcessor
flushAndClear
in class AbstractGeonamesProcessor
protected int getNumberOfColumns()
getNumberOfColumns
in class AbstractGeonamesProcessor
protected void tearDown()
AbstractGeonamesProcessor
tearDown
in class AbstractGeonamesProcessor
public void setAlternateNameDao(IAlternateNameDao alternateNameDao)
alternateNameDao
- The alternateDao to setpublic void setGisFeatureDao(IGisFeatureDao gisFeatureDao)
gisFeatureDao
- The GisFeatureDao to setpublic void setCityDao(ICityDao cityDao)
cityDao
- The cityDao to setprotected java.io.File[] getFiles()
getFiles
in class AbstractGeonamesProcessor
ImporterHelper
public void setSolRSynchroniser(ISolRSynchroniser solRSynchroniser)
solRSynchroniser
- the solRSynchroniser to setpublic java.util.List<NameValueDTO<java.lang.Integer>> rollback()
IGeonamesProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |