Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 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);
 }
Esempio n. 8
0
 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);
 }
Esempio n. 10
0
        public BaseNodeConstraintCreator(InternalSchemaActions actions, Label label) : base(actions)
        {
            this.Label = label;

            AssertInUnterminatedTransaction();
        }
Esempio n. 11
0
 protected internal AbstractConstraintCreator(InternalSchemaActions actions)
 {
     this.Actions = actions;
 }
 protected internal PropertyConstraintDefinition(InternalSchemaActions actions)
 {
     this.Actions = requireNonNull(actions);
 }
Esempio n. 13
0
 public IndexCreatorImpl(InternalSchemaActions actions, Label label) : this(actions, label, null, new List <string>())
 {
 }
Esempio n. 14
0
 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)
 {
 }
Esempio n. 16
0
 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);
 }