Package org.apache.openjpa.event

Examples of org.apache.openjpa.event.RemoteCommitListener


        setUp("openjpa.DataCache", "true",
            "openjpa.RemoteCommitProvider", "sjvm",
            OptimisticLockInstance.class);

        emf.getConfiguration().getRemoteCommitEventManager().addListener(
            new RemoteCommitListener() {
                public void afterCommit(RemoteCommitEvent e) {
                    if (e.getPayloadType() ==
                        RemoteCommitEvent.PAYLOAD_LOCAL_STALE_DETECTION) {
                        remoteCommitEventStaleCount++;
                        staleOid = e.getUpdatedObjectIds().iterator().next();
View Full Code Here

TOP

Related Classes of org.apache.openjpa.event.RemoteCommitListener

Copyright © 2018 www.massapicom. 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.