Package com.clarkparsia.empire.ds.impl

Examples of com.clarkparsia.empire.ds.impl.TransactionalDataSource


      if (!(aSource instanceof MutableDataSource)) {
        throw new IllegalArgumentException("Cannot use Empire with a non-mutable Data source");
      }

      if (isUseEmpireTransactions() && !(aSource instanceof SupportsTransactions)) {
        aSource = new TransactionalDataSource((MutableDataSource) aSource);
      }
     
      aSource.connect();

      return new EntityManagerImpl( (MutableDataSource) aSource);
View Full Code Here


    if (mDataSource instanceof SupportsTransactions) {
      return (SupportsTransactions) mDataSource;
    }
    else {
      // it doesnt support transactions natively, so we'll wrap it in our naive transaction support.
      return new TransactionalDataSource(mDataSource);
    }
  }
View Full Code Here

TOP

Related Classes of com.clarkparsia.empire.ds.impl.TransactionalDataSource

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.