Examples of IAdHocTransactionService


Examples of org.libreplan.business.common.IAdHocTransactionService

        this.planningStateCreator = planningStateCreator;
        this.resourcesSearcher = resourcesSearcher;
    }

    List<TaskElement> getCriticalPath(final Order order, final Desktop desktop) {
        IAdHocTransactionService transactionService = Registry
                .getTransactionService();
        return transactionService
                .runOnReadOnlyTransaction(new IOnTransaction<List<TaskElement>>() {
                    @Override
                    public List<TaskElement> execute() {
                        PlanningState state = retrieveOrCreate();
                        return criticalPathFor(state, resourcesSearcher);
View Full Code Here

Examples of org.libreplan.business.common.IAdHocTransactionService

                planningStateCreator, resourcesSearcher);
        return builder.getCriticalPath(order, desktop);
    }

    PlanningState getPlanningState(final Order order, final Desktop desktop) {
        IAdHocTransactionService transactionService = Registry
                .getTransactionService();
        return transactionService
                .runOnReadOnlyTransaction(new IOnTransaction<PlanningState>() {
                    @Override
                    public PlanningState execute() {
                        return planningStateCreator.retrieveOrCreate(desktop,
                                order);
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.