Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.Transaction.success()


            {
                throw new RuntimeException(
                        "No timpestamp found for '" + node
                                + "' maybe it's not in the timeline?" );
            }
            tx.success();
            return result;
        }
        finally
        {
            tx.finish();
View Full Code Here


            if ( !previous.equals( next ) )
            {
                previous.createRelationshipTo( next,
                        RelTypes.TIMELINE_NEXT_ENTRY );
            }
            tx.success();
        }
        finally
        {
            if(transactional)
            {
View Full Code Here

        Node bTreeNode = graphDb.createNode();
        underlyingNode.createRelationshipTo( bTreeNode,
          BTree.RelTypes.TREE_ROOT );
        bTree = new BTree( graphDb, bTreeNode );
      }
      tx.success();
    }
    finally
    {
      tx.finish();
    }
View Full Code Here

          Object prevKey = entry.getKeyValue();
          if ( prevKey.equals( key ) )
          {
            Object oldValue = entry.getValue();
            entry.setValue( value );
            tx.success();
            return (V) oldValue;
          }
          entry.setKeyValue( GOTO_NODE );
          bucketNode = graphDb.createNode();
          entry.setValue( bucketNode.getId() );
View Full Code Here

          {
            Node entryNode = rel.getEndNode();
            if ( entryNode.getProperty( MAP_KEY ).equals( key ) )
            {
              entryNode.setProperty( MAP_VALUE, value );
              tx.success();
              return null;
            }
          }
          Node newEntry = graphDb.createNode();
          bucketNode.createRelationshipTo( newEntry,
View Full Code Here

            RelTypes.MAP_ENTRY );
          newEntry.setProperty( MAP_KEY, key );
          newEntry.setProperty( MAP_VALUE, value );
        }
      }
      tx.success();
      return null;
    }
    finally
    {
      tx.finish();
View Full Code Here

        {
          if ( goOtherNode.equals( key ) )
          {
            Object value = entry.getValue();
            entry.remove();
            tx.success();
            return (V) value;
          }
        }
        else
        {
View Full Code Here

            if ( entryNode.getProperty( MAP_KEY ).equals( key ) )
            {
              Object value = entryNode.getProperty( MAP_VALUE );
              rel.delete();
              entryNode.delete();
              tx.success();
              return (V) value;
            }
          }
        }
      }
View Full Code Here

              return (V) value;
            }
          }
        }
      }
      tx.success();
      return null;
    }
    finally
    {
      tx.finish();
View Full Code Here

        Object goOtherNode = entry.getKeyValue();
        if ( !goOtherNode.equals( GOTO_NODE ) )
        {
          if ( goOtherNode.equals( key ) )
          {
            tx.success();
            return (V) entry.getValue();
          }
        }
        else
        {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.