Compartir a través de


Partition Class

Definition

Extends Partition with immutability support

public ref class Partition sealed : IDisposable
public sealed class Partition : IDisposable
type Partition = class
    interface IDisposable
Public NotInheritable Class Partition
Implements IDisposable
Inheritance
Partition
Implements

Constructors

Partition(Store)

Constructor

Properties

AlternateId

The AlternateId is used in the

Contexts

The Contexts that are referenced by the Partition. The Dictionary keys are the IDs of the Contexts. The Dictionary values are the Context instances.

DirtyCount

Indicates the number of changes to the Partition.

DomainDataDirectory

Gets domain information directory of the Store this partition belongs to.

ElementDirectory

Directory of elements contained within partition.

ElementFactory

The ElementFactory for the model

Id

The Id of this Partition.

IsDirty

Indicates true when the Partition is in a dirty state.

IsReadOnly

Gets whether this partition is read-only.

StateId

A StateId that defines what state this Partition object is in.

Store

The Store the Partition belongs to.

Methods

AddContext(Context)

Add context to partition

DeleteElements(IEnumerable<ModelElement>, Guid[])

Delete the object graphs rooted in the specified collection of elements.

Dispose()

Disposes the state of this object.

Finalize()

Destructor.

FindByAlternateId(Store, Object)

Find a partition by its AlternateKey

GetClosureList(ICollection<ModelElement>, ClosureType, Boolean, IEnumerable<DomainRoleInfo>, IEnumerable<DomainRoleInfo>)

Gets a closure list of the given type based on the given root element list

GetClosureList(ICollection<ModelElement>, ClosureType, Boolean, IEnumerable<DomainRoleInfo>)

Gets a closure list of the given type based on the given root element list

GetClosureList(ICollection<ModelElement>, ClosureType, Boolean)

Gets a closure list of the given type based on the given root element list

GetClosureList(ICollection<ModelElement>, ClosureType, IEnumerable<DomainRoleInfo>, IEnumerable<DomainRoleInfo>)

Gets a closure list of the given type based on the given root element list

GetClosureList(ICollection<ModelElement>, ClosureType, IEnumerable<DomainRoleInfo>)

Gets a closure list of the given type based on the given root element list

GetClosureList(ICollection<ModelElement>, ClosureType)

Gets a closure list of the given type based on the given root element list

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType, Boolean)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

RemoveContext(Context)

Method to remove a Context from the Partition

Events

PartitionDisposing

Allows clients to receive PartitionDisposing events

Extension Methods

CanDeleteElements(Partition, IEnumerable<ModelElement>, Guid[])

Query whether a specified set of elements can be deleted, taking into account any IMS locks applicable to any of the elements in the complete delete closure of the elements. The elements cannot be deleted if any element in the closure is Delete locked, or if any element is the target of a link sourced on an element with the RolePlayer lock AND that element is outside the closure.

GetLocks(Partition)

Get the lock flags for this Partition instance. This will include any locks enabled on the Store containing the partition.

IsLocked(Partition, Locks)

Test whether this partition has any of a specified set of locks

SetLocks(Partition, Locks)

Set the lock flags of the specified Partition instance

Applies to