コード例 #1
0
 @Override
 public Property graphRemoveProperty(KernelStatement state, int propertyKeyId) {
   Property existingProperty = graphGetProperty(state, propertyKeyId);
   if (existingProperty.isDefined()) {
     state.txState().graphDoRemoveProperty((DefinedProperty) existingProperty);
   }
   return existingProperty;
 }
コード例 #2
0
 @Override
 public Property nodeRemoveProperty(KernelStatement state, long nodeId, int propertyKeyId)
     throws EntityNotFoundException {
   Property existingProperty = nodeGetProperty(state, nodeId, propertyKeyId);
   if (existingProperty.isDefined()) {
     legacyPropertyTrackers.nodeRemoveStoreProperty(nodeId, (DefinedProperty) existingProperty);
     state.txState().nodeDoRemoveProperty(nodeId, (DefinedProperty) existingProperty);
     indexesUpdateProperty(state, nodeId, propertyKeyId, (DefinedProperty) existingProperty, null);
   }
   return existingProperty;
 }
コード例 #3
0
 @Override
 public Property relationshipRemoveProperty(
     KernelStatement state, long relationshipId, int propertyKeyId)
     throws EntityNotFoundException {
   Property existingProperty = relationshipGetProperty(state, relationshipId, propertyKeyId);
   if (existingProperty.isDefined()) {
     legacyPropertyTrackers.relationshipRemoveStoreProperty(
         relationshipId, (DefinedProperty) existingProperty);
     state
         .txState()
         .relationshipDoRemoveProperty(relationshipId, (DefinedProperty) existingProperty);
   }
   return existingProperty;
 }
コード例 #4
0
 @Override
 public Property relationshipSetProperty(
     KernelStatement state, long relationshipId, DefinedProperty property)
     throws EntityNotFoundException {
   Property existingProperty =
       relationshipGetProperty(state, relationshipId, property.propertyKeyId());
   if (!existingProperty.isDefined()) {
     legacyPropertyTrackers.relationshipAddStoreProperty(relationshipId, property);
   } else {
     legacyPropertyTrackers.relationshipChangeStoreProperty(
         relationshipId, (DefinedProperty) existingProperty, property);
   }
   state.txState().relationshipDoReplaceProperty(relationshipId, existingProperty, property);
   return existingProperty;
 }
コード例 #5
0
 @Override
 public Property nodeSetProperty(KernelStatement state, long nodeId, DefinedProperty property)
     throws EntityNotFoundException {
   Property existingProperty = nodeGetProperty(state, nodeId, property.propertyKeyId());
   if (!existingProperty.isDefined()) {
     legacyPropertyTrackers.nodeAddStoreProperty(nodeId, property);
   } else {
     legacyPropertyTrackers.nodeChangeStoreProperty(
         nodeId, (DefinedProperty) existingProperty, property);
   }
   state.txState().nodeDoReplaceProperty(nodeId, existingProperty, property);
   indexesUpdateProperty(
       state, nodeId, property.propertyKeyId(), existingProperty.value(null), property.value());
   return existingProperty;
 }