Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.NotFoundException


    private NodeRecord getNodeRecord( long id )
    {
        if ( id < 0 || id >= getNodeStore().getHighId() )
        {
            throw new NotFoundException( "id=" + id );
        }
        return getNodeStore().getRecord( id );
    }
View Full Code Here


    private RelationshipRecord getRelationshipRecord( long id )
    {
        if ( id < 0 || id >= getRelationshipStore().getHighId() )
        {
            throw new NotFoundException( "id=" + id );
        }
        return getRelationshipStore().getRecord( id );
    }
View Full Code Here

    }

    public Object getProperty( String key ) {
        Object value = getPropertyValue( key );
        if ( value == null ) {
            throw new NotFoundException( "'" + key + "' on " + this );
        }
        return value;
    }
View Full Code Here

    private NodeRecord getNodeRecord( long id )
    {
        if ( id < 0 || id >= getNodeStore().getHighId() )
        {
            throw new NotFoundException( "id=" + id );
        }
        return getNodeStore().getRecord(id);
    }
View Full Code Here

    private RelationshipRecord getRelationshipRecord( long id )
    {
        if ( id < 0 || id >= getRelationshipStore().getHighId() )
        {
            throw new NotFoundException( "id=" + id );
        }
        return getRelationshipStore().getRecord( id );
    }
View Full Code Here

     */
    public static <T> T getSingle(Iterator<T> iterator, String notFoundMessage) {
        T result = getSingleOrNull(iterator);

        if (result == null) {
            throw new NotFoundException(notFoundMessage);
        }

        return result;
    }
View Full Code Here

        if (iterator.hasNext()) {
            result = iterator.next();
        }

        if (result == null) {
            throw new NotFoundException(notFoundMessage);
        }

        return result;
    }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public Object getProperty(String key) {
        if (!hasProperty(key)) {
            throw new NotFoundException();
        }
        return batchInserter.getRelationshipProperties(id).get(key);
    }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public Object getProperty(String key) {
        if (!hasProperty(key)) {
            throw new NotFoundException("Snapshot of " + wrapped.toString() + " did not have a property with key " + key);
        }

        if (transactionData().hasBeenDeleted(wrapped)) {
            return transactionData().propertiesOfDeletedContainer(wrapped).get(key);
        }
View Full Code Here

            return super.getModule(moduleId, clazz);
        } catch (NotFoundException e) {
            M module = timerDrivenModuleManager.getModule(moduleId, clazz);

            if (module == null) {
                throw new NotFoundException("No module of type " + clazz.getName() + " with ID " + moduleId + " has been registered");
            }

            return module;
        }
    }
View Full Code Here

TOP

Related Classes of org.neo4j.graphdb.NotFoundException

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.