Class AbstractInsertProcessorSessionExecutionBody<T,X extends SystemException>
- java.lang.Object
-
- de.hybris.platform.servicelayer.session.SessionExecutionBody
-
- de.hybris.platform.impex.session.impl.AbstractInsertProcessorSessionExecutionBody<T,X>
-
- All Implemented Interfaces:
ProcessorSessionExecutionBody
public abstract class AbstractInsertProcessorSessionExecutionBody<T,X extends SystemException> extends SessionExecutionBody implements ProcessorSessionExecutionBody
SpecialSessionExecutionBody
implementation which injects to session a attributes- CoreImpExConstants.CTX_DONT_CHANGE_EXISTING_LINKS -> Boolean.TRUE
- Constants.DISABLE_CYCLIC_CHECKS -> Boolean.TRUE
-
-
Constructor Summary
Constructors Constructor Description AbstractInsertProcessorSessionExecutionBody()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
doProcess()
Place a custom logic to be called inSessionExecutionBody.execute()
.T
execute()
you can override this method if you want to have a resultX
getException()
Hook for a handled checked exception which should be captured (sic!) and rethrow afterSessionExecutionBody.execute()
finishes.protected abstract SessionService
getSessionService()
protected void
prepareSession()
-
Methods inherited from class de.hybris.platform.servicelayer.session.SessionExecutionBody
executeWithoutResult
-
-
-
-
Method Detail
-
getSessionService
protected abstract SessionService getSessionService()
-
doProcess
protected abstract T doProcess() throws X extends SystemException
Place a custom logic to be called inSessionExecutionBody.execute()
.- Throws:
X extends SystemException
-
getException
public final X getException()
Description copied from interface:ProcessorSessionExecutionBody
Hook for a handled checked exception which should be captured (sic!) and rethrow afterSessionExecutionBody.execute()
finishes.- Specified by:
getException
in interfaceProcessorSessionExecutionBody<T>
-
execute
public final T execute()
Description copied from class:SessionExecutionBody
you can override this method if you want to have a result- Overrides:
execute
in classSessionExecutionBody
- Returns:
- the return value of your desire
-
prepareSession
protected void prepareSession()
-
-