commitTransientTransaction Instruction

The commitTransientTransaction instruction releases all transaction duration shared transient locks and exit transient transaction state.

Syntax

The syntax of the commitTransientTransaction instruction is:

commitTransientTransaction;

Description

Transient transactions apply only to shared transient objects. (Use the commitTransaction instruction to update persistent objects.)

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.

The commitTransientTransaction instruction commits updates to shared transient objects and releases the updated objects so that other processes can lock them and view the updates.

For details about the restrictions that apply to transactions when using the serverExecution or clientExecution method option, see "Server and Client Execution Restrictions", earlier in this chapter.

Example

The following example shows the use of the commitTransientTransaction instruction.

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