
Package ca.uhn.fhir.mdm.dao
Class MdmLinkFactory<M extends IMdmLink>
java.lang.Object
ca.uhn.fhir.mdm.dao.MdmLinkFactory<M>
Creates a new
**Use extreme caution**. The recommended practice is to only use (@link #newMdmLink()} when WRITING an MDM record.
Otherwise, there is the risk that code that searches for an MDM record fill fail to locate it due to a version mismatch.
Database code makes use of SpringData
IMdmLink either with the current IMdmSettings.getRuleVersion() or with a null version.
**Use extreme caution**. The recommended practice is to only use (@link #newMdmLink()} when WRITING an MDM record.
Otherwise, there is the risk that code that searches for an MDM record fill fail to locate it due to a version mismatch.
Database code makes use of SpringData
Example queries.-
Constructor Summary
ConstructorsConstructorDescriptionMdmLinkFactory(IMdmSettings theMdmSettings, IMdmLinkImplFactory<M> theMdmLinkImplFactory) -
Method Summary
-
Constructor Details
-
MdmLinkFactory
@Autowired public MdmLinkFactory(IMdmSettings theMdmSettings, IMdmLinkImplFactory<M> theMdmLinkImplFactory)
-
-
Method Details
-
newMdmLink
Create a newIMdmLink, populating it with the version of the ruleset used to create it. Use this method **only** when writing a new MDM record.- Returns:
- the new
IMdmLink
-
newMdmLinkVersionless
Creating a newIMdmLinkwith the version deliberately omitted. It will return as null. This is the recommended use when querying for any MDM records
-