Home > Class Reference > %SYS namespace > %SYNC.ObjectLog

%SYNC.ObjectLog

class %SYNC.ObjectLog extends %Library.RegisteredObject

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).<METHOD>%New</METHOD>(guid,startTtransaction,endTransaction)
  Write ol.log.Size
  

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property EndTransaction as %Integer;
Property methods: EndTransactionDisplayToLogical(), EndTransactionGet(), EndTransactionIsValid(), EndTransactionLogicalToDisplay(), EndTransactionNormalize(), EndTransactionSet()
property StartTransaction as %Integer;
Property methods: StartTransactionDisplayToLogical(), StartTransactionGet(), StartTransactionIsValid(), StartTransactionLogicalToDisplay(), StartTransactionNormalize(), StartTransactionSet()
property guid as %String;
Property methods: guidDisplayToLogical(), guidGet(), guidIsValid(), guidLogicalToDisplay(), guidLogicalToOdbc(), guidNormalize(), guidSet()
property log as %ListOfObjects;
Property methods: logGet(), logGetObject(), logGetObjectId(), logGetSwizzled(), logIsEmpty(), logIsValid(), logNewObject(), logSet(), logSetObject(), logSetObjectId(), logUnSwizzle()

Methods (Including Private)

private method %OnNew(guid, StartTransaction, EndTransaction) as %Status [ Language = objectscript ]
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

Inherited Members

Inherited Methods (Including Private)

FeedbackOpens in a new window