public class DefaultImpExImportCUDHandler extends java.lang.Object implements ImpExImportCUDHandler
ImpExImportProcessorCUD interface. This implementation holds legacy way of
importing items with usage of Jalo layer.| Constructor and Description |
|---|
DefaultImpExImportCUDHandler(ImpExImportReader reader) |
| Modifier and Type | Method and Description |
|---|---|
Item |
create(ComposedType targetType,
java.util.Map<java.lang.String,java.lang.Object> values,
ValueLine valueLine)
Process creation of new item.
|
void |
delete(Item toRemove,
ValueLine valueLine)
Process delete operation.
|
protected Item |
doCreate(ComposedType targetType,
java.util.Map<java.lang.String,java.lang.Object> values,
ValueLine valueLine) |
protected void |
doRemove(Item toRemove)
Do remove operation on passed as parameter item.
|
protected void |
doUpdate(Item toUpdate,
java.util.Map<java.lang.String,java.lang.Object> values,
ValueLine valueLine)
Do update operation on passed as parameter item.
|
protected void |
doUpdateReadOnlyAttributes(Item toUpdate,
java.util.Map<java.lang.String,java.lang.Object> values,
ValueLine valueLine)
Updates all attributes which are read-only but having an force write option manually (because they can not be
processed by setAllAttributes).
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getSessionParameters(ValueLine valueLine) |
void |
update(Item toUpdate,
java.util.Map<java.lang.String,java.lang.Object> values,
ValueLine valueLine)
Process update operation.
|
public DefaultImpExImportCUDHandler(ImpExImportReader reader)
public void delete(Item toRemove, ValueLine valueLine) throws ConsistencyCheckException
ImpExImportCUDHandlerdelete in interface ImpExImportCUDHandlertoRemove - Item to removevalueLine - the value lineConsistencyCheckException - the consistency check exceptionprotected void doRemove(Item toRemove) throws ConsistencyCheckException
toRemove - Item to removeConsistencyCheckException - the consistency check exceptionpublic void update(Item toUpdate, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
ImpExImportCUDHandlerupdate in interface ImpExImportCUDHandlertoUpdate - Item to updatevalues - the map of Item values where key is attribute name and value is new value to updatevalueLine - the value lineImpExException - the ImpEx exceptionprotected void doUpdateReadOnlyAttributes(Item toUpdate, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
toUpdate - the to updatevalues - the valuesImpExExceptionprotected void doUpdate(Item toUpdate, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
toUpdate - the to updatevalues - the valuesvalueLine - the value lineImpExException - the imp ex exceptionpublic Item create(ComposedType targetType, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
ImpExImportCUDHandlercreate in interface ImpExImportCUDHandlertargetType - the target typevalues - the map of valuesvalueLine - the value lineImpExException - the ImpEx exceptionprotected java.util.Map<java.lang.String,java.lang.Object> getSessionParameters(ValueLine valueLine)
protected Item doCreate(ComposedType targetType, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
ImpExExceptionCopyright © 2018 SAP SE. All Rights Reserved.