protected internal NodeConstraintDefinition(InternalSchemaActions actions, IndexDefinition indexDefinition) : base(actions, indexDefinition) { if (indexDefinition.MultiTokenIndex) { throw new System.ArgumentException("Node constraints do not support multi-token definitions. That is, they cannot apply to more than one label, " + "but an attempt was made to create a node constraint on the following labels: " + labelNameList(indexDefinition.Labels, "", ".")); } this.LabelConflict = single(indexDefinition.Labels); }
private IndexCreatorImpl(InternalSchemaActions actions, Label label, Optional <string> indexName, ICollection <string> propertyKeys) { this._actions = actions; this._label = label; this._indexName = indexName; this._propertyKeys = propertyKeys; AssertInUnterminatedTransaction(); }
public IndexDefinitionImpl(InternalSchemaActions actions, IndexReference @ref, RelationshipType[] relTypes, string[] propertyKeys, bool constraintIndex) { this._actions = actions; this._indexReference = @ref; this._labels = null; this._relTypes = relTypes; this._propertyKeys = propertyKeys; this._constraintIndex = constraintIndex; AssertInUnterminatedTransaction(); }
public SchemaImpl(System.Func <KernelTransaction> transactionSupplier) { this._transactionSupplier = transactionSupplier; this._actions = new GDBSchemaActions(transactionSupplier); }
internal NodePropertyUniqueConstraintCreator(InternalSchemaActions internalCreator, Label label, string propertyKey) : base(internalCreator, label) { this.PropertyKeys.Add(propertyKey); }
protected internal MultiPropertyConstraintDefinition(InternalSchemaActions actions, IndexDefinition indexDefinition) : base(actions) { this.PropertyKeysConflict = RequireNonEmpty(Iterables.asArray(typeof(string), indexDefinition.PropertyKeys)); }
protected internal MultiPropertyConstraintDefinition(InternalSchemaActions actions, string[] propertyKeys) : base(actions) { this.PropertyKeysConflict = RequireNonEmpty(propertyKeys); }
public RelationshipPropertyExistenceConstraintDefinition(InternalSchemaActions actions, RelationshipType relationshipType, string propertyKey) : base(actions, relationshipType, propertyKey) { }
protected internal SinglePropertyConstraintDefinition(InternalSchemaActions actions, string propertyKey) : base(actions) { this.PropertyKey = requireNonNull(propertyKey); }
public BaseNodeConstraintCreator(InternalSchemaActions actions, Label label) : base(actions) { this.Label = label; AssertInUnterminatedTransaction(); }
protected internal AbstractConstraintCreator(InternalSchemaActions actions) { this.Actions = actions; }
protected internal PropertyConstraintDefinition(InternalSchemaActions actions) { this.Actions = requireNonNull(actions); }
public IndexCreatorImpl(InternalSchemaActions actions, Label label) : this(actions, label, null, new List <string>()) { }
protected internal NodeConstraintDefinition(InternalSchemaActions actions, Label label, string[] propertyKeys) : base(actions, propertyKeys) { this.LabelConflict = requireNonNull(label); }
public NodeKeyConstraintDefinition(InternalSchemaActions actions, IndexDefinition indexDefinition) : base(actions, indexDefinition) { }
public UniquenessConstraintDefinition(InternalSchemaActions actions, IndexDefinition indexDefinition) : base(actions, indexDefinition) { }
public NodePropertyExistenceConstraintDefinition(InternalSchemaActions actions, Label label, string[] propertyKeys) : base(actions, label, propertyKeys) { }
protected internal RelationshipConstraintDefinition(InternalSchemaActions actions, RelationshipType relationshipType, string propertyKey) : base(actions, propertyKey) { this.RelationshipTypeConflict = requireNonNull(relationshipType); }