public abstract class AbstractInsertProcessorSessionExecutionBody<T,X extends SystemException> extends SessionExecutionBody implements ProcessorSessionExecutionBody
SessionExecutionBody implementation which injects to session a attributes
| Constructor and Description |
|---|
AbstractInsertProcessorSessionExecutionBody() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
doProcess()
Place a custom logic to be called in
SessionExecutionBody.execute(). |
T |
execute()
you can override this method if you want to have a result
|
X |
getException()
Hook for a handled checked exception which should be captured (sic!) and rethrow after
SessionExecutionBody.execute() finishes. |
protected abstract SessionService |
getSessionService() |
protected void |
prepareSession() |
executeWithoutResultpublic AbstractInsertProcessorSessionExecutionBody()
protected abstract SessionService getSessionService()
protected abstract T doProcess() throws X extends SystemException
SessionExecutionBody.execute().X extends SystemExceptionpublic final X getException()
ProcessorSessionExecutionBodySessionExecutionBody.execute() finishes.getException in interface ProcessorSessionExecutionBodypublic final T execute()
SessionExecutionBodyexecute in class SessionExecutionBodyprotected void prepareSession()
Copyright © 2018 SAP SE. All Rights Reserved.