@SuppressWarnings("unchecked") @Override public <V> VertexProperty<V> property(final String key) { this.sqlgGraph.tx().readWrite(); if (this.removed) { throw new IllegalStateException(String.format("Vertex with id %s was removed.", id().toString())); } else { if (!sqlgGraph.tx().isInBatchMode()) { SqlgVertex sqlgVertex = this.sqlgGraph.tx().putVertexIfAbsent(this); if (sqlgVertex != this) { //sync the properties this.properties = sqlgVertex.properties; } } return (VertexProperty<V>) super.property(key); } }
public static SqlgVertex of(SqlgGraph sqlgGraph, ListOrderedSet<Comparable> identifiers, String schema, String table) { if (!sqlgGraph.tx().isInBatchMode()) { return sqlgGraph.tx().putVertexIfAbsent(sqlgGraph, schema, table, identifiers); } else { return new SqlgVertex(sqlgGraph, identifiers, schema, table); } }
public static SqlgVertex of(SqlgGraph sqlgGraph, Long id, String schema, String table) { if (!sqlgGraph.tx().isInBatchMode()) { return sqlgGraph.tx().putVertexIfAbsent(sqlgGraph, schema, table, id); } else { return new SqlgVertex(sqlgGraph, id, schema, table); } }
public static SqlgVertex of(SqlgGraph sqlgGraph, Long id, String schema, String table) { if (!sqlgGraph.tx().isInBatchMode()) { return sqlgGraph.tx().putVertexIfAbsent(sqlgGraph, schema, table, id); } else { return new SqlgVertex(sqlgGraph, id, schema, table); } }
public static SqlgVertex of(SqlgGraph sqlgGraph, ListOrderedSet<Comparable> identifiers, String schema, String table) { if (!sqlgGraph.tx().isInBatchMode()) { return sqlgGraph.tx().putVertexIfAbsent(sqlgGraph, schema, table, identifiers); } else { return new SqlgVertex(sqlgGraph, identifiers, schema, table); } }
@SuppressWarnings("unchecked") @Override public <V> VertexProperty<V> property(final String key) { this.sqlgGraph.tx().readWrite(); if (this.removed) { throw new IllegalStateException(String.format("Vertex with id %s was removed.", id().toString())); } else { if (!sqlgGraph.tx().isInBatchMode()) { SqlgVertex sqlgVertex = this.sqlgGraph.tx().putVertexIfAbsent(this); if (sqlgVertex != this) { //sync the properties this.properties = sqlgVertex.properties; } } return (VertexProperty<V>) super.property(key); } }