public class DefaultImportProcessor extends Object implements ImportProcessor
| Constructor and Description |
|---|
DefaultImportProcessor() |
public void init(ImpExImportReader reader)
init in interface ImportProcessorprotected ImpExImportCUDHandler createCUDHandler(ImpExImportReader reader)
public ImpExImportCUDHandler getHandlerForLine(ValueLine line)
protected void enableLegacyFlagWhenLineIsUsingJaloOnlyFeatures(ValueLine line)
public ImpExImportReader getReader()
protected void adjustSessionSettings()
protected void restoreSessionSettings()
public Item processItemData(ValueLine valueLine) throws ImpExException
processItemData in interface ImportProcessorImpExExceptionpublic Item processItemData_TX(ValueLine valueLine) throws ImpExException
ImpExExceptionpublic Item processItemData_Impl(ValueLine valueLine) throws ImpExException
ImpExExceptionprotected void assertTargetTypePermitted(HeaderDescriptor header, ComposedType targetType, ValueLine valueLine) throws InsufficientDataException
InsufficientDataExceptionprotected Item processRemoveLine(Collection<Item> existingItems, ValueLine valueLine) throws ImpExException
ImpExExceptionprotected Item processInsertLine(Collection<Item> existingItems, ValueLine valueLine, ComposedType targetType) throws ImpExException
ImpExExceptionprotected Item processInsertLineInternal(Collection<Item> existingItems, ValueLine valueLine, ComposedType targetType) throws ImpExException
ImpExExceptionprotected Item processInsertLine(ValueLine valueLine, HeaderDescriptor header, ComposedType targetType) throws ImpExException
ImpExExceptionprotected void throwImpExOrRuntimeException(Exception e) throws ImpExException
ImpExExceptionprotected void handleExceptionDuringImport(ValueLine valueLine, Exception e, ImpExProcessModeEnum mode, String message) throws ImpExException
ImpExExceptionprotected boolean shouldRetryAfterException(Exception exception, ImpExProcessModeEnum mode)
protected void processUpdateLine(Item item, ValueLine valueLine, HeaderDescriptor header, ComposedType targetType) throws InsufficientDataException, ImpExException
protected void processRemoveLine(Item item, ValueLine valueLine, HeaderDescriptor header) throws ImpExException
ImpExExceptionprotected boolean hasUnresolvedMandatoryOrInitialColumns(Collection<StandardColumnDescriptor> columns, ValueLine valueLine)
protected String getSavedValuesMessage(SavedValues savedValues, Item existingItem, ValueLine valueLine)
protected void processItemRemoval(Item toRemove, ValueLine valueLine) throws ConsistencyCheckException
ConsistencyCheckExceptionprotected void processItemUpdate(Item toUpdate, Map<StandardColumnDescriptor,Object> attributeValueMappings, ValueLine valueLine) throws ImpExException
ImpExExceptionprotected SessionContext getCreationContext(ComposedType targetType, Map<StandardColumnDescriptor,Object> attributeValueMappings, ValueLine valueLine)
protected Item processItemCreation(ComposedType targetType, Map<StandardColumnDescriptor,Object> attributeValueMappings, ValueLine valueLine) throws ImpExException
ImpExExceptionprotected Map<String,Object> translateValueMappings(Item existingItem, Map<StandardColumnDescriptor,Object> attributeValueMappings) throws ImpExException
ImpExException@Deprecated protected boolean isDebugEnabled()
Logger#isDebugEnabled() method direct@Deprecated protected void debug(String msg)
Logger#debug(Object) method directmsg - debug message@Deprecated protected boolean isInfoEnabled()
Logger#isInfoEnabled() method direct@Deprecated protected void info(String msg)
Logger#info(Object) method directmsg - info message@Deprecated protected void warn(String msg)
Logger#warn(Object) method directmsg - warn message@Deprecated protected void error(String msg)
Logger#error(Object) method directmsg - error messageprotected Language getLanguage(StandardColumnDescriptor columnDescriptor) throws InsufficientDataException, HeaderValidationException
protected ValueLineTranslator getValueLineTranslator(ValueLine valueLine)
protected ExistingItemResolver getExistingItemResolver(ValueLine valueLine) throws HeaderValidationException
HeaderValidationExceptionprotected ExistingItemResolver createExistingItemsResolver(HeaderDescriptor header, boolean useCache) throws HeaderValidationException
HeaderValidationExceptionCopyright © 2017 SAP SE. All Rights Reserved.