makeObjectFrozen(object: Object);
The makeObjectFrozen method of the Object class conditionally changes the volatility state of the persistent object specified in the object parameter to frozen. Alternatively, you can call the changeObjectVolatility method to change the volatility state of an object. For details, see "
A frozen object can be updated only by first changing its volatility to stable or to volatile (that is, by calling the makeObjectStable or makeObjectVolatile method).