Package org.hibernate.cache.spi.access

Examples of org.hibernate.cache.spi.access.CollectionRegionAccessStrategy


            "AbstractPluralAttributeBinding has a Singular attribute defined: " + model.getAttribute().getName()
        );
      }
      final String cacheRegionName = cacheRegionPrefix + model.getCaching().getRegion();
      final AccessType accessType = model.getCaching().getAccessType();
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
        if ( traceEnabled ) {
          LOG.tracev( "Building cache for collection data [{0}]", model.getAttribute().getRole() );
        }
        CollectionRegion collectionRegion = settings.getRegionFactory().buildCollectionRegion(
View Full Code Here


    Iterator collections = cfg.getCollectionMappings();
    while ( collections.hasNext() ) {
      Collection model = (Collection) collections.next();
      final String cacheRegionName = cacheRegionPrefix + model.getCacheRegionName();
      final AccessType accessType = AccessType.fromExternalName( model.getCacheConcurrencyStrategy() );
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
                LOG.trace("Building cache for collection data [" + model.getRole() + "]");
        CollectionRegion collectionRegion = settings.getRegionFactory().buildCollectionRegion( cacheRegionName, properties, CacheDataDescriptionImpl
            .decode( model ) );
        accessStrategy = collectionRegion.buildAccessStrategy( accessType );
View Full Code Here

        );
      }
      // TODO: Add AbstractPluralAttributeBinding.getCaching()
      final String cacheRegionName = cacheRegionPrefix + model.getCacheRegionName();
      final AccessType accessType = AccessType.fromExternalName( model.getCacheConcurrencyStrategy() );
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
        // TODO: is model.locateAttribute().getName() the collection's role??? For now, assuming it is
                LOG.trace("Building cache for collection data [" + model.getAttribute().getName() + "]");
        CollectionRegion collectionRegion =
            settings.getRegionFactory()
View Full Code Here

    Iterator collections = cfg.getCollectionMappings();
    while ( collections.hasNext() ) {
      Collection model = (Collection) collections.next();
      final String cacheRegionName = cacheRegionPrefix + model.getCacheRegionName();
      final AccessType accessType = AccessType.fromExternalName( model.getCacheConcurrencyStrategy() );
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
                LOG.trace("Building cache for collection data [" + model.getRole() + "]");
        CollectionRegion collectionRegion = settings.getRegionFactory().buildCollectionRegion( cacheRegionName, properties, CacheDataDescriptionImpl
            .decode( model ) );
        accessStrategy = collectionRegion.buildAccessStrategy( accessType );
View Full Code Here

    Iterator collections = cfg.getCollectionMappings();
    while ( collections.hasNext() ) {
      Collection model = (Collection) collections.next();
      final String cacheRegionName = cacheRegionPrefix + model.getCacheRegionName();
      final AccessType accessType = AccessType.fromExternalName( model.getCacheConcurrencyStrategy() );
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
        LOG.tracev( "Building shared cache region for collection data [{0}]", model.getRole() );
        CollectionRegion collectionRegion = regionFactory.buildCollectionRegion( cacheRegionName, properties, CacheDataDescriptionImpl
            .decode( model ) );
        accessStrategy = collectionRegion.buildAccessStrategy( accessType );
View Full Code Here

      return regionFactory.getCacheManager().getCache(InfinispanRegionFactory.DEF_ENTITY_RESOURCE).getAdvancedCache();
   }

   @Override
   protected void putInRegion(Region region, Object key, Object value) {
      CollectionRegionAccessStrategy strategy = ((CollectionRegion) region).buildAccessStrategy(AccessType.TRANSACTIONAL);
      strategy.putFromLoad(key, value, System.currentTimeMillis(), new Integer(1));
   }
View Full Code Here

    Iterator collections = cfg.getCollectionMappings();
    while ( collections.hasNext() ) {
      Collection model = (Collection) collections.next();
      final String cacheRegionName = cacheRegionPrefix + model.getCacheRegionName();
      final AccessType accessType = AccessType.fromExternalName( model.getCacheConcurrencyStrategy() );
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
        LOG.tracev( "Building shared cache region for collection data [{0}]", model.getRole() );
        CollectionRegion collectionRegion = regionFactory.buildCollectionRegion( cacheRegionName, properties, CacheDataDescriptionImpl
            .decode( model ) );
        accessStrategy = collectionRegion.buildAccessStrategy( accessType );
View Full Code Here

            "AbstractPluralAttributeBinding has a Singular attribute defined: " + model.getAttribute().getName()
        );
      }
      final String cacheRegionName = cacheRegionPrefix + model.getCaching().getRegion();
      final AccessType accessType = model.getCaching().getAccessType();
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
        if ( traceEnabled ) {
          LOG.tracev( "Building cache for collection data [{0}]", model.getAttribute().getRole() );
        }
        CollectionRegion collectionRegion = settings.getRegionFactory().buildCollectionRegion(
View Full Code Here

    Iterator collections = cfg.getCollectionMappings();
    while ( collections.hasNext() ) {
      Collection model = (Collection) collections.next();
      final String cacheRegionName = cacheRegionPrefix + model.getCacheRegionName();
      final AccessType accessType = AccessType.fromExternalName( model.getCacheConcurrencyStrategy() );
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
                LOG.trace("Building cache for collection data [" + model.getRole() + "]");
        CollectionRegion collectionRegion = settings.getRegionFactory().buildCollectionRegion( cacheRegionName, properties, CacheDataDescriptionImpl
            .decode( model ) );
        accessStrategy = collectionRegion.buildAccessStrategy( accessType );
View Full Code Here

            "AbstractPluralAttributeBinding has a Singular attribute defined: " + model.getAttribute().getName()
        );
      }
      final String cacheRegionName = cacheRegionPrefix + model.getCaching().getRegion();
      final AccessType accessType = model.getCaching().getAccessType();
      CollectionRegionAccessStrategy accessStrategy = null;
      if ( accessType != null && settings.isSecondLevelCacheEnabled() ) {
                LOG.trace("Building cache for collection data [" + model.getAttribute().getRole() + "]");
        CollectionRegion collectionRegion = settings.getRegionFactory().buildCollectionRegion(
            cacheRegionName, properties, CacheDataDescriptionImpl.decode( model )
        );
View Full Code Here

TOP

Related Classes of org.hibernate.cache.spi.access.CollectionRegionAccessStrategy

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.