All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.unterrainer.commons.httpserver.extensions.delegates.PreInsertAsync Maven / Gradle / Ivy

There is a newer version: 0.3.14
Show newest version
package info.unterrainer.commons.httpserver.extensions.delegates;

import info.unterrainer.commons.httpserver.extensions.AsyncExtensionContext;
import info.unterrainer.commons.rdbutils.entities.BasicJpa;
import info.unterrainer.commons.serialization.jsons.BasicJson;

public interface PreInsertAsync

{ /** * Allows you to execute code before insertion of an item. *

* Since this is asynchronous changing the DTOs will do nothing (runs in * parallel and the action probably already happened when your code is * executed). * * @param asyncCtx a context containing values that have been mapped using * AsyncExtensionContextMappers * @param receivedJson the JSON that was received in the HTTP call * @param resultJpa the JPA that was generated and is about to be inserted */ void handle(AsyncExtensionContext asyncCtx, J receivedJson, P resultJpa); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy