Examples of TransactionScopedEntityManager


Examples of org.jboss.ejb3.entity.TransactionScopedEntityManager

      {
         Object entityManager;
         if (injectionType == null
                 || injectionType.getName().equals(EntityManager.class.getName()))
         {
            entityManager = new TransactionScopedEntityManager(factory);
         }
         else
         {
            TransactionScopedSessionInvocationHandler handler = new TransactionScopedSessionInvocationHandler(factory);
            entityManager = Proxy.newProxyInstance(
View Full Code Here

Examples of org.jboss.ejb3.entity.TransactionScopedEntityManager

      {
         Object entityManager;
         if (injectionType == null
                 || injectionType.getName().equals(EntityManager.class.getName()))
         {
            entityManager = new TransactionScopedEntityManager(factory);
         }
         else
         {
            TransactionScopedSessionInvocationHandler handler = new TransactionScopedSessionInvocationHandler(factory);
            entityManager = Proxy.newProxyInstance(
View Full Code Here

Examples of org.jboss.ejb3.entity.TransactionScopedEntityManager

/*    */     {
/*    */       Object entityManager;
/*    */       Object entityManager;
/* 119 */       if ((this.injectionType == null) || (this.injectionType.getName().equals(EntityManager.class.getName())))
/*    */       {
/* 122 */         entityManager = new TransactionScopedEntityManager(factory);
/*    */       }
/*    */       else
/*    */       {
/* 126 */         TransactionScopedSessionInvocationHandler handler = new TransactionScopedSessionInvocationHandler(factory);
/* 127 */         entityManager = Proxy.newProxyInstance(org.hibernate.Session.class.getClassLoader(), SESS_PROXY_INTERFACES, handler);
View Full Code Here

Examples of org.jboss.jpa.tx.TransactionScopedEntityManager

         throw new IllegalArgumentException("Injection point represents a method which doesn't follow JavaBean conventions (must have exactly one parameter) " + injectionPoint);
      }
      try
      {
         String persistenceUnitName = injectionPoint.getAnnotated().getAnnotation(PersistenceContext.class).unitName();
         return new TransactionScopedEntityManager(lookupPersistenceUnitDeployment(persistenceUnitName).getManagedFactory());
      }
      catch (IllegalStateException e)
      {
         throw new IllegalStateException("Unable to resolve persistence context for " + injectionPoint);
      }
View Full Code Here

Examples of org.jboss.jpa.tx.TransactionScopedEntityManager

      managedFactory = new ManagedEntityManagerFactory(actualFactory, kernelName);

      String entityManagerJndiName = (String) props.get("jboss.entity.manager.jndi.name");
      if (entityManagerJndiName != null)
      {
         EntityManager injectedManager = new TransactionScopedEntityManager(managedFactory);
         NonSerializableFactory.rebind(initialContext, entityManagerJndiName, injectedManager, true);
      }
      String entityManagerFactoryJndiName = (String) props.get("jboss.entity.manager.factory.jndi.name");
      if (entityManagerFactoryJndiName != null)
      {
View Full Code Here

Examples of org.jboss.jpa.tx.TransactionScopedEntityManager

   }


   public EntityManager getEntityManager()
   {
      return new TransactionScopedEntityManager(managedFactory);
   }
View Full Code Here

Examples of org.jboss.jpa.tx.TransactionScopedEntityManager

      {
         Object entityManager;
         if (injectionType == null
                 || injectionType.getName().equals(EntityManager.class.getName()))
         {
            entityManager = new TransactionScopedEntityManager(factory);
         }
         else
         {
            TransactionScopedSessionInvocationHandler handler = new TransactionScopedSessionInvocationHandler(factory);
            entityManager = Proxy.newProxyInstance(
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.