Package org.hibernate.ogm.datastore.infinispan.impl

Examples of org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider


  private static InfinispanDatastoreProvider createAndStartNewProvider() {
    Map<String, Object> configurationValues = new HashMap<String, Object>();
    configurationValues.put( InfinispanProperties.CONFIGURATION_RESOURCE_NAME, "infinispan-dist-duplicate-domains-allowed.xml" );
    ServiceRegistryImplementor serviceRegistry = getServiceRegistry();

    InfinispanDatastoreProvider provider = new InfinispanDatastoreProvider();
    provider.configure( configurationValues );
    provider.injectServices( serviceRegistry );
    provider.start();

    return provider;
  }
View Full Code Here


  public Map<String, Object> extractEntityTuple(SessionFactory sessionFactory, EntityKey key) {
    return (Map) getEntityCache( sessionFactory ).get( key );
  }

  private static Cache<?, ?> getEntityCache(SessionFactory sessionFactory) {
    InfinispanDatastoreProvider castProvider = getProvider( sessionFactory );
    return castProvider.getCache( ENTITY_CACHE );
  }
View Full Code Here

    }
    return InfinispanDatastoreProvider.class.cast( provider );
  }

  private static Cache<?, ?> getAssociationCache(SessionFactory sessionFactory) {
    InfinispanDatastoreProvider castProvider = getProvider( sessionFactory );
    return castProvider.getCache( ASSOCIATION_CACHE );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.datastore.infinispan.impl.InfinispanDatastoreProvider

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.