|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.importer.AbstractSimpleImporterProcessor
com.gisgraphy.importer.GeonamesAlternateNamesSimpleImporter
public class GeonamesAlternateNamesSimpleImporter
Import the Alternate names.
| Field Summary | |
|---|---|
protected IAdmDao |
admDao
|
protected IAlternateNameDao |
alternateNameDao
|
protected ICityDao |
cityDao
|
protected IGisFeatureDao |
gisFeatureDao
|
protected ISolRSynchroniser |
solRSynchroniser
|
protected ISpellCheckerIndexer |
spellCheckerIndexer
|
| Fields inherited from class com.gisgraphy.importer.AbstractSimpleImporterProcessor |
|---|
COMMENT_START, currentFile, importerConfig, in, internationalisationService, logger, readFileLine, status, statusMessage, totalReadLine, transactionManager, txDefinition, txStatus |
| Constructor Summary | |
|---|---|
GeonamesAlternateNamesSimpleImporter()
Default constructor |
|
| Method Summary | |
|---|---|
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()
/! |
void |
setAdmDao(IAdmDao admDao)
|
void |
setAlternateNameDao(IAlternateNameDao alternateNameDao)
|
void |
setCityDao(ICityDao cityDao)
|
protected void |
setCommitFlushMode()
Will flush after every commit |
void |
setGisFeatureDao(IGisFeatureDao gisFeatureDao)
|
void |
setSolRSynchroniser(ISolRSynchroniser solRSynchroniser)
|
void |
setSpellCheckerIndexer(ISpellCheckerIndexer spellCheckerIndexer)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IGisFeatureDao gisFeatureDao
protected ICityDao cityDao
protected IAdmDao admDao
protected IAlternateNameDao alternateNameDao
protected ISolRSynchroniser solRSynchroniser
protected ISpellCheckerIndexer spellCheckerIndexer
| Constructor Detail |
|---|
public GeonamesAlternateNamesSimpleImporter()
| Method Detail |
|---|
protected void processData(String line)
AbstractSimpleImporterProcessor
processData in class AbstractSimpleImporterProcessorline - the line to processprotected boolean shouldIgnoreFirstLine()
AbstractSimpleImporterProcessor
shouldIgnoreFirstLine in class AbstractSimpleImporterProcessorprotected boolean shouldIgnoreComments()
AbstractSimpleImporterProcessor
shouldIgnoreComments in class AbstractSimpleImporterProcessorAbstractSimpleImporterProcessor.COMMENT_STARTprotected void setCommitFlushMode()
AbstractSimpleImporterProcessor
setCommitFlushMode in class AbstractSimpleImporterProcessorAbstractSimpleImporterProcessor.flushAndClear()protected void flushAndClear()
AbstractSimpleImporterProcessor
flushAndClear in class AbstractSimpleImporterProcessorprotected int getNumberOfColumns()
getNumberOfColumns in class AbstractSimpleImporterProcessorprotected void tearDown()
AbstractSimpleImporterProcessor
tearDown in class AbstractSimpleImporterProcessorpublic 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 setpublic void setAdmDao(IAdmDao admDao)
admDao - the admDao to setpublic boolean shouldBeSkipped()
shouldBeSkipped in interface IImporterProcessorshouldBeSkipped in class AbstractSimpleImporterProcessorprotected File[] getFiles()
getFiles in class AbstractSimpleImporterProcessorImporterHelperpublic void setSolRSynchroniser(ISolRSynchroniser solRSynchroniser)
solRSynchroniser - the solRSynchroniser to setpublic void setSpellCheckerIndexer(ISpellCheckerIndexer spellCheckerIndexer)
spellCheckerIndexer - the spellCheckerIndexer to setpublic List<NameValueDTO<Integer>> rollback()
IImporterProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||