Package org.datanucleus.jdo

Examples of org.datanucleus.jdo.JDODataStoreCache


       
        // Initialise the PMF
        pmf = initialisePMF(unitMetaData, overridingProps);

        // Initialise the L2 cache (if used)
        JDODataStoreCache cache = (JDODataStoreCache)pmf.getDataStoreCache();
        OMFContext omfCtx = ((JDOPersistenceManagerFactory)pmf).getOMFContext();
        if (cache != null)
        {
            datastoreCache = new JPADataStoreCache(omfCtx, cache.getLevel2Cache());
        }

        // Turn off loading of metadata from here if required
        boolean allowMetadataLoad =
            omfCtx.getPersistenceConfiguration().getBooleanProperty("datanucleus.metadata.allowLoadAtRuntime");
View Full Code Here


        // Initialise the PMF (even if unitMetaData is null)
        pmf = initialisePMF(unitMetaData, overridingProps);

        // Initialise the L2 cache (if used)
        JDODataStoreCache cache = (JDODataStoreCache)pmf.getDataStoreCache();
        OMFContext omfCtx = ((JDOPersistenceManagerFactory)pmf).getOMFContext();
        if (cache != null)
        {
            datastoreCache = new JPADataStoreCache(omfCtx, cache.getLevel2Cache());
        }

        // Turn off loading of metadata from here if required
        boolean allowMetadataLoad =
            omfCtx.getPersistenceConfiguration().getBooleanProperty("datanucleus.metadata.allowLoadAtRuntime");
View Full Code Here

TOP

Related Classes of org.datanucleus.jdo.JDODataStoreCache

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.