Package org.apache.cayenne.cache

Examples of org.apache.cayenne.cache.NestedQueryCache


                : new DataRowStore(name, properties, eventManager);

        DataContext context = new DataContext(this, new ObjectStore(snapshotCache));

        if (queryCache != null) {
            context.setQueryCache(new NestedQueryCache(queryCache));
        }

        context.setValidatingObjectsOnCommit(isValidatingObjectsOnCommit());
        return context;
    }
View Full Code Here


        DataContext child = new DataContext(this, objectStore);

        // TODO: This method should be deprecated and child context should be created via
        // DI with all proper injection, so won't have to guess how to handle query cache.
        if (queryCache != null) {
            child.setQueryCache(new NestedQueryCache(queryCache));
        }

        child.setValidatingObjectsOnCommit(isValidatingObjectsOnCommit());
        child.usingSharedSnaphsotCache = isUsingSharedSnapshotCache();
        return child;
View Full Code Here

                graphManager.lifecycleEventsEnabled);

        // TODO: This method should be deprecated and child context should be created via
        // DI with all proper injection, so won't have to guess how to handle query cache.
        if (queryCache != null) {
            child.setQueryCache(new NestedQueryCache(queryCache));
        }

        return child;
    }
View Full Code Here

     */
    protected void attachToRuntime(Injector injector) {
       
        // TODO: nested contexts handling??
        attachToChannel(injector.getInstance(DataChannel.class));
        setQueryCache(new NestedQueryCache(injector.getInstance(QueryCache.class)));
    }
View Full Code Here

                graphManager.lifecycleEventsEnabled);

        // TODO: This method should be deprecated and child context should be created via
        // DI with all proper injection, so won't have to guess how to handle query cache.
        if (queryCache != null) {
            child.setQueryCache(new NestedQueryCache(queryCache));
        }

        return child;
    }
View Full Code Here

                eventManager);

        DataContext context = new DataContext(
                parent, objectStoreFactory.createObjectStore(snapshotCache));
        context.setValidatingObjectsOnCommit(dataDomain.isValidatingObjectsOnCommit());
        context.setQueryCache(new NestedQueryCache(queryCache));
        return context;
    }
View Full Code Here

        DataContext context = new DataContext(parent, objectStore);

        context.setValidatingObjectsOnCommit(parent.isValidatingObjectsOnCommit());
        context.setUsingSharedSnapshotCache(parent.isUsingSharedSnapshotCache());
        context.setQueryCache(new NestedQueryCache(queryCache));

        return context;
    }
View Full Code Here

                .getProperties(), eventManager);

        DataContext context = new DataContext(
                parent, objectStoreFactory.createObjectStore(snapshotCache));
        context.setValidatingObjectsOnCommit(parent.isValidatingObjectsOnCommit());
        context.setQueryCache(new NestedQueryCache(queryCache));
        return context;
    }
View Full Code Here

                : new DataRowStore(name, properties, eventManager);

        DataContext context = new DataContext(this, new ObjectStore(snapshotCache));

        if (queryCache != null) {
            context.setQueryCache(new NestedQueryCache(queryCache));
        }

        context.setValidatingObjectsOnCommit(isValidatingObjectsOnCommit());
        return context;
    }
View Full Code Here

        boolean lifecycleEvents = properties.getBoolean(
                ClientModule.CONTEXT_LIFECYCLE_EVENTS,
                false);

        CayenneContext context = new CayenneContext(parent, changeEvents, lifecycleEvents);
        context.setQueryCache(new NestedQueryCache(queryCache));
        return context;
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.cache.NestedQueryCache

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.