Click or drag to resize

MdmDataManagerTModel Class

Represents a data manager which actually interacts with the underlying repository
Inheritance Hierarchy

Namespace: SanteDB.Persistence.MDM.Services.Resources
Assembly: SanteDB.Persistence.MDM (in SanteDB.Persistence.MDM.dll) Version: 3.0.2081-alpha+a75c6ef344438c8f05e3aa0d0480396778be147b
Syntax
public abstract class MdmDataManager<TModel> : MdmDataManager, 
	IDataManagedLinkProvider<TModel>, IDataManagedLinkProvider
where TModel : IdentifiedData, IHasTypeConcept, IHasClassConcept, IHasRelationships, ITaggable

Type Parameters

TModel

[Missing <typeparam name="TModel"/> documentation for "T:SanteDB.Persistence.MDM.Services.Resources.MdmDataManager`1"]

The MdmDataManagerTModel type exposes the following members.

Methods
 NameDescription
Public methodAddManagedReferenceLink Add a managed reference link
Public methodCreateLocalFor(IdentifiedData) Create a local for masterRecord.
(Inherited from MdmDataManager)
Public methodCreateLocalFor(TModel) Create local for the specified principal
Public methodCreateMasterContainerForMasterEntity Get a MDM Master for the specified local key
(Inherited from MdmDataManager)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodEstablishMasterFor Create a new master for the local
Public methodExtractRelationships Extracts the transactional components which might be in store and return them
Public methodFilterManagedReferenceLinks Get all managed reference links that are established
(Inherited from MdmDataManager)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAllMdmAssociations Get all MDM associations for this local
(Inherited from MdmDataManager)
Public methodGetAllMdmCandidateLocals Get all MDM candidate locals regardless of where they are attached
(Inherited from MdmDataManager)
Public methodGetAssociatedLocals Gets all local associations between masterKey and its master
(Inherited from MdmDataManager)
Public methodGetCandidateLocals Get all candidate associations between masterKey
(Inherited from MdmDataManager)
Public methodGetEstablishedCandidateMasters Get all associations for which this is a candidate to another master
(Inherited from MdmDataManager)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetIgnoredCandidateLocals Get ignore associations
(Inherited from MdmDataManager)
Public methodGetIgnoredMasters Get ignore associations
(Inherited from MdmDataManager)
Public methodGetLocalFor Get the local for masterKey owned by principal
(Inherited from MdmDataManager)
Public methodGetMasterFor(Guid) Get a MDM Master for the specified local key
(Inherited from MdmDataManager)
Public methodGetMasterFor(TModel) Get the master for the specified local
Public methodGetMasterRelationshipFor Get the master record for the specified local record
(Inherited from MdmDataManager)
Public methodGetRaw Gets the raw object from the underlying persistence service identified by the key (whether it is MASTER ENTITY or LOCAL or SYNTH)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsLocal Determine if the object is a local
(Inherited from MdmDataManager)
Public methodIsMaster(Guid) Determine if the object is a master
(Inherited from MdmDataManager)
Public methodIsMaster(TModel) Determine if the object is a master
Public methodIsOwner(Guid, IPrincipal) Determine if principal is the owner of localKey
(Inherited from MdmDataManager)
Public methodIsOwner(TModel, IPrincipal) Ensures that principal has access to a local data
Public methodIsRecordOfTruth Determine if the record is a ROT
Public methodMdmGet Get the master entity
(Inherited from MdmDataManager)
Public methodMdmQuery Synthesize the query
Public methodMdmTxDetectCandidates Given a MASTER detect LOCALS which might be candidates
(Inherited from MdmDataManager)
Public methodMdmTxIgnoreCandidateMatch Create transaction instructions to ignore candidate matches
(Inherited from MdmDataManager)
Public methodMdmTxMasterLink Create transaction instructions to establish MDM master link
(Inherited from MdmDataManager)
Public methodMdmTxMasterUnlink Create transaction instructions to unlink a master
(Inherited from MdmDataManager)
Public methodMdmTxMatchMasters(IdentifiedData, ListIdentifiedData) Match masters
(Overrides MdmDataManagerMdmTxMatchMasters(IdentifiedData, ListIdentifiedData))
Public methodMdmTxMatchMasters(TModel, IEnumerableIdentifiedData) Create transaction instructions which update local to match all masters
Public methodMdmTxMergeMasters Merge two master records together
(Inherited from MdmDataManager)
Public methodMdmTxObsolete Perform an MDM obsolete operation
Public methodMdmTxSaveLocal Create transaction instructions which update the data as a local
Public methodMdmTxSaveRecordOfTruth Create a transaction instructions which update data to be the ROT
Public methodMdmTxUnIgnoreCandidateMatch Un-ignore a candidiate match
(Inherited from MdmDataManager)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPromoteRecordOfTruth Converts the local to a ROT local
Public methodRefactorRelationships Refactor relationships
(Inherited from MdmDataManager)
Public methodRepointRelationshipsToLocals For any relationship where the local points to a MASTER which is not appropriate for MDM - remove
Public methodResolveGoldenRecord Resolve the golden record for the forSource or if forSource is the golden record return it back
(Overrides MdmDataManagerResolveGoldenRecord(IdentifiedData))
Public methodResolveManagedRecord(IdentifiedData) When a data management pattern (like MDM) masks or performs specialized linking or synthesization in the database this method will allow callers to have the data provider synthesize that data.
(Overrides MdmDataManagerResolveManagedRecord(IdentifiedData))
Public methodResolveManagedRecord(TModel) When a data management pattern (like MDM) masks or performs specialized linking or synthesization in the database this method will allow callers to have the data provider synthesize that data.
Public methodResolveOwnedRecord(IdentifiedData, IPrincipal) When a data management pattern (like MDM) performs compartmentalization of source data there is a need for the caller to get the record which is owned by ownerPrincipal to perform an update (this is common in MDM data imports and migrations)
(Overrides MdmDataManagerResolveOwnedRecord(IdentifiedData, IPrincipal))
Public methodResolveOwnedRecord(TModel, IPrincipal) Get master for forSource or, if it is already a master or not MDM controlled return forSource
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodValidateMdmState Validate the MDM state
Top
Events
 NameDescription
Public eventManagedLinkEstablished Fired when a managed link is established
(Inherited from MdmDataManager)
Public eventManagedLinkRemoved Fired when a managed link is removed
(Inherited from MdmDataManager)
Top
Fields
 NameDescription
Protected fieldm_adhocCache Ad-hoc cache
Protected fieldm_underlyingTypePersistence Persistence service
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also