org.neo4j.kernel.api
Interface StatementContext
- All Superinterfaces:
- Closeable, EntityOperations, LabelOperations, PropertyOperations, SchemaOperations
public interface StatementContext
- extends EntityOperations, PropertyOperations, LabelOperations, SchemaOperations, Closeable
Interface for accessing and modifying the underlying graph.
A statement is executing within a transaction
and will be able to see all previous changes made within that transaction.
When done using a statement it must be closed.
Note that this interface only combines a set of interfaces that define operations that the
database can perform.
One main difference between a TransactionContext
and a StatementContext
is life cycle of some locks, where read locks can live within one statement,
whereas write locks will live for the entire transaction.
Method Summary |
void |
close()
Closes this statement. |
close
void close()
- Closes this statement. Statements must be closed when done and before
their parent transaction finishes.
As an example statement-bound locks can be released when closing
a statement.
- Specified by:
close
in interface Closeable
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.