175176177178179180181182183184185
final OProperty prop = cls.createProperty(propertyName, propertyType); break; } } iResponse.send(OHttpUtils.STATUS_CREATED_CODE, OHttpUtils.STATUS_CREATED_DESCRIPTION, OHttpUtils.CONTENT_TEXT_PLAIN, cls .properties().size(), null); return false; }
12331234123512361237123812391240124112421243
if (settings.useClassForEdgeLabel) { // CHECK IF THE EDGE CLASS HAS SPECIAL CONSTRAINTS final OClass cls = graph.getEdgeType(label); if (cls != null) for (OProperty p : cls.properties()) { if (p.isMandatory() || p.isNotNull() || !p.getOwnerClass().getInvolvedIndexes(p.getName()).isEmpty()) return false; } }
342343344345346347348349350351352
if (graph.isUseClassForEdgeLabel()) { // CHECK IF THE EDGE CLASS HAS SPECIAL CONSTRAINTS final OClass cls = graph.getEdgeType(label); if (cls != null) for (OProperty p : cls.properties()) { if (p.isMandatory() || p.isNotNull()) return false; } }