Examples of requiresEnclosingTransaction()


Examples of org.structr.core.graph.MaintenanceCommand.requiresEnclosingTransaction()

            app.processTasks(task);

          } else if (MaintenanceCommand.class.isAssignableFrom(taskOrCommand)) {

            MaintenanceCommand cmd = (MaintenanceCommand)StructrApp.getInstance(securityContext).command(taskOrCommand);
            if (cmd.requiresEnclosingTransaction()) {

              try (final Tx tx = app.tx()) {

                cmd.execute(propertySet);
                tx.success();
View Full Code Here

Examples of org.structr.websocket.command.AbstractCommand.requiresEnclosingTransaction()

        abstractCommand.setIdProperty(idProperty);

        // The below blocks allow a websocket command to manage its own
        // transactions in case of bulk processing commands etc.

        if (abstractCommand.requiresEnclosingTransaction()) {

          try (final Tx tx = app.tx()) {

            // store authenticated-Flag in webSocketData
            // so the command can access it
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.