public interface StatementContext extends ReadOperations, WriteOperations, KeyOperations, EntityOperations, SchemaOperations, Closeable
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 Names ===
The most prominent entity the method deals with is the first word of the method name.
If dealt with in general, the word is pluralized.
We prefer physical entities to meta-entities (e.g. node is preferred to index and label).
EntityReadOperations.nodesGetFromIndexLookup(org.neo4j.kernel.impl.api.index.IndexDescriptor, Object)
is a good example for both
of the last two rules, nodes are the physical entities we are interested in, therefore that word is first, the
index is just a means of getting to the nodes.
Parameter order for all methods, should reflect the order of words in the method name, with the most prominent entity
being the first parameter.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this statement.
|
labelGetForName, labelGetName, labelsGetAllTokens, propertyKeyGetForName, propertyKeyGetName
labelGetOrCreateForName, propertyKeyGetOrCreateForName
nodeGetAllProperties, nodeGetLabels, nodeGetProperty, nodeGetPropertyKeys, nodeHasLabel, nodeHasProperty, nodesGetForLabel, nodesGetFromIndexLookup, relationshipGetAllProperties, relationshipGetProperty, relationshipGetPropertyKeys, relationshipHasProperty
nodeAddLabel, nodeDelete, nodeRemoveLabel, nodeRemoveProperty, nodeSetProperty, relationshipRemoveProperty, relationshipSetProperty
constraintsGetAll, constraintsGetForLabel, constraintsGetForLabelAndPropertyKey, indexesGetAll, indexesGetForLabel, indexesGetForLabelAndPropertyKey, indexGetCommittedId, indexGetOwningUniquenessConstraintId, indexGetState, uniqueIndexesGetAll, uniqueIndexesGetForLabel
constraintDrop, indexCreate, indexDrop, uniqueIndexCreate, uniqueIndexDrop, uniquenessConstraintCreate
schemaStateContains, schemaStateGetOrCreate
void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.