Class AbstractBulkImportExcel
java.lang.Object
com.helger.photon.exchange.bulkimport.AbstractBulkImport
com.helger.photon.exchange.bulkimport.AbstractBulkImportExcel
- All Implemented Interfaces:
IBulkImport
Abstract base implementation of a bulk import based on MS Excel files.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBulkImportExcel(int nHeaderRowsToSkip, List<com.helger.commons.text.display.IHasDisplayText> aColumns, EExchangeFileType... aFileTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected static final com.helger.commons.state.ETriStategetCellAsBoolean(int nRowIndex, org.apache.poi.ss.usermodel.Cell aCell, BulkImportResult aRes, Locale aDisplayLocale) protected static final DategetCellAsDate(int nRowIndex, org.apache.poi.ss.usermodel.Cell aCell, BulkImportResult aRes, Locale aDisplayLocale) protected static final IntegergetCellAsInteger(int nRowIndex, org.apache.poi.ss.usermodel.Cell aCell, BulkImportResult aRes, Locale aDisplayLocale) protected static final StringgetCellAsString(org.apache.poi.ss.usermodel.Cell aCell) protected static final StringMethods inherited from class com.helger.photon.exchange.bulkimport.AbstractBulkImport
getColumnCount, getColumnDescriptions, getHeaderRowsToSkip, getSupportedFileTypes, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.photon.exchange.bulkimport.IBulkImport
importObjects
-
Constructor Details
-
AbstractBulkImportExcel
protected AbstractBulkImportExcel(@Nonnegative int nHeaderRowsToSkip, @Nonnull @Nonempty List<com.helger.commons.text.display.IHasDisplayText> aColumns, @Nonnull @Nonempty EExchangeFileType... aFileTypes)
-
-
Method Details
-
getNormalizedString
-
getCellAsString
-
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)
-