Package org.datanucleus.store.query.cache

Examples of org.datanucleus.store.query.cache.CachedQuery


    public synchronized void addQueryCompilation(String language, String query, QueryCompilation compilation)
    {
        if (cache != null)
        {
            String queryKey = language + ":" + query;
            CachedQuery cachedQuery = new CachedQuery(compilation);
            cache.put(queryKey, cachedQuery);
        }
    }
View Full Code Here


    public synchronized QueryCompilation getQueryCompilationForQuery(String language, String query)
    {
        if (cache != null)
        {
            String queryKey = language + ":" + query;
            CachedQuery cachedQuery = cache.get(queryKey);
            if (cachedQuery != null)
            {
                return cachedQuery.getCompilation();
            }
        }
        return null;
    }
View Full Code Here

    public synchronized void addDatastoreQueryCompilation(String datastore, String language, String query, Object compilation)
    {
        if (cache != null)
        {
            String queryKey = language + ":" + query;
            CachedQuery cachedQuery = cache.get(queryKey);
            if (cachedQuery != null)
            {
                cachedQuery.addDatastoreCompilation(datastore, compilation);
            }
        }
    }
View Full Code Here

    public synchronized Object getDatastoreQueryCompilation(String datastore, String language, String query)
    {
        if (cache != null)
        {
            String queryKey = language + ":" + query;
            CachedQuery cachedQuery = cache.get(queryKey);
            if (cachedQuery != null)
            {
                return cachedQuery.getDatastoreCompilation(datastore);
            }
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.datanucleus.store.query.cache.CachedQuery

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.