Exemplo n.º 1
0
 /**
  * See {@link Index#remove(PropertyContainer, String, Object)} for more generic documentation.
  *
  * <p>Removes key/value to the {@code entity} in this index. Removed values are excluded within
  * the transaction, but composite {@code AND} queries aren't guaranteed to exclude removed values
  * correctly within that transaction. When the transaction has been committed all such queries are
  * guaranteed to return correct results.
  *
  * @param entity the entity (i.e {@link Node} or {@link Relationship}) to dissociate the key/value
  *     pair from.
  * @param key the key in the key/value pair to dissociate from the entity.
  * @param value the value in the key/value pair to dissociate from the entity.
  */
 @Override
 public void remove(long entity, String key, Object value) {
   assertValidKey(key);
   for (Object oneValue : IoPrimitiveUtils.asArray(value)) {
     oneValue = getCorrectValue(oneValue);
     transaction.remove(this, entity, key, oneValue);
     addRemoveCommand(entity, key, oneValue);
   }
 }
Exemplo n.º 2
0
 @Override
 public void remove(long entity) {
   transaction.remove(this, entity);
   addRemoveCommand(entity, null, null);
 }
Exemplo n.º 3
0
 @Override
 public void remove(long entity, String key) {
   assertValidKey(key);
   transaction.remove(this, entity, key);
   addRemoveCommand(entity, key, null);
 }