Package org.neo4j.kernel.impl.transaction

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


    }

    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

    protected GraphDatabase createGraphDatabase() throws Exception {
        return new DelegatingGraphDatabase(graphDatabaseService);
    }

    protected PlatformTransactionManager createTransactionManager() {
        return new JtaTransactionManager(new SpringTransactionManager(graphDatabaseService));
    }
View Full Code Here

        return new Neo4jConversionServiceFactoryBean().getObject();
    }

    protected PlatformTransactionManager createTransactionManager()
    {
        return new JtaTransactionManager(new SpringTransactionManager(graphDatabaseService));
    }
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

        }
    }

    @Override
    public TransactionManager getTransactionManager() {
        return new SpringTransactionManager((GraphDatabaseAPI)delegate);
    }
View Full Code Here

    protected GraphDatabase createGraphDatabase() throws Exception {
        return new DelegatingGraphDatabase(graphDatabaseService);
    }

    protected PlatformTransactionManager createTransactionManager() {
        return new JtaTransactionManager(new SpringTransactionManager((GraphDatabaseAPI)graphDatabaseService));
    }
View Full Code Here

            tx.success();tx.close();
        }
    }

    protected PlatformTransactionManager createTransactionManager() {
        return new JtaTransactionManager(new SpringTransactionManager((GraphDatabaseAPI)graphDatabaseService));
    }
View Full Code Here

        return new Neo4jConversionServiceFactoryBean().getObject();
    }

    protected PlatformTransactionManager createTransactionManager()
    {
        return new JtaTransactionManager(new SpringTransactionManager((GraphDatabaseAPI)graphDatabaseService));
    }
View Full Code Here

TOP

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

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.