org.neo4j.kernel.api.operations
Interface PropertyOperations

All Known Subinterfaces:
StatementContext

public interface PropertyOperations


Method Summary
 Object getNodePropertyValue(long nodeId, long propertyId)
          Returns the value of the property given it's property key id for the node with the given node id
 long getOrCreatePropertyKeyId(String propertyKey)
          Returns a property key id for a property key.
 long getPropertyKeyId(String propertyKey)
          Returns a property key id for the given property key.
 String getPropertyKeyName(long propertyId)
          Returns the name of a property given it's property key id
 Iterator<Long> listNodePropertyKeys(long nodeId)
          Return all property keys associated with a node.
 Iterator<Long> listRelationshipPropertyKeys(long relationshipId)
          Return all property keys associated with a relationship.
 

Method Detail

getOrCreatePropertyKeyId

long getOrCreatePropertyKeyId(String propertyKey)
Returns a property key id for a property key. If the key doesn't exist prior to this call it gets created.


getPropertyKeyId

long getPropertyKeyId(String propertyKey)
                      throws PropertyKeyNotFoundException
Returns a property key id for the given property key. If the property key doesn't exist a PropertyKeyNotFoundException will be thrown.

Throws:
PropertyKeyNotFoundException

getPropertyKeyName

String getPropertyKeyName(long propertyId)
                          throws PropertyKeyIdNotFoundException
Returns the name of a property given it's property key id

Throws:
PropertyKeyIdNotFoundException

getNodePropertyValue

Object getNodePropertyValue(long nodeId,
                            long propertyId)
                            throws PropertyKeyIdNotFoundException,
                                   PropertyNotFoundException,
                                   EntityNotFoundException
Returns the value of the property given it's property key id for the node with the given node id

Throws:
PropertyKeyIdNotFoundException
PropertyNotFoundException
EntityNotFoundException

listNodePropertyKeys

Iterator<Long> listNodePropertyKeys(long nodeId)
Return all property keys associated with a node.


listRelationshipPropertyKeys

Iterator<Long> listRelationshipPropertyKeys(long relationshipId)
Return all property keys associated with a relationship.



Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.