Skip to main content

%SYNC.ObjectLog

Class %SYNC.ObjectLog Extends %RegisteredObject [ System = 4 ]

The %SYNC.ObjectLog class is used for retrieval of the collection of %Library.ObjectJournalRecord entries related to a given class instance modifications ( the corresponding class should be both GUID enabled and journalled). The %New method accepts three arguments: the guid, start time and end time. Only the modifications occured in a specified interval are included in the collection. s ol=##class(%SYNC.ObjectLog).%New(guid,startTtransaction,endTransaction) Write ol.log.Size

Properties

StartTransaction

Property StartTransaction As %Integer;

EndTransaction

Property EndTransaction As %Integer;

guid

Property guid As %String;

log

Property log As %ListOfObjects;

Methods

%OnNew

Method %OnNew(guid, StartTransaction, EndTransaction) As %Status [ Private, ProcedureBlock = 1 ]

This callback method is invoked by the %New method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status