use of org.janusgraph.graphdb.types.system.BaseLabel in project janusgraph by JanusGraph.
the class StandardJanusGraphTx method checkPropertyConstraintForEdgeOrCreatePropertyConstraint.
public void checkPropertyConstraintForEdgeOrCreatePropertyConstraint(StandardEdge edge, PropertyKey key) {
if (config.hasDisabledSchemaConstraints())
return;
EdgeLabel edgeLabel = edge.edgeLabel();
if (edgeLabel instanceof BaseLabel)
return;
Collection<PropertyKey> propertyKeys = edgeLabel.mappedProperties();
if (propertyKeys.contains(key))
return;
config.getAutoSchemaMaker().makePropertyConstraintForEdge(edgeLabel, key, this);
}
Aggregations