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 |
|---|---|
ExistingElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
String key,
Value value,
Long timestamp,
Visibility visibility)
Adds an extended data cell to the element.
|
ExistingElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
String key,
Value value,
Visibility visibility)
Adds an extended data cell to the element.
|
ExistingElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
Value value,
Long timestamp,
Visibility visibility)
Adds an extended data cell to the element.
|
ExistingElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
Value value,
Visibility visibility)
Adds an extended data cell to the element.
|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Value value,
Metadata metadata,
Long timestamp,
Visibility visibility)
Adds or updates a property.
|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Value value,
Metadata metadata,
Visibility visibility)
Adds or updates a property.
|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Value 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.
|
ElementMutation<T> |
deleteExtendedData(String tableName,
String row)
Deletes an extended data row from an element.
|
ExistingElementMutation<T> |
deleteExtendedData(String tableName,
String row,
String column,
String key,
Visibility visibility)
Deletes an extended data cell from an element.
|
ExistingElementMutation<T> |
deleteExtendedData(String tableName,
String row,
String column,
Visibility visibility)
Deletes an extended data cell from an element.
|
ElementMutation<T> |
deleteExtendedDataTable(String tableName)
Deletes an extended data table and its rows from an element.
|
ExistingElementMutation<T> |
deleteProperties(String name)
Permanently deletes all default properties with that name irregardless of visibility.
|
ExistingElementMutation<T> |
deleteProperties(String key,
String name)
Permanently deletes all properties with this key and name irregardless of visibility.
|
ElementMutation<T> |
deleteProperty(Property property)
Deletes a property.
|
ElementMutation<T> |
deleteProperty(String key,
String name,
Visibility visibility)
Deletes a property.
|
ElementMutation<T> |
deleteProperty(String name,
Visibility visibility)
Deletes the default property with that name.
|
List<AlterPropertyVisibility> |
getAlterPropertyVisibilities()
Gets the properties whose visibilities are being altered in this mutation.
|
T |
getElement()
Gets the element this mutation is affecting.
|
ElementType |
getElementType()
Get the type of the element
|
Iterable<ExtendedDataMutation> |
getExtendedData()
Gets the extended data mutations.
|
Iterable<ExtendedDataDeleteMutation> |
getExtendedDataDeletes()
Gets the extended data columns currently being deleted in this mutation
|
String |
getId()
get the id of the element
|
IndexHint |
getIndexHint()
Gets the currently set index hint.
|
Visibility |
getNewElementVisibility()
Get the new element visibility or null if not being altered in this mutation.
|
Visibility |
getOldElementVisibility()
Get the old element visibility.
|
Iterable<Property> |
getProperties()
Gets the properties currently in this mutation.
|
Iterable<PropertyDeleteMutation> |
getPropertyDeletes()
Gets the properties currently being deleted in this mutation.
|
Iterable<PropertySoftDeleteMutation> |
getPropertySoftDeletes()
Gets the properties currently being soft deleted in this mutation.
|
List<SetPropertyMetadata> |
getSetPropertyMetadatas()
Gets all of the property metadata changes that are part of this mutation.
|
Visibility |
getVisibility()
the visibility of the element.
|
boolean |
hasChanges()
true, if this mutation has any changes.
|
ExistingElementMutationImpl |
overrideAlterPropertyVisibilities(List<AlterPropertyVisibility> alterPropertyVisibilities) |
ExistingElementMutationImpl |
overrideExtendedDataDeletes(List<ExtendedDataDeleteMutation> extendedDataDeletes) |
ExistingElementMutationImpl |
overrideExtendedDatas(List<ExtendedDataMutation> extendedDatas) |
ExistingElementMutationImpl |
overrideNewElementVisibility(Visibility newElementVisibility) |
ExistingElementMutationImpl |
overrideOldElementVisibility(Visibility oldElementVisibility) |
ExistingElementMutationImpl |
overrideProperties(List<Property> properties) |
ExistingElementMutationImpl |
overridePropertyDeletes(List<PropertyDeleteMutation> propertyDeletes) |
ExistingElementMutationImpl |
overridePropertySoftDeletes(List<PropertySoftDeleteMutation> propertySoftDeletes) |
ExistingElementMutationImpl |
overrideSetPropertyMetadatas(List<SetPropertyMetadata> setPropertyMetadatas) |
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,
Value value,
Metadata metadata,
Visibility visibility)
Sets or updates a property value.
|
ElementMutation<T> |
setProperty(String name,
Value value,
Visibility visibility)
Sets or updates a property value.
|
ExistingElementMutation<T> |
setPropertyMetadata(Property property,
String metadataName,
Value newValue,
Visibility visibility)
Sets a property metadata value on a property.
|
ExistingElementMutation<T> |
setPropertyMetadata(String propertyKey,
String propertyName,
String metadataName,
Value newValue,
Visibility visibility)
Sets a property metadata value on a property.
|
ExistingElementMutation<T> |
setPropertyMetadata(String propertyName,
String metadataName,
Value newValue,
Visibility visibility)
Sets a property metadata value on a property.
|
ExistingElementMutation<T> |
softDeleteProperties(String name)
Soft deletes all default properties with that name irregardless of visibility.
|
ExistingElementMutation<T> |
softDeleteProperties(String key,
String name)
Soft deletes all properties with this key and name irregardless of visibility.
|
ElementMutation<T> |
softDeleteProperty(Property property)
Soft deletes a property.
|
ElementMutation<T> |
softDeleteProperty(String key,
String name,
Visibility visibility)
Soft deletes a property.
|
ElementMutation<T> |
softDeleteProperty(String name,
Visibility visibility)
Soft deletes the default property with that name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedge, vertexpublic ExistingElementMutationImpl(T element)
public ExistingElementMutationImpl overrideProperties(List<Property> properties)
public ExistingElementMutationImpl overridePropertyDeletes(List<PropertyDeleteMutation> propertyDeletes)
public ExistingElementMutationImpl overridePropertySoftDeletes(List<PropertySoftDeleteMutation> propertySoftDeletes)
public ExistingElementMutationImpl overrideAlterPropertyVisibilities(List<AlterPropertyVisibility> alterPropertyVisibilities)
public ExistingElementMutationImpl overrideSetPropertyMetadatas(List<SetPropertyMetadata> setPropertyMetadatas)
public ExistingElementMutationImpl overrideExtendedDatas(List<ExtendedDataMutation> extendedDatas)
public ExistingElementMutationImpl overrideExtendedDataDeletes(List<ExtendedDataDeleteMutation> extendedDataDeletes)
public ExistingElementMutationImpl overrideOldElementVisibility(Visibility oldElementVisibility)
public ExistingElementMutationImpl overrideNewElementVisibility(Visibility newElementVisibility)
public abstract T save(Authorizations authorizations)
ElementMutationsave in interface ElementMutation<T extends Element>public ElementMutation<T> setProperty(String name, Value 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, Value 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, Value 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, Value 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 ElementMutation<T> addPropertyValue(String key, String name, Value value, Metadata metadata, Long timestamp, 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.timestamp - The timestamp of the property.visibility - The visibility to give this property.public Iterable<Property> getProperties()
ElementMutationgetProperties in interface ElementMutation<T extends Element>public Iterable<PropertyDeleteMutation> getPropertyDeletes()
ElementMutationgetPropertyDeletes in interface ElementMutation<T extends Element>public Iterable<PropertySoftDeleteMutation> getPropertySoftDeletes()
ElementMutationgetPropertySoftDeletes in interface ElementMutation<T extends Element>public Iterable<ExtendedDataMutation> getExtendedData()
ElementMutationgetExtendedData in interface ElementMutation<T extends Element>public ElementMutation<T> deleteProperty(Property property)
ElementMutationdeleteProperty in interface ElementMutation<T extends Element>property - the property to delete.public Iterable<ExtendedDataDeleteMutation> getExtendedDataDeletes()
ElementMutationgetExtendedDataDeletes in interface ElementMutation<T extends Element>public ExistingElementMutation<T> deleteProperties(String name)
ExistingElementMutationdeleteProperties in interface ExistingElementMutation<T extends Element>name - the property name to delete.public ExistingElementMutation<T> deleteProperties(String key, String name)
ExistingElementMutationdeleteProperties in interface ExistingElementMutation<T extends Element>key - the key of the property to delete.name - the name of the property to delete.public ElementMutation<T> deleteProperty(String name, Visibility visibility)
ElementMutationdeleteProperty in interface ElementMutation<T extends Element>name - the property name to delete.visibility - the visibility of the property to delete.public ElementMutation<T> deleteProperty(String key, String name, Visibility visibility)
ElementMutationdeleteProperty in interface ElementMutation<T extends Element>key - the key of the property to delete.name - the name of the property to delete.visibility - the visibility of the property to delete.public ElementMutation<T> softDeleteProperty(Property property)
ElementMutationsoftDeleteProperty in interface ElementMutation<T extends Element>property - the property to soft delete.public ExistingElementMutation<T> softDeleteProperties(String name)
ExistingElementMutationsoftDeleteProperties in interface ExistingElementMutation<T extends Element>name - the property name to delete.public ExistingElementMutation<T> softDeleteProperties(String key, String name)
ExistingElementMutationsoftDeleteProperties in interface ExistingElementMutation<T extends Element>key - the key of the property to delete.name - the name of the property to delete.public ElementMutation<T> softDeleteProperty(String name, Visibility visibility)
ElementMutationsoftDeleteProperty in interface ElementMutation<T extends Element>name - the property name to soft delete.visibility - the visibility of the property to soft delete.public ElementMutation<T> softDeleteProperty(String key, String name, Visibility visibility)
ElementMutationsoftDeleteProperty in interface ElementMutation<T extends Element>key - the key of the property to soft delete.name - the name of the property to soft delete.visibility - the visibility of the property to soft delete.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, Value 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, Value 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, Value 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 ExistingElementMutation<T> addExtendedData(String tableName, String row, String column, Value value, Visibility visibility)
ElementMutationaddExtendedData in interface ElementMutation<T extends Element>tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.value - The cell value.visibility - The visibility of the value.public ExistingElementMutation<T> addExtendedData(String tableName, String row, String column, Value value, Long timestamp, Visibility visibility)
ElementMutationaddExtendedData in interface ElementMutation<T extends Element>tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.value - The cell value.timestamp - The timestamp of the value. null, to automatically generate one.visibility - The visibility of the value.public ExistingElementMutation<T> addExtendedData(String tableName, String row, String column, String key, Value value, Visibility visibility)
ElementMutationaddExtendedData in interface ElementMutation<T extends Element>tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.key - The column multi-value key.value - The cell value.visibility - The visibility of the value.public ExistingElementMutation<T> addExtendedData(String tableName, String row, String column, String key, Value value, Long timestamp, Visibility visibility)
ElementMutationaddExtendedData in interface ElementMutation<T extends Element>tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.key - The column multi-value key.value - The cell value.timestamp - The timestamp of the value. null, to automatically generate one.visibility - The visibility of the value.public ExistingElementMutation<T> deleteExtendedData(String tableName, String row, String column, Visibility visibility)
ElementMutationdeleteExtendedData in interface ElementMutation<T extends Element>tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.visibility - The visibility of the value.public ElementMutation<T> deleteExtendedData(String tableName, String row)
ElementMutationdeleteExtendedData in interface ElementMutation<T extends Element>tableName - The extended data table to add the cell to.row - The row to add the cell to.public ElementMutation<T> deleteExtendedDataTable(String tableName)
ElementMutationdeleteExtendedDataTable in interface ElementMutation<T extends Element>tableName - The extended data table to delete.public ExistingElementMutation<T> deleteExtendedData(String tableName, String row, String column, String key, Visibility visibility)
ElementMutationdeleteExtendedData in interface ElementMutation<T extends Element>tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.key - The column multi-value key.visibility - The visibility of the value.public T getElement()
ExistingElementMutationgetElement in interface ExistingElementMutation<T extends Element>public ElementType getElementType()
ElementIdgetElementType in interface ElementIdgetElementType in interface ElementMutation<T extends Element>public Visibility getVisibility()
ElementLocationgetVisibility in interface ElementLocationpublic Visibility getNewElementVisibility()
ExistingElementMutationgetNewElementVisibility in interface ExistingElementMutation<T extends Element>public Visibility getOldElementVisibility()
ExistingElementMutationgetOldElementVisibility in interface ExistingElementMutation<T extends Element>public List<AlterPropertyVisibility> getAlterPropertyVisibilities()
ExistingElementMutationgetAlterPropertyVisibilities in interface ExistingElementMutation<T extends Element>public List<SetPropertyMetadata> getSetPropertyMetadatas()
ExistingElementMutationgetSetPropertyMetadatas in interface ExistingElementMutation<T extends Element>public IndexHint getIndexHint()
ElementMutationgetIndexHint in interface ElementMutation<T extends Element>public ElementMutation<T> setIndexHint(IndexHint indexHint)
ElementMutationsetIndexHint in interface ElementMutation<T extends Element>public boolean hasChanges()
ElementMutationhasChanges in interface ElementMutation<T extends Element>Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.