Examples of TransactionalClosureAbstract


Examples of org.apache.isis.core.runtime.system.transaction.TransactionalClosureAbstract

    // //////////////////////////////////////

   
    private void execute(final IsisTransactionManager transactionManager, final Command command) {
        transactionManager.executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                commandContext.setCommand(command);
                try {
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.TransactionalClosureAbstract

     * transaction handling.
     */
    protected void doExecute(final Object context) {
        final PersistenceSession persistenceSession = getPersistenceSession();
        final IsisTransactionManager transactionManager = getTransactionManager(persistenceSession);
        transactionManager.executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                doExecuteWithTransaction(context);
            }
        });
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.TransactionalClosureAbstract

        if (adapter.isTransient()) {
            // NOT !adapter.isPersistent();
            // (value adapters are neither persistent or transient)
            underlyingFacet.clearProperty(adapter);
        } else {
            getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
                @Override
                public void execute() {
                    underlyingFacet.clearProperty(adapter);
                }
            });
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.TransactionalClosureAbstract

        if (adapter.isTransient()) {
            // NOT !adapter.isPersistent();
            // (value adapters are neither persistent or transient)
            underlyingFacet.setProperty(adapter, referencedAdapter);
        } else {
            getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
                @Override
                public void execute() {
                    underlyingFacet.setProperty(adapter, referencedAdapter);
                }
            });
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.transaction.TransactionalClosureAbstract

        if (adapter.isTransient()) {
            // NOT !adapter.isPersistent();
            // (value adapters are neither persistent or transient)
            underlyingFacet.add(adapter, referencedAdapter);
        } else {
            getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
                @Override
                public void execute() {
                    underlyingFacet.add(adapter, referencedAdapter);
                }
            });
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.transaction.TransactionalClosureAbstract

        if (adapter.isTransient()) {
            // NOT !adapter.isPersistent();
            // (value adapters are neither persistent or transient)
            underlyingFacet.clear(adapter);
        } else {
            getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
                @Override
                public void execute() {
                    underlyingFacet.clear(adapter);
                }
            });
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.transaction.TransactionalClosureAbstract

        if (adapter.isTransient()) {
            // NOT !adapter.isPersistent();
            // (value adapters are neither persistent or transient)
            underlyingFacet.clearProperty(adapter);
        } else {
            getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
                @Override
                public void execute() {
                    underlyingFacet.clearProperty(adapter);
                }
            });
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.transaction.TransactionalClosureAbstract

        if (adapter.isTransient()) {
            // NOT !adapter.isPersistent();
            // (value adapters are neither persistent or transient)
            underlyingFacet.remove(adapter, referencedAdapter);
        } else {
            getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
                @Override
                public void execute() {
                    underlyingFacet.remove(adapter, referencedAdapter);
                }
            });
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.transaction.TransactionalClosureAbstract

        if (adapter.isTransient()) {
            // NOT !adapter.isPersistent();
            // (value adapters are neither persistent or transient)
            underlyingFacet.setProperty(adapter, referencedAdapter);
        } else {
            getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
                @Override
                public void execute() {
                    underlyingFacet.setProperty(adapter, referencedAdapter);
                }
            });
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.transaction.TransactionalClosureAbstract

            }
        }
    }

    private void resolveImmediatelyFromPersistenceLayer(final ObjectAdapter adapter) {
        getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void preExecute() {
                CallbackUtils.callCallback(adapter, LoadingCallbackFacet.class);
            }
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.