Skip to main content

%iKnow.Objects.CrcOccurrence

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

Note: the use of this class is no longer recommended for accessing elements of a specific domain. For those scenarios, %iKnow.Tables.Utils offers a more flexible and customizable way of projecting iKnow domain data to SQL

This is a read-only object representation wrapping the internal iKnow data structures for CRC Occurrences.

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.CrcAPI and other query classes to consult CRC data as the internal global structures are designed to optimize performance for these queries rather than general-purpose access.

NOTE: This object assumes all underlying data structures are present. Use domain-specific copies of these objects for domains where not all indices are built. See also the GenerateAllObjectsForDomain() method in %iKnow.Objects.Utils.

Parameters

READONLY

Parameter READONLY = 1;

Properties

DomainId

Property DomainId As %Integer;

CrcOccurrenceId

Property CrcOccurrenceId As %Integer;

CrcUniId

Property CrcUniId As %Integer;

HeadOccId

Property HeadOccId As %Integer;

MasterOccId

Property MasterOccId As %Integer [ Calculated, Deprecated, Internal, SqlComputeCode = { set {MasterOccId} = {HeadOccId} }, SqlComputed ];

RelationOccId

Property RelationOccId As %Integer;

TailOccId

Property TailOccId As %Integer;

SlaveOccId

Property SlaveOccId As %Integer [ Calculated, Deprecated, Internal, SqlComputeCode = { set {SlaveOccId} = {TailOccId} }, SqlComputed ];

SentenceId

Property SentenceId As %Integer;

PosInSentence

Property PosInSentence As %Integer;

CcUniId

Property CcUniId As %Integer [ Calculated, SqlComputeCode = { n crc  set crc = $g(^IRIS.IK.CrcUniId({DomainId},{CrcUniId})), {CcUniId} = $g(^IRIS.IK.CcUni({DomainId},$lg(crc,1,0),$lg(crc,3,0))) }, SqlComputed ];

CrcUnique

Property CrcUnique As %iKnow.Objects.CrcUnique [ Calculated, SqlComputeCode = { set {CrcUnique} = {DomainId} _"||"_ {CrcUniId} }, SqlComputed ];

CcUnique

Property CcUnique As %iKnow.Objects.CcUnique [ Calculated, SqlComputeCode = { set {CcUnique} = {DomainId} _"||"_ {CcUniId} }, SqlComputed ];

Sentence

Property Sentence As %iKnow.Objects.Sentence [ Calculated, SqlComputeCode = {set {Sentence} = {DomainId} _ "||" _ {SentenceId}}, SqlComputed ];

SourceId

Property SourceId As %Integer [ Calculated, SqlComputeCode = {set {SourceId} = ##class(%iKnow.Queries.SentenceAPI).GetSourceId({DomainId},{SentenceId}) }, SqlComputed ];