prohibitPersistentUpdates

prohibitPersistentUpdates(prohibited: Boolean): Boolean updating;

Set the prohibited parameter in the prohibitPersistentUpdates method of the Process class to true if you do not want persistent objects in the current process to be updated. When the updating of persistent objects is prohibited in the current process, any attempt to do so raises a 1271 exception (that is, An attempt was made to perform an operation that is prohibited in this context). If the updating of persistent objects is prohibited (or allowed) for a method executing on a client node and a serverExecution method is called, the updating of persistent objects will also be prohibited (or allowed) on the server node. This also applies when method execution switches from the server to the client.

When the updating of persistent objects in the process of the receiver is prohibited, the following operations are also prohibited.

When the updating of persistent objects in the process is prohibited, setting the value of the prohibited parameter to false removes the prohibition and allows persistent objects to once again be updated.

The abortTransaction instruction can still be executed, even if the prohibition is in place. Executing the abortTransaction instruction removes the prohibition.

The prohibitPersistentUpdates method returns true only if the current process was already prohibiting the updating of persistent objects.

This method applies only to the current process.

The prohibitPersistentUpdates method is designed to prevent unexpected updates to persistent objects. It is not intended to be a comprehensive security measure.