Java Code Examples for org.apache.tinkerpop.gremlin.structure.util.GraphVariableHelper#validateVariable()
The following examples show how to use
org.apache.tinkerpop.gremlin.structure.util.GraphVariableHelper#validateVariable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Neo4jGraphVariables.java From tinkerpop with Apache License 2.0 | 5 votes |
@Override public void set(final String key, final Object value) { GraphVariableHelper.validateVariable(key, value); this.graph.tx().readWrite(); try { this.baseGraph.setProperty(key, value); } catch (final IllegalArgumentException e) { throw Graph.Variables.Exceptions.dataTypeOfVariableValueNotSupported(value, e); } }
Example 2
Source File: ArangoDBGraphVariables.java From arangodb-tinkerpop-provider with Apache License 2.0 | 5 votes |
@Override public void set(String key, Object value) { GraphVariableHelper.validateVariable(key, value); Object oldValue = this.store.put(key, value); if (oldValue != null) { if (!oldValue.equals(value)) { graph.getClient().updateGraphVariables(this); } } else { graph.getClient().updateGraphVariables(this); } }
Example 3
Source File: TinkerGraphVariables.java From tinkergraph-gremlin with Apache License 2.0 | 4 votes |
@Override public void set(final String key, final Object value) { GraphVariableHelper.validateVariable(key, value); this.variables.put(key, value); }
Example 4
Source File: TinkerGraphVariables.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public void set(final String key, final Object value) { GraphVariableHelper.validateVariable(key, value); this.variables.put(key, value); }