Package com.clarkparsia.empire.ds

Examples of com.clarkparsia.empire.ds.DataSourceFactory


  /**
   * @inheritDoc
   */
    @Override
    public EntityManagerFactory createEntityManagerFactory(final String theUnitName, final Map theMap) {
        DataSourceFactory aFactory = selectFactory(theUnitName, theMap);

    if (aFactory != null) {
      return new EntityManagerFactoryImpl(aFactory, createUnitConfig(theUnitName, theMap));
        }
    else {
View Full Code Here


   * @param theMap additional persistence context parameters
   * @return a new data source, or null if one cannot be created.
   * @throws com.clarkparsia.empire.ds.DataSourceException if there is an error while creating the data source
   */
  public DataSource createDataSource(final String theUnitName, final Map theMap) throws DataSourceException {
    DataSourceFactory aFactory = selectFactory(theUnitName, theMap);

    if (aFactory != null) {
      return aFactory.create(createUnitConfig(theUnitName, theMap));
    }
    else {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of com.clarkparsia.empire.ds.DataSourceFactory

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.