Package org.modeshape.jcr.txn

Examples of org.modeshape.jcr.txn.Transactions.currentTransaction()


                                                 .getTransactionalWorkspaceCache(sharedWorkspaceCache));
                // only register the function if there's an active ModeShape transaction because we need to run the
                // function *only after* ISPN has committed its transaction & updated the cache
                // if there isn't an active ModeShape transaction, one will become active later during "save"
                // otherwise, "save" is never called meaning this cache should be discarded
                Transactions.Transaction modeshapeTx = transactions.currentTransaction();
                if (modeshapeTx != null) {
                    if (this.completeTransactionFunction.get() == null) {
                        // create and register the complete transaction function only once
                        this.completeTransactionFunction.compareAndSet(null, new Transactions.TransactionFunction() {
                            @Override
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.