org.neo4j.kernel.api.index
Class NodePropertyUpdate

java.lang.Object
  extended by org.neo4j.kernel.api.index.NodePropertyUpdate

public class NodePropertyUpdate
extends Object


Field Summary
static long[] EMPTY_LONG_ARRAY
           
 
Constructor Summary
NodePropertyUpdate(long nodeId, long propertyKeyId, Object valueBefore, long[] labelsBefore, Object valueAfter, long[] labelsAfter)
           
 
Method Summary
static NodePropertyUpdate add(long nodeId, long propertyKeyId, Object value, long[] labels)
           
static NodePropertyUpdate change(long nodeId, long propertyKeyId, Object valueBefore, long[] labelsBefore, Object valueAfter, long[] labelsAfter)
           
 boolean equals(Object obj)
           
 boolean forLabel(long labelId)
          Whether or not this property update is for the given labelId.
 long getNodeId()
           
 long getPropertyKeyId()
           
 org.neo4j.kernel.impl.api.UpdateMode getUpdateMode()
           
 Object getValueAfter()
           
 Object getValueBefore()
           
 int hashCode()
           
static boolean propertyValuesEqual(Object a, Object b)
           
static NodePropertyUpdate remove(long nodeId, long propertyKeyId, Object value, long[] labels)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_LONG_ARRAY

public static final long[] EMPTY_LONG_ARRAY
Constructor Detail

NodePropertyUpdate

public NodePropertyUpdate(long nodeId,
                          long propertyKeyId,
                          Object valueBefore,
                          long[] labelsBefore,
                          Object valueAfter,
                          long[] labelsAfter)
Method Detail

getNodeId

public long getNodeId()

getPropertyKeyId

public long getPropertyKeyId()

getValueBefore

public Object getValueBefore()

getValueAfter

public Object getValueAfter()

getUpdateMode

public org.neo4j.kernel.impl.api.UpdateMode getUpdateMode()

forLabel

public boolean forLabel(long labelId)
Whether or not this property update is for the given labelId. If this property update comes from setting/changing/removing a property it will affect all labels on that Node. If this property update comes from adding or removing labels to/from a Node it will affect only those labels.

Parameters:
labelId - the label id the check.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

propertyValuesEqual

public static boolean propertyValuesEqual(Object a,
                                          Object b)

add

public static NodePropertyUpdate add(long nodeId,
                                     long propertyKeyId,
                                     Object value,
                                     long[] labels)

change

public static NodePropertyUpdate change(long nodeId,
                                        long propertyKeyId,
                                        Object valueBefore,
                                        long[] labelsBefore,
                                        Object valueAfter,
                                        long[] labelsAfter)

remove

public static NodePropertyUpdate remove(long nodeId,
                                        long propertyKeyId,
                                        Object value,
                                        long[] labels)


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