Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.NotInTransactionException


     */
    private void checkActiveTransaction()
    {
        if (batchSize == 0 && (resource == null || !resource.isActive()))
        {
            throw new NotInTransactionException("All Modifying Neo4J operations must be executed within a transaction");
        }
    }
View Full Code Here


        ResourceConnection con = null;

        Transaction tx = this.getCurrentTransaction();
        if ( tx == null )
        {
            throw new NotInTransactionException();
        }
        con = txConnectionMap.get( tx );
        if ( con == null )
        {
            try
View Full Code Here

    void delistResourcesForTransaction() throws NotInTransactionException
    {
        Transaction tx = this.getCurrentTransaction();
        if ( tx == null )
        {
            throw new NotInTransactionException();
        }
        ResourceConnection con = txConnectionMap.get( tx );
        if ( con != null )
        {
            try
View Full Code Here

    {
        T con = null;
        Transaction tx = this.getCurrentTransaction();
        if ( tx == null )
        {
            throw new NotInTransactionException();
        }
        con = txConnectionMap.get( tx );
        if ( con == null )
        {
            try
View Full Code Here

    void delistResourcesForTransaction() throws NotInTransactionException
    {
        Transaction tx = this.getCurrentTransaction();
        if ( tx == null )
        {
            throw new NotInTransactionException();
        }
        T con = txConnectionMap.get( tx );
        if ( con != null )
        {
            try
View Full Code Here

        {
            return transactionManager.getTransaction();
        }
        catch ( SystemException se )
        {
            throw new NotInTransactionException(
                    "Error fetching transaction for current thread", se );
        }
    }
View Full Code Here

    private PrimitiveElement getAndSetupPrimitiveElement()
    {
        Transaction tx = getTransaction();
        if ( tx == null )
        {
            throw new NotInTransactionException();
        }
        PrimitiveElement primitiveElement = cowMap.get( tx );
        if ( primitiveElement == null )
        {
            primitiveElement = new PrimitiveElement();
View Full Code Here

    PropertyIndex createPropertyIndex( String key )
    {
        Transaction tx = getTransaction();
        if ( tx == null )
        {
            throw new NotInTransactionException(
                "Unable to create property index for " + key );
        }
        TxCommitHook hook = txCommitHooks.get( tx );
        if ( hook == null )
        {
View Full Code Here

    static class FakeTransaction implements Transaction
    {
        public void failure()
        {
            throw new NotInTransactionException( "Batch insert mode, " +
                "failure is not an option." );
        }
View Full Code Here

TOP

Related Classes of org.neo4j.graphdb.NotInTransactionException

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.