Class AbstractBulkImportExcel
- java.lang.Object
-
- com.helger.photon.exchange.bulkimport.AbstractBulkImport
-
- com.helger.photon.exchange.bulkimport.AbstractBulkImportExcel
-
- All Implemented Interfaces:
IBulkImport
public abstract class AbstractBulkImportExcel extends AbstractBulkImport
Abstract base implementation of a bulk import based on MS Excel files.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBulkImportExcel(int nHeaderRowsToSkip, List<com.helger.commons.text.display.IHasDisplayText> aColumns, EExchangeFileType... aFileTypes)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static com.helger.commons.state.ETriStategetCellAsBoolean(int nRowIndex, org.apache.poi.ss.usermodel.Cell aCell, BulkImportResult aRes, Locale aDisplayLocale)protected static DategetCellAsDate(int nRowIndex, org.apache.poi.ss.usermodel.Cell aCell, BulkImportResult aRes, Locale aDisplayLocale)protected static IntegergetCellAsInteger(int nRowIndex, org.apache.poi.ss.usermodel.Cell aCell, BulkImportResult aRes, Locale aDisplayLocale)protected static StringgetCellAsString(org.apache.poi.ss.usermodel.Cell aCell)protected static StringgetNormalizedString(String s)-
Methods inherited from class com.helger.photon.exchange.bulkimport.AbstractBulkImport
getColumnCount, getColumnDescriptions, getHeaderRowsToSkip, getSupportedFileTypes, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.photon.exchange.bulkimport.IBulkImport
importObjects
-
-
-
-
Constructor Detail
-
AbstractBulkImportExcel
protected AbstractBulkImportExcel(@Nonnegative int nHeaderRowsToSkip, @Nonnull @Nonempty List<com.helger.commons.text.display.IHasDisplayText> aColumns, @Nonnull @Nonempty EExchangeFileType... aFileTypes)
-
-
Method Detail
-
getNormalizedString
@Nullable protected static final String getNormalizedString(@Nullable String s)
-
getCellAsString
@Nullable protected static final String getCellAsString(@Nonnull org.apache.poi.ss.usermodel.Cell aCell)
-
getCellAsInteger
@Nullable protected static final Integer getCellAsInteger(@Nonnegative int nRowIndex, @Nonnull org.apache.poi.ss.usermodel.Cell aCell, @Nonnull BulkImportResult aRes, @Nonnull Locale aDisplayLocale)
-
getCellAsDate
@Nullable protected static final Date getCellAsDate(@Nonnegative int nRowIndex, @Nonnull org.apache.poi.ss.usermodel.Cell aCell, @Nonnull BulkImportResult aRes, @Nonnull Locale aDisplayLocale)
-
getCellAsBoolean
@Nonnull protected static final com.helger.commons.state.ETriState getCellAsBoolean(@Nonnegative int nRowIndex, @Nonnull org.apache.poi.ss.usermodel.Cell aCell, @Nonnull BulkImportResult aRes, @Nonnull Locale aDisplayLocale)
-
-