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

play.db.ebean.orm.TransactionalAction Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2009-2013 Typesafe Inc. 
 */
package play.db.ebean.orm;

import io.ebean.Ebean;
import play.mvc.Action;
import play.mvc.Http.Context;
import play.mvc.Result;

import java.util.concurrent.CompletionStage;

/**
 * Wraps an action in an Ebean transaction.
 *
 * @since 14.11.27
 */
public class TransactionalAction extends Action {

    @Override
    public CompletionStage call(final Context ctx) {
        return Ebean.executeCall(() -> delegate.call(ctx));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy