Examples of evictAll()


Examples of javax.persistence.Cache.evictAll()

        OperationStepHandler evictAllHandler = new AbstractMetricsHandler() {
            @Override
            void handle(final ModelNode response, final String name, ManagementLookup stats, OperationContext context) {
                Cache secondLevelCache = stats.getEntityManagerFactory().getCache();
                if (secondLevelCache != null) {
                    secondLevelCache.evictAll();
                }
            }
        };
        jpaHibernateRegistration.registerOperationHandler(OPERATION_EVICTALL, evictAllHandler, evictAll);
View Full Code Here

Examples of javax.persistence.Cache.evictAll()

        OperationStepHandler evictAllHandler = new AbstractMetricsHandler() {
            @Override
            void handle(final ModelNode response, final String name, ManagementLookup stats, OperationContext context) {
                Cache secondLevelCache = stats.getEntityManagerFactory().getCache();
                if (secondLevelCache != null) {
                    secondLevelCache.evictAll();
                }
            }
        };
        jpaHibernateRegistration.registerOperationHandler(OPERATION_EVICTALL, evictAllHandler, evictAll);
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.evictAll()

        em.persist(notEmpty);
        em.persist(empty);
        em.getTransaction().commit();

        em.evictAll();
        assertTrue(empty.getItems().isEmpty());
    }

}
View Full Code Here

Examples of org.apache.openjpa.persistence.QueryResultCache.evictAll()

        {
            // evict all caches
            StoreCache cache = entityManagerFactory.getStoreCache();
            cache.evictAll();
            QueryResultCache queryCache = entityManagerFactory.getQueryResultCache();
            queryCache.evictAll();
           
            // close entity manager factory
            entityManagerFactory.close();
            entityManagerFactory = null;
           
View Full Code Here

Examples of org.apache.openjpa.persistence.StoreCache.evictAll()

    {
        try
        {
            // evict all caches
            StoreCache cache = entityManagerFactory.getStoreCache();
            cache.evictAll();
            QueryResultCache queryCache = entityManagerFactory.getQueryResultCache();
            queryCache.evictAll();
           
            // close entity manager factory
            entityManagerFactory.close();
View Full Code Here

Examples of org.datanucleus.store.query.cache.QueryResultsCache.evictAll()

        fail("Threw exception when evaluating query with cached results : " + jdoe.getMessage());
      }
      q2.closeAll();
    } finally {
      // Evict the cached results
      cache.evictAll();
    }
  }

  public void testCandidateCollectionInMemory() {
    ds.put(null, newFlightEntity("1", "yar", "bam", 1, 2));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.