Package org.hibernate.cache.spi

Examples of org.hibernate.cache.spi.TransactionalDataRegion


    InfinispanRegionFactory regionFactory = CacheTestUtil.startRegionFactory(
        ServiceRegistryBuilder.buildServiceRegistry( cfg.getProperties() ),
        cfg,
        getCacheTestSupport()
    );
    TransactionalDataRegion region = (TransactionalDataRegion) createRegion(
        regionFactory, "test/test", cfg.getProperties(), getCacheDataDescription()
    );
    assertTrue( "Region is transaction-aware", region.isTransactionAware() );
    CacheTestUtil.stopRegionFactory( regionFactory, getCacheTestSupport() );
//    cfg = CacheTestUtil.buildConfiguration( "test", InfinispanRegionFactory.class, true, false );
//    // Make it non-transactional
//    cfg.getProperties().remove( AvailableSettings.JTA_PLATFORM );
//    regionFactory = CacheTestUtil.startRegionFactory(
View Full Code Here


    InfinispanRegionFactory regionFactory = CacheTestUtil.startRegionFactory(
        ServiceRegistryBuilder.buildServiceRegistry( cfg.getProperties() ),
        cfg,
        getCacheTestSupport()
    );
    TransactionalDataRegion region = (TransactionalDataRegion) createRegion(
        regionFactory, "test/test", cfg.getProperties(), getCacheDataDescription()
    );
    CacheDataDescription cdd = region.getCacheDataDescription();
    assertNotNull( cdd );
    CacheDataDescription expected = getCacheDataDescription();
    assertEquals( expected.isMutable(), cdd.isMutable() );
    assertEquals( expected.isVersioned(), cdd.isVersioned() );
    assertEquals( expected.getVersionComparator(), cdd.getVersionComparator() );
View Full Code Here

    InfinispanRegionFactory regionFactory = CacheTestUtil.startRegionFactory(
        ServiceRegistryBuilder.buildServiceRegistry( cfg.getProperties() ),
        cfg,
        getCacheTestSupport()
    );
    TransactionalDataRegion region = (TransactionalDataRegion) createRegion(
        regionFactory, "test/test", cfg.getProperties(), getCacheDataDescription()
    );
    assertTrue( "Region is transaction-aware", region.isTransactionAware() );
    CacheTestUtil.stopRegionFactory( regionFactory, getCacheTestSupport() );
//    cfg = CacheTestUtil.buildConfiguration( "test", InfinispanRegionFactory.class, true, false );
//    // Make it non-transactional
//    cfg.getProperties().remove( AvailableSettings.JTA_PLATFORM );
//    regionFactory = CacheTestUtil.startRegionFactory(
View Full Code Here

    InfinispanRegionFactory regionFactory = CacheTestUtil.startRegionFactory(
        ServiceRegistryBuilder.buildServiceRegistry( cfg.getProperties() ),
        cfg,
        getCacheTestSupport()
    );
    TransactionalDataRegion region = (TransactionalDataRegion) createRegion(
        regionFactory, "test/test", cfg.getProperties(), getCacheDataDescription()
    );
    CacheDataDescription cdd = region.getCacheDataDescription();
    assertNotNull( cdd );
    CacheDataDescription expected = getCacheDataDescription();
    assertEquals( expected.isMutable(), cdd.isMutable() );
    assertEquals( expected.isVersioned(), cdd.isVersioned() );
    assertEquals( expected.getVersionComparator(), cdd.getVersionComparator() );
View Full Code Here

TOP

Related Classes of org.hibernate.cache.spi.TransactionalDataRegion

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.