private void SetDescriptor() { XTableDescriptorSetCommand command = new XTableDescriptorSetCommand(this.Descriptor); CommandCollection collection = new CommandCollection(1); collection.Add(command); collection = StorageEngine.Execute(this.Descriptor, collection); XTableDescriptorSetCommand resultCommand = (XTableDescriptorSetCommand)collection[0]; }
private ICommand SetXIndexDescriptor(XTable table, ICommand command) { XTableDescriptorSetCommand cmd = (XTableDescriptorSetCommand)command; Descriptor descriptor = (Descriptor)cmd.Descriptor; if (descriptor.Tag != null) { table.Descriptor.Tag = descriptor.Tag; } return(new XTableDescriptorSetCommand(descriptor)); }
/// <summary> /// Updates the local descriptor with the changes from the remote /// and retrieves up to date descriptor from the local server. /// </summary> private void UpdateDescriptor() { ICommand command = null; CommandCollection collection = new CommandCollection(1); // Set the local descriptor command = new XTableDescriptorSetCommand(this.Descriptor); collection.Add(command); StorageEngine.Execute(this.Descriptor, collection); // Get the local descriptor command = new XTableDescriptorGetCommand(this.Descriptor); collection.Clear(); collection.Add(command); collection = StorageEngine.Execute(this.Descriptor, collection); XTableDescriptorGetCommand resultCommand = (XTableDescriptorGetCommand)collection[0]; this.Descriptor = resultCommand.Descriptor; }