public abstract class ExistingElementMutationImpl<T extends Element> extends Object implements ElementMutation<T>, ExistingElementMutation<T>
DEFAULT_KEY| Constructor and Description |
|---|
ExistingElementMutationImpl(T element) |
| 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.
|
ExistingElementMutation<T> |
alterElementVisibility(Visibility visibility)
Alters the visibility of the element (vertex or edge).
|
ExistingElementMutation<T> |
alterPropertyVisibility(Property property,
Visibility visibility)
Alters the visibility of a property.
|
ExistingElementMutation<T> |
alterPropertyVisibility(String key,
String name,
Visibility visibility)
Alters the visibility of a property.
|
ExistingElementMutation<T> |
alterPropertyVisibility(String name,
Visibility visibility)
Alters the visibility of a property.
|
List<AlterPropertyVisibility> |
getAlterPropertyVisibilities() |
T |
getElement()
Gets the element this mutation is affecting.
|
IndexHint |
getIndexHint() |
Visibility |
getNewElementVisibility() |
Iterable<Property> |
getProperties()
Gets the properties currently in this mutation.
|
Iterable<PropertyRemoveMutation> |
getPropertyRemoves()
Gets the properties currently being removed in this mutation.
|
List<SetPropertyMetadata> |
getSetPropertyMetadatas() |
ExistingElementMutation<T> |
removeProperties(String name)
Removes all default properties with that name irregardless of visibility.
|
ExistingElementMutation<T> |
removeProperties(String key,
String name)
Removes all properties with this key and name irregardless of visibility.
|
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.
|
abstract 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.
|
ExistingElementMutation<T> |
setPropertyMetadata(Property property,
String metadataName,
Object newValue,
Visibility visibility)
Sets a property metadata value on a property.
|
ExistingElementMutation<T> |
setPropertyMetadata(String propertyName,
String metadataName,
Object newValue,
Visibility visibility)
Sets a property metadata value on a property.
|
ExistingElementMutation<T> |
setPropertyMetadata(String propertyKey,
String propertyName,
String metadataName,
Object newValue,
Visibility visibility)
Sets a property metadata value on a property.
|
public ExistingElementMutationImpl(T element)
public abstract T save(Authorizations authorizations)
ElementMutationsave in interface ElementMutation<T extends Element>public ElementMutation<T> setProperty(String name, Object value, Visibility visibility)
ElementMutationsetProperty in interface ElementMutation<T extends Element>name - The name of the property.value - The value of the property.visibility - The visibility to give this property.public ElementMutation<T> setProperty(String name, Object value, Metadata metadata, Visibility visibility)
ElementMutationsetProperty in interface ElementMutation<T extends Element>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.public ElementMutation<T> addPropertyValue(String key, String name, Object value, Visibility visibility)
ElementMutationaddPropertyValue in interface ElementMutation<T extends Element>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.public ElementMutation<T> addPropertyValue(String key, String name, Object value, Metadata metadata, Visibility visibility)
ElementMutationaddPropertyValue in interface ElementMutation<T extends Element>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.public Iterable<Property> getProperties()
ElementMutationgetProperties in interface ElementMutation<T extends Element>public Iterable<PropertyRemoveMutation> getPropertyRemoves()
ElementMutationgetPropertyRemoves in interface ElementMutation<T extends Element>public ElementMutation<T> removeProperty(Property property)
ElementMutationremoveProperty in interface ElementMutation<T extends Element>property - the property to remove.public ExistingElementMutation<T> removeProperties(String name)
ExistingElementMutationremoveProperties in interface ExistingElementMutation<T extends Element>name - the property name to remove.public ExistingElementMutation<T> removeProperties(String key, String name)
ExistingElementMutationremoveProperties in interface ExistingElementMutation<T extends Element>key - the key of the property to remove.name - the name of the property to remove.public ElementMutation<T> removeProperty(String name, Visibility visibility)
ElementMutationremoveProperty in interface ElementMutation<T extends Element>name - the property name to remove.visibility - the visibility of the property to remove.public ElementMutation<T> removeProperty(String key, String name, Visibility visibility)
ElementMutationremoveProperty in interface ElementMutation<T extends Element>key - the key of the property to remove.name - the name of the property to remove.visibility - the visibility of the property to remove.public ExistingElementMutation<T> alterPropertyVisibility(Property property, Visibility visibility)
ExistingElementMutationalterPropertyVisibility in interface ExistingElementMutation<T extends Element>property - The property to mutate.visibility - The new visibility.public ExistingElementMutation<T> alterPropertyVisibility(String name, Visibility visibility)
ExistingElementMutationalterPropertyVisibility in interface ExistingElementMutation<T extends Element>name - The name of the property to alter the visibility of.visibility - The new visibility.public ExistingElementMutation<T> alterPropertyVisibility(String key, String name, Visibility visibility)
ExistingElementMutationalterPropertyVisibility in interface ExistingElementMutation<T extends Element>key - The key of a multivalued property.name - The name of the property to alter the visibility of.visibility - The new visibility.public ExistingElementMutation<T> alterElementVisibility(Visibility visibility)
ExistingElementMutationalterElementVisibility in interface ExistingElementMutation<T extends Element>visibility - The new visibility.public ExistingElementMutation<T> setPropertyMetadata(Property property, String metadataName, Object newValue, Visibility visibility)
ExistingElementMutationsetPropertyMetadata in interface ExistingElementMutation<T extends Element>property - The property to mutate.metadataName - The name of the metadata.newValue - The new value.visibility - The visibility of the metadata itempublic ExistingElementMutation<T> setPropertyMetadata(String propertyName, String metadataName, Object newValue, Visibility visibility)
ExistingElementMutationsetPropertyMetadata in interface ExistingElementMutation<T extends Element>propertyName - The name of the property.metadataName - The name of the metadata.newValue - The new value.visibility - The visibility of the metadata itempublic ExistingElementMutation<T> setPropertyMetadata(String propertyKey, String propertyName, String metadataName, Object newValue, Visibility visibility)
ExistingElementMutationsetPropertyMetadata in interface ExistingElementMutation<T extends Element>propertyKey - The key of a multivalued property.propertyName - The name of the property.metadataName - The name of the metadata.newValue - The new value.visibility - The visibility of the metadata itempublic T getElement()
ExistingElementMutationgetElement in interface ExistingElementMutation<T extends Element>public Visibility getNewElementVisibility()
public List<AlterPropertyVisibility> getAlterPropertyVisibilities()
public List<SetPropertyMetadata> getSetPropertyMetadatas()
public IndexHint getIndexHint()
public ElementMutation<T> setIndexHint(IndexHint indexHint)
ElementMutationsetIndexHint in interface ElementMutation<T extends Element>Copyright © 2014–2015. All rights reserved.