abortTransientTransaction Instruction

The abortTransientTransaction instruction undoes any changes made to shared transient objects since the previous beginTransientTransaction instruction and exits from transient transaction state. In addition, all transaction duration shared transient locks are released.

Syntax

The syntax of the abortTransientTransaction instruction is:

abortTransientTransaction;

Description

Transient transactions apply only to shared transient objects. (Use the abortTransaction instruction to abort the current transaction of a persistent object.)

If you use this instruction when not in transient transaction state, all transaction duration locks on shared transient objects will be released. For details about creating shared transient objects, see "create Instruction", later in this chapter. See also "Object Class", in Chapter 1 of the JADE Encyclopaedia of Classes.

Example

The following example shows the use of the abortTransientTransaction instruction.

deleteArray(theSharedArray: ObjectArray);
begin
    beginTransientTransaction;
        delete theSharedArray;
    abortTransientTransaction;
end;