%SYS.Journal.Transaction
persistent class %SYS.Journal.Transaction extends %Library.Persistent
SQL Table Name: %SYS_Journal.Transaction
Property Inventory
Method Inventory
Parameters
parameter READONLY = 1;
Inherited description: READONLY = 1 means that objects can be created, opened but not saved or deleted.
Tables are projected to SQL as READONLY.
Properties
property File as %SYS.Journal.File [ Required ];
Property methods: FileGet(), FileGetObject(), FileGetObjectId(), FileGetSwizzled(), FileIsValid(), FileNewObject(), FileSet(), FileSetObject(), FileSetObjectId(), FileUnSwizzle()
property ProcessID as %Integer;
Property methods: ProcessIDDisplayToLogical(), ProcessIDGet(), ProcessIDIsValid(), ProcessIDLogicalToDisplay(), ProcessIDNormalize(), ProcessIDSet()
property Records as list of %SYS.Journal.Record;
Property methods: RecordsBuildValueArray(), RecordsCollectionToDisplay(), RecordsCollectionToOdbc(), RecordsDisplayToCollection(), RecordsGet(), RecordsGetObject(), RecordsGetObjectId(), RecordsGetSwizzled(), RecordsIsValid(), RecordsOdbcToCollection(), RecordsSet(), RecordsSetObject(), RecordsSetObjectId()
property TStart as %SYS.Journal.Record [ Required ];
Property methods: TStartGet(), TStartGetObject(), TStartGetObjectId(), TStartGetSwizzled(), TStartIsValid(), TStartNewObject(), TStartSet(), TStartSetObject(), TStartSetObjectId(), TStartUnSwizzle()
property TStartAddress as %Integer;
Property methods: TStartAddressDisplayToLogical(), TStartAddressGet(), TStartAddressIsValid(), TStartAddressLogicalToDisplay(), TStartAddressNormalize(), TStartAddressSet()
property TerminationType as %String;
Property methods: TerminationTypeDisplayToLogical(), TerminationTypeGet(), TerminationTypeIsValid(), TerminationTypeLogicalToDisplay(), TerminationTypeLogicalToOdbc(), TerminationTypeNormalize(), TerminationTypeSet()
Methods
Returns the job number of successive processes with open transactions.
classmethod GetTxJrnSize(tjrncnt As %Integer, tjrnoff As %Integer, ByRef tjrnbytes As %Integer) as %Status
Returns the number of bytes from starting journal file offset to current journal file offset.
classmethod GetTxJrnTime(tjrncnt As %Integer, tjrnoff As %Integer, ByRef timestamp As %Integer) as %Status
Returns the timestamp on the txstart record at journal file index and journal file offset.
classmethod GetVirtualLocation() as %String
Returns the virtual location of the TSTART of current transaction,
in the form of JournalFileName,JournalFileOffset,JournalFileCount.
Note that the TSTART may be physically located in the next file after journal switches.
Note that the TSTART may be physically located in the next file after journal switches.
Queries
query List(SizeMin As %Integer = 0)
Selects JobNum As %String, Pid As %String, JournalBytes As %Integer, JournalFile As %String, JournalRef As %Integer, StartOffset As %String, StartTime As %String
Query to get transaction metrics
SizeMin: limit transactions listed to those whose size exceeds this value.
JobNum: job number in pidtab
Pid: job process id
JournalBytes: number of bytes from starting journal file offset to current journal file offset.
JournalFile: full path name of starting journal file.
JournalRef: starting journal file refcount.
StartOffset: byte offset of TStart record in starting journal file.
StartTime: timestamp of the TStart record in $Horolog format
Indexes
index (TranId on File,TStart) [IdKey, Type = key];
Index methods: TranIdCheck(), TranIdDelete(), TranIdExists(), TranIdOpen(), TranIdSQLCheckUnique(), TranIdSQLExists(), TranIdSQLFindPKeyByConstraint(), TranIdSQLFindRowIDByConstraint()
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %AddToSyncSet()
- %BuildDeferredIndices()
- %BuildIndices()
- %BuildIndicesAsync()
- %BuildIndicesAsyncResponse()
- %CheckConstraints()
- %CheckConstraintsForExtent()
- %ClassIsLatestVersion()
- %ClassName()
- %ComposeOid()
- %ConstructClone()
- %Delete()
- %DeleteExtent()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GUID()
- %GUIDSet()
- %GetLock()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %IsA()
- %IsModified()
- %IsNull()
- %KillExtent()
- %LockExtent()
- %LockId()
- %New()
- %NormalizeObject()
- %ObjectIsNull()
- %ObjectModified()
- %Oid()
- %OnBeforeAddToSync()
- %OnDeleteFinally()
- %OnDetermineClass()
- %OnOpenFinally()
- %OnSaveFinally()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %PurgeIndices()
- %Reload()
- %RemoveFromSaveSet()
- %ResolveConcurrencyConflict()
- %RollBack()
- %Save()
- %SaveDirect()
- %SerializeObject()
- %SetModified()
- %SortBegin()
- %SortEnd()
- %SyncObjectIn()
- %SyncTransport()
- %UnlockExtent()
- %UnlockId()
- %ValidateIndices()
- %ValidateObject()
- %ValidateTable()