Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.TransactionFailureException


                    + xaErrorCode );
                if ( tx.getStatus() == Status.STATUS_COMMITTED )
                {
                    // this should never be
                    setTmNotOk();
                    throw new TransactionFailureException(
                        "commit threw exception but status is committed?", e );
                }
            }
            catch ( Throwable t )
            {
View Full Code Here


            {
                tx.registerSynchronization( new ReadOnlyTxReleaser( tx ) );
            }
            catch ( Exception e )
            {
                throw new TransactionFailureException(
                    "Failed to register lock release synchronization hook", e );
            }
        }
    }
View Full Code Here

        {
            return transactionManager.getTransaction();
        }
        catch ( SystemException e )
        {
            throw new TransactionFailureException(
                "Failed to get current transaction.", e );
        }
    }
View Full Code Here

                    node.commitPropertyMaps( nodeElement.propertyAddMap,
                        nodeElement.propertyRemoveMap );
                }
                else if ( param != Status.STATUS_ROLLEDBACK )
                {
                    throw new TransactionFailureException(
                        "Unknown transaction status: " + param );
                }
            }
        }
        ArrayMap<Long,CowRelElement> cowRelElements = element.relationships;
        Set<Entry<Long,CowRelElement>> relEntrySet =
            cowRelElements.entrySet();
        for ( Entry<Long,CowRelElement> entry : relEntrySet )
        {
            RelationshipImpl rel = nodeManager.getRelIfCached( entry.getKey() );
            if ( rel != null )
            {
                CowRelElement relElement = entry.getValue();
                if ( param == Status.STATUS_COMMITTED )
                {
                    rel.commitPropertyMaps( relElement.propertyAddMap,
                        relElement.propertyRemoveMap );
                }
                else if ( param != Status.STATUS_ROLLEDBACK )
                {
                    throw new TransactionFailureException(
                        "Unknown transaction status: " + param );
                }
            }
        }
        cowMap.remove( cowTxId );
View Full Code Here

        {
            int id = createrThread.getRelTypeId();
            relTypeHolder.addRawRelationshipType( new RelationshipTypeData( id, name ) );
            return id;
        }
        throw new TransactionFailureException(
                "Unable to create relationship type " + name );
    }
View Full Code Here

        {
            return transactionManager.getTransaction();
        }
        catch ( Exception e )
        {
            throw new TransactionFailureException(
                "Unable to get transaction.", e );
        }
    }
View Full Code Here

TOP

Related Classes of org.neo4j.graphdb.TransactionFailureException

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.