Package org.structr.core.graph

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

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.