Examples of PersistenceManagerImpl


Examples of com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl

    public static void flush(PersistenceManager pm) {
        Transaction tx = pm.currentTransaction();
        // flush updates to the database if transaction is active.
        if (tx != null && tx.isActive()) {
            PersistenceManagerWrapper pmw = (PersistenceManagerWrapper)pm;
            PersistenceManagerImpl pmi =
                    (PersistenceManagerImpl)pmw.getPersistenceManager();
            pmi.internalFlush();
        }
    }
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl

    public static void flush(PersistenceManager pm) {
        Transaction tx = pm.currentTransaction();
        // flush updates to the database if transaction is active.
        if (tx != null && tx.isActive()) {
            PersistenceManagerWrapper pmw = (PersistenceManagerWrapper)pm;
            PersistenceManagerImpl pmi =
                    (PersistenceManagerImpl)pmw.getPersistenceManager();
            pmi.internalFlush();
        }
    }
View Full Code Here

Examples of com.sun.jdori.common.PersistenceManagerImpl

    {

        PersistenceManager result = null;
        try
        {
            result = new PersistenceManagerImpl(this, aUserid, aPassword);
        }
        catch (JDOException ex)
        {
            throw ex;
        }
View Full Code Here

Examples of com.sun.jdori.common.PersistenceManagerImpl

    {

        PersistenceManager result = null;
        try
        {
            result = new PersistenceManagerImpl(this, aUserid, aPassword);
        }
        catch (JDOException ex)
        {
            throw ex;
        }
View Full Code Here

Examples of org.apache.portals.graffito.jcr.persistence.impl.PersistenceManagerImpl

     * @param session
     * @return
     * @throws JcrMappingException
     */
    protected PersistenceManager createPersistenceManager(Session session) throws RepositoryException, JcrMappingException {
        return new PersistenceManagerImpl(mapper, createDefaultConverters(session), createQueryManager(), session);
    }
View Full Code Here

Examples of org.infinispan.persistence.manager.PersistenceManagerImpl

      return new InternalMetadataImpl(metadata(lifespan, maxIdle), now, now);
   }


   public static <K, V> CacheLoader<K, V> getFirstLoader(Cache<K, V> cache) {
      PersistenceManagerImpl persistenceManager = (PersistenceManagerImpl) extractComponent(cache, PersistenceManager.class);
      return persistenceManager.getAllLoaders().get(0);
   }
View Full Code Here

Examples of org.infinispan.persistence.manager.PersistenceManagerImpl

      return persistenceManager.getAllLoaders().get(0);
   }

   @SuppressWarnings("unchecked")
   public static <T extends CacheWriter<K, V>, K, V> T getFirstWriter(Cache<K, V> cache) {
      PersistenceManagerImpl persistenceManager = (PersistenceManagerImpl) extractComponent(cache, PersistenceManager.class);
      return (T) persistenceManager.getAllWriters().get(0);
   }
View Full Code Here

Examples of org.infinispan.persistence.manager.PersistenceManagerImpl

         } else if (componentType.equals(CacheNotifier.class)) {
            return (T) new CacheNotifierImpl();
         } else if (componentType.equals(CommandsFactory.class)) {
            return (T) new CommandsFactoryImpl();
         } else if (componentType.equals(PersistenceManager.class)) {
            return (T) new PersistenceManagerImpl();
         } else if (componentType.equals(PassivationManager.class)) {
            return (T) new PassivationManagerImpl();
         } else if (componentType.equals(ActivationManager.class)) {
            return (T) new ActivationManagerImpl();
         } else if (componentType.equals(BatchContainer.class)) {
View Full Code Here

Examples of org.infinispan.persistence.manager.PersistenceManagerImpl

   private void setCacheLoader(AdvancedCache<K, V> cache, Configuration<K, V> c) {
      // Plug user-defined cache loader into adaptor
      Factory<CacheLoader<K, V>> cacheLoaderFactory = c.getCacheLoaderFactory();
      if (cacheLoaderFactory != null) {
         PersistenceManagerImpl persistenceManager =
               (PersistenceManagerImpl) cache.getComponentRegistry().getComponent(PersistenceManager.class);
         JCacheLoaderAdapter<K, V> adapter = getCacheLoaderAdapter(persistenceManager);
         jcacheLoader = cacheLoaderFactory.create();
         adapter.setCacheLoader(jcacheLoader);
         adapter.setExpiryPolicy(expiryPolicy);
View Full Code Here

Examples of org.infinispan.persistence.manager.PersistenceManagerImpl

   private void setCacheWriter(AdvancedCache<K, V> cache, Configuration<K, V> c) {
      // Plug user-defined cache writer into adaptor
      Factory<CacheWriter<? super K, ? super V>> cacheWriterFactory = c.getCacheWriterFactory();
      if (cacheWriterFactory != null) {
         PersistenceManagerImpl persistenceManager =
               (PersistenceManagerImpl) cache.getComponentRegistry().getComponent(PersistenceManager.class);
         JCacheWriterAdapter<K, V> ispnCacheStore = getCacheWriterAdapter(persistenceManager);
         jcacheWriter = cacheWriterFactory.create();
         ispnCacheStore.setCacheWriter(jcacheWriter);
      }
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.