Skip to main content

%iKnow.Objects.VirtualEntityUnique

Class %iKnow.Objects.VirtualEntityUnique Extends %Persistent [ Deprecated, StorageStrategy = iKnowStorage, System = 4 ]

This is a read-only object representation wrapping the internal iKnow data structures for unique Entities in a Virtual Source.

This class can be used from ObjectScript or SQL to access a single or small number of entries, but the storage mappings are not meant to support elaborate or complex queries targeting this SQL table.

Please use the predefined queries in %iKnow.Queries.EntityAPI and other query classes to consult entity data as the internal global structures are designed to optimize performance for these queries rather than general-purpose access.

Parameters

READONLY

Parameter READONLY = 1;

Properties

DomainId

Property DomainId As %Integer;

VirtualSourceId

Property VirtualSourceId As %Integer;

EntUniId

Property EntUniId As %Integer;

RealEntUniId

Property RealEntUniId As %Integer [ Calculated, SqlComputeCode = {set {RealEntUniId} = $lg(^IRIS.IKV.EntUniDetails({DomainId},{VirtualSourceId},{EntUniId}),3) }, SqlComputed ];

EntityValue

Property EntityValue As %String(MAXLEN = 2000);

Frequency

Property Frequency As %Integer [ Calculated, SqlComputeCode = {set {Frequency} = {FrequencyAsConcept} + {FrequencyAsRelation}}, SqlComputed ];

FrequencyAsConcept

Property FrequencyAsConcept As %Integer [ Calculated, SqlComputeCode = {set {FrequencyAsConcept} = +$lg(^IRIS.IKV.EntUniDetails({DomainId},{VirtualSourceId},{EntUniId}),1) }, SqlComputed ];

FrequencyAsRelation

Property FrequencyAsRelation As %Integer [ Calculated, SqlComputeCode = {set {FrequencyAsRelation} = +$lg(^IRIS.IKV.EntUniDetails({DomainId},{VirtualSourceId},{EntUniId}),2) }, SqlComputed ];