org.gcube.contentmanagement.codelistmanager.util.csv
Class ImportLineProcessor

java.lang.Object
  extended by org.gcube.contentmanagement.codelistmanager.util.csv.ImportLineProcessor
All Implemented Interfaces:
net.sf.csv4j.CSVLineProcessor

public class ImportLineProcessor
extends Object
implements net.sf.csv4j.CSVLineProcessor

Author:
lucio

Field Summary
protected  org.gcube.common.dbinterface.queries.Insert insertValues
           
protected  org.gcube.common.dbinterface.pool.DBSession session
           
 
Constructor Summary
ImportLineProcessor()
           
 
Method Summary
 boolean continueProcessing()
           
 int getImportedLines()
           
 void processDataLine(int lineNumber, List<String> fields)
           
 void processHeaderLine(int arg0, List<String> arg1)
           
 void setEvent(ProgresChangedEvent event)
           
 void setTable(org.gcube.common.dbinterface.tables.SimpleTable table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insertValues

protected org.gcube.common.dbinterface.queries.Insert insertValues

session

protected org.gcube.common.dbinterface.pool.DBSession session
Constructor Detail

ImportLineProcessor

public ImportLineProcessor()
Method Detail

setTable

public void setTable(org.gcube.common.dbinterface.tables.SimpleTable table)
Parameters:
table - the table to set

setEvent

public void setEvent(ProgresChangedEvent event)
Parameters:
event - the event to set

continueProcessing

public boolean continueProcessing()
Specified by:
continueProcessing in interface net.sf.csv4j.CSVLineProcessor

processDataLine

public void processDataLine(int lineNumber,
                            List<String> fields)
Specified by:
processDataLine in interface net.sf.csv4j.CSVLineProcessor

processHeaderLine

public void processHeaderLine(int arg0,
                              List<String> arg1)
Specified by:
processHeaderLine in interface net.sf.csv4j.CSVLineProcessor

getImportedLines

public int getImportedLines()
Returns:
the importedLines


Copyright © 2013. All Rights Reserved.