Package org.neo4j.kernel.impl.transaction

Examples of org.neo4j.kernel.impl.transaction.UserTransactionImpl


    return neo4jDb().getDependencyResolver().resolveDependency( TxManager.class );
  }

  @Override
  protected UserTransaction locateUserTransaction() {
    return new UserTransactionImpl( neo4jDb() );
  }
View Full Code Here


    return neo4jDb().getTxManager();
  }

  @Override
  protected UserTransaction locateUserTransaction() {
    return new UserTransactionImpl( neo4jDb() );
  }
View Full Code Here

    private JtaTransactionManager createJtaTransactionManager(GraphDatabaseService gds) {
        JtaTransactionManager jtaTm = new JtaTransactionManager();
        if (gds instanceof AbstractGraphDatabase) {
            jtaTm.setTransactionManager(new SpringTransactionManager(gds));
            jtaTm.setUserTransaction(new UserTransactionImpl(gds));
        } else {
            final NullTransactionManager tm = new NullTransactionManager();
            jtaTm.setTransactionManager(tm);
            jtaTm.setUserTransaction(new UserTransactionAdapter(tm));
        }
View Full Code Here

    private JtaTransactionManager createJtaTransactionManager() {
        JtaTransactionManager jtaTm = new JtaTransactionManager();
        final GraphDatabaseService gds = getGraphDatabaseService();
        if (gds instanceof AbstractGraphDatabase) {
            jtaTm.setTransactionManager(new SpringTransactionManager(gds));
            jtaTm.setUserTransaction(new UserTransactionImpl(gds));
        } else {
            final NullTransactionManager tm = new NullTransactionManager();
            jtaTm.setTransactionManager(tm);
            jtaTm.setUserTransaction(new UserTransactionAdapter(tm));
        }
View Full Code Here

    return neo4jDb().getDependencyResolver().resolveDependency( TxManager.class );
  }

  @Override
  protected UserTransaction locateUserTransaction() {
    return new UserTransactionImpl( neo4jDb() );
  }
View Full Code Here

    return neo4jDb().getTxManager();
  }

  @Override
  protected UserTransaction locateUserTransaction() {
    return new UserTransactionImpl( neo4jDb() );
  }
View Full Code Here

    private GraphDatabaseService database;

    @Bean
    public PlatformTransactionManager transactionManager() {
        if (databaseAPI != null) {
            return new JtaTransactionManager(new UserTransactionImpl(databaseAPI), new SpringTransactionManager(databaseAPI));
        }

        if (database != null) {
            return new JtaTransactionManager(new UserTransactionImpl((GraphDatabaseAPI) database), new SpringTransactionManager((GraphDatabaseAPI) database));
        }

        throw new IllegalStateException("Neither GraphDatabaseAPI nor GraphDatabaseService are present");
    }
View Full Code Here

TOP

Related Classes of org.neo4j.kernel.impl.transaction.UserTransactionImpl

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.