Examples of nextID()


Examples of org.neo4j.kernel.impl.nioneo.store.PropertyStore.nextId()

            if ( currentRecord.size() + block.getSize() > PropertyType.getPayloadSize() )
            {
                // Here it means the current block is done for
                PropertyRecord prevRecord = currentRecord;
                // Create new record
                long propertyId = propStore.nextId();
                currentRecord = new PropertyRecord( propertyId );
                currentRecord.setInUse( true );
                currentRecord.setCreated();
                // Set up links
                prevRecord.setNextProp( propertyId );
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.PropertyStore.nextId()

            int keyId = indexHolder.getKeyId( entry.getKey() );
            if ( keyId == -1 )
            {
                keyId = createNewPropertyIndex( entry.getKey() );
            }
            long propertyId = propStore.nextId();
            PropertyRecord propertyRecord = new PropertyRecord( propertyId );
            propertyRecord.setInUse( true );
            propertyRecord.setCreated();
            propertyRecord.setKeyIndexId( keyId );
            propStore.encodeValue( propertyRecord, entry.getValue() );
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.RelationshipTypeStore.nextId()

    }

    private int createNewRelationshipType( String name )
    {
        RelationshipTypeStore typeStore = getRelationshipTypeStore();
        int id = (int) typeStore.nextId();
        RelationshipTypeRecord record = new RelationshipTypeRecord( id );
        record.setInUse( true );
        record.setCreated();
        int nameId = typeStore.nextNameId();
        record.setNameId( nameId );
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.RelationshipTypeStore.nextId()

    }

    private int createNewRelationshipType( String name )
    {
        RelationshipTypeStore typeStore = getRelationshipTypeStore();
        int id = (int) typeStore.nextId();
        RelationshipTypeRecord record = new RelationshipTypeRecord( id );
        record.setInUse( true );
        record.setCreated();
        int nameId = typeStore.nextNameId();
        record.setNameId( nameId );
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.RelationshipTypeStore.nextId()

    }

    private int createNewRelationshipType( String name )
    {
        RelationshipTypeStore typeStore = getRelationshipTypeStore();
        int id = (int) typeStore.nextId();
        RelationshipTypeRecord record = new RelationshipTypeRecord( id );
        record.setInUse( true );
        record.setCreated();
        int typeBlockId = (int) typeStore.nextBlockId();
        record.setTypeBlock( typeBlockId );
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.Store.nextId()

        if ( store == null )
        {
            throw new IdGenerationFailedException( "No IdGenerator for: "
                + clazz );
        }
        return store.nextId();
    }

    public long getHighestPossibleIdInUse( Class<?> clazz )
    {
        Store store = idGenerators.get( clazz );
View Full Code Here

Examples of org.tinyuml.model.IdGenerator.nextId()

  /**
   * Tests the generator methods.
   */
  public void testIdGenerator() {
    IdGenerator generator = new IdGenerator();
    int id1 = generator.nextId();
    assertTrue(id1 > 0);
    int id2 = generator.nextId();
    assertTrue(id2 > id1);
  }
 
View Full Code Here

Examples of org.tinyuml.model.IdGenerator.nextId()

   */
  public void testIdGenerator() {
    IdGenerator generator = new IdGenerator();
    int id1 = generator.nextId();
    assertTrue(id1 > 0);
    int id2 = generator.nextId();
    assertTrue(id2 > id1);
  }
 
  /**
   * Tests the generator methods after initialization.
View Full Code Here

Examples of org.tinyuml.model.IdGenerator.nextId()

   * Tests the generator methods after initialization.
   */
  public void testIdGeneratorAfterInitialize() {
    IdGenerator generator = new IdGenerator();
    generator.initialize(6);
    int id1 = generator.nextId();
    assertTrue(id1 >= 6);
    int id2 = generator.nextId();
    assertTrue(id2 > id1);   
  }
}
View Full Code Here

Examples of org.tinyuml.model.IdGenerator.nextId()

  public void testIdGeneratorAfterInitialize() {
    IdGenerator generator = new IdGenerator();
    generator.initialize(6);
    int id1 = generator.nextId();
    assertTrue(id1 >= 6);
    int id2 = generator.nextId();
    assertTrue(id2 > id1);   
  }
}
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.