Package org.apache.openjpa.kernel

Examples of org.apache.openjpa.kernel.DelegatingStoreManager


       
       
    }
   
    private StoreManager getStoreManager(EntityManager em, boolean innermost) {
        DelegatingStoreManager mgr =
            JPAFacadeHelper.toBroker(em).getStoreManager();
        if (innermost)
            return mgr.getInnermostDelegate();
        return mgr;
    }
View Full Code Here


       
       
    }
   
    private StoreManager getStoreManager(EntityManager em, boolean innermost) {
        DelegatingStoreManager mgr = JPAFacadeHelper.toBroker(em).getStoreManager();
        if (innermost)
            return mgr.getInnermostDelegate();
        return mgr;
    }
View Full Code Here

       
       
    }
   
    private StoreManager getStoreManager(EntityManager em, boolean innermost) {
        DelegatingStoreManager mgr =
            JPAFacadeHelper.toBroker(em).getStoreManager();
        if (innermost)
            return mgr.getInnermostDelegate();
        return mgr;
    }
View Full Code Here

public class TestWriteBehindConfiguration extends AbstractWriteBehindTestCase {
    public void testWriteBehindStoreManagerCreated() {
        assertNotNull(emf);
        assertNotNull(em);
        DelegatingStoreManager storeManager = ((EntityManagerImpl) em).getBroker().getStoreManager();
       
        storeManager = (DelegatingStoreManager) storeManager.getDelegate();
        assertTrue(String.format("Unexpected StoreManager type : %s",
            storeManager.getClass().getName()),
            storeManager instanceof DataCacheStoreManager);
        assertTrue(String.format("Unexpected StoreManager type : %s",
            storeManager.getDelegate().getClass().getName()),
            storeManager.getDelegate() instanceof WriteBehindStoreManager);
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.kernel.DelegatingStoreManager

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.