Package org.apache.aries.jpa.container

Examples of org.apache.aries.jpa.container.ManagedPersistenceUnitInfo


      }
    }
  }

  private boolean availableDataSourceFactory(String unitName) {
    ManagedPersistenceUnitInfo mpui = persistenceUnits.get(unitName);
       
    String driver = (String) mpui.getPersistenceUnitInfo().getProperties().
    get(PersistenceUnitConstants.DATA_SOURCE_FACTORY_CLASS_NAME);
   
    //True if the property is not "true" and the jdbc driver is set
    if(Boolean.parseBoolean((String)mpui.getContainerProperties().
        get(PersistenceUnitConstants.USE_DATA_SOURCE_FACTORY)) &&
        driver != null) {
     
      if(dataSourceFactories.containsKey(driver)) {
        dataSourceFactories.get(driver).add(unitName);
View Full Code Here


            throw new InvalidPersistenceUnitException();
          }

          for(Entry<String, ? extends ManagedPersistenceUnitInfo> entry :
               persistenceUnits.entrySet()){
            ManagedPersistenceUnitInfo mpui = entry.getValue();
            emfs.put(entry.getKey(), new CountingEntityManagerFactory(
                providerService.createContainerEntityManagerFactory(
                    mpui.getPersistenceUnitInfo(), mpui.getContainerProperties()), entry.getKey()));
          }
        } finally {
          //Remember to unget the provider
          containerContext.ungetService(provider);
        }
View Full Code Here

TOP

Related Classes of org.apache.aries.jpa.container.ManagedPersistenceUnitInfo

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.