Skip to main content

%SYS.Journal.SetKillRecord

Class %SYS.Journal.SetKillRecord Extends %SYS.Journal.Record [ System = 4 ]

Journal SET/KILL record related API

Parameters

READONLY

Parameter READONLY = 1;

Properties

ClusterSequence

Property ClusterSequence As %Integer [ Calculated ];

Cluster journal sequence number of the record on a clustered system or 0 otherwise

DatabaseName

Property DatabaseName As %SysPath [ Calculated ];

Directory path of the database updated by the SET or KILL

MirrorDatabaseName

Property MirrorDatabaseName As %String [ Calculated ];

Mirror database name of the database updated by the SET or KILL if it is a mirrored database

GlobalReference

Property GlobalReference As %VarString [ Calculated ];

Extended global reference of the SET or KILL

GlobalNode

Property GlobalNode As %VarString [ Calculated ];

Global node of the SET or KILL (GlobalReference minus the namespace)

NumberOfValues

Property NumberOfValues As %Integer [ Calculated ];

Number of data values stored in the record. It can be 0, 1 or 2 depending on whether the record is a SET or KILL and whether it is in a transaction.

NewValue

Property NewValue As %VarString [ Calculated ];

(For SET record only) The value the global node was set to

OldValue

Property OldValue As %VarString [ Calculated ];

(For InTransaction record only) The value of the global node prior to the SET or KILL

Collation

Property Collation As %Integer [ Calculated ];

The collation of the subscripts in GlobalNode

Methods

%LoadData

Method %LoadData(Offset As %String, flag As %Boolean) As %Status [ Private ]

ClusterSequenceGet

Method ClusterSequenceGet() As %Integer

DatabaseNameGet

Method DatabaseNameGet() As %String

MirrorDatabaseNameGet

Method MirrorDatabaseNameGet() As %String [ CodeMode = expression ]

GlobalReferenceGet

Method GlobalReferenceGet() As %String

GlobalNodeGet

Method GlobalNodeGet() As %String

NumberOfValuesGet

Method NumberOfValuesGet() As %Integer [ CodeMode = expression ]

ExistsNewValue

Method ExistsNewValue() As %Boolean [ CodeMode = expression ]

TRUE if there is a NewValue (including "") in the record

ExistsOldValue

Method ExistsOldValue() As %Boolean [ CodeMode = expression ]

TRUE if there is an OldValue (including "") in the record

NewValueGet

Method NewValueGet() As %String [ CodeMode = expression ]

OldValueGet

Method OldValueGet() As %String [ CodeMode = expression ]

CollationGet

Method CollationGet() As %Integer

Restore

Method Restore(Detail As %Integer) As %Status

Restore a SET or KILL

Fetch

Method Fetch(ByRef Row As %List, ByRef Columns As %String, Match As %List = "") As %Boolean [ Internal, PublicList = (col, match, Row, Columns) ]