public interface ElementMutation<T extends Element>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEY |
| Modifier and Type | Method and Description |
|---|---|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Object value,
Metadata metadata,
Visibility visibility)
Adds or updates a property.
|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Object value,
Visibility visibility)
Adds or updates a property.
|
Iterable<Property> |
getProperties()
Gets the properties currently in this mutation.
|
Iterable<PropertyRemoveMutation> |
getPropertyRemoves()
Gets the properties currently being removed in this mutation.
|
ElementMutation<T> |
removeProperty(Property property)
Removes a property.
|
ElementMutation<T> |
removeProperty(String key,
String name,
Visibility visibility)
Removes a property.
|
ElementMutation<T> |
removeProperty(String name,
Visibility visibility)
Removes the default property with that name.
|
T |
save(Authorizations authorizations)
saves the properties to the graph.
|
ElementMutation<T> |
setIndexHint(IndexHint indexHint)
Sets the index hint of this element.
|
ElementMutation<T> |
setProperty(String name,
Object value,
Metadata metadata,
Visibility visibility)
Sets or updates a property value.
|
ElementMutation<T> |
setProperty(String name,
Object value,
Visibility visibility)
Sets or updates a property value.
|
static final String DEFAULT_KEY
T save(Authorizations authorizations)
ElementMutation<T> setProperty(String name, Object value, Visibility visibility)
name - The name of the property.value - The value of the property.visibility - The visibility to give this property.ElementMutation<T> setProperty(String name, Object value, Metadata metadata, Visibility visibility)
name - The name of the property.value - The value of the property.metadata - The metadata to assign to this property.visibility - The visibility to give this property.ElementMutation<T> addPropertyValue(String key, String name, Object value, Visibility visibility)
key - The unique key given to the property allowing for multi-valued properties.name - The name of the property.value - The value of the property.visibility - The visibility to give this property.ElementMutation<T> addPropertyValue(String key, String name, Object value, Metadata metadata, Visibility visibility)
key - The unique key given to the property allowing for multi-valued properties.name - The name of the property.value - The value of the property.metadata - The metadata to assign to this property.visibility - The visibility to give this property.ElementMutation<T> removeProperty(Property property)
property - the property to remove.ElementMutation<T> removeProperty(String name, Visibility visibility)
name - the property name to remove.visibility - the visibility of the property to remove.ElementMutation<T> removeProperty(String key, String name, Visibility visibility)
key - the key of the property to remove.name - the name of the property to remove.visibility - the visibility of the property to remove.Iterable<PropertyRemoveMutation> getPropertyRemoves()
ElementMutation<T> setIndexHint(IndexHint indexHint)
Copyright © 2014–2015. All rights reserved.