com.agimatec.utility.fileimport
Class ImporterProcessor
java.lang.Object
com.agimatec.utility.fileimport.ImporterProcessor
- Direct Known Subclasses:
- LineImportProcessor, XmlImportProcessor
public abstract class ImporterProcessor
- extends Object
Description: common implementation to do the import process
User: roman.stumm
Date: 22.11.2007
Time: 11:56:47
Copyright: Agimatec GmbH
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
importer
protected final Importer importer
errorCount
protected int errorCount
rowCount
protected int rowCount
cancelled
protected boolean cancelled
lastError
protected Object lastError
ImporterProcessor
protected ImporterProcessor(Importer importer)
getSpec
protected abstract ImporterSpec getSpec()
getImporter
public Importer getImporter()
isCancelled
public boolean isCancelled()
getErrorCount
public int getErrorCount()
getRowCount
public int getRowCount()
getLastError
public Object getLastError()
setLastError
public void setLastError(Object lastError)
getErrorWriter
public Writer getErrorWriter()
throws IOException
- Throws:
IOException
setErrorWriter
public void setErrorWriter(Writer aErrorWriter)
log
public void log(Object obj)
importFrom
protected void importFrom(Closeable aReader)
setCancelled
public void setCancelled(boolean cancelled)
logFinished
protected void logFinished()
release
public void release()
handleException
protected void handleException(Exception ex)
throws ImporterException
- Throws:
ImporterException
handleRowException
protected void handleRowException(Exception iex,
Object aLine)
- overwrite in subclasses for different exception handling
Copyright © 2008-2011. All Rights Reserved.