getObjectVolatility

getObjectVolatility(object: Object): Integer;

The getObjectVolatility method of the Object class returns the volatility state of the persistent object specified in the object parameter. For details, see "Cache Concurrency", in Chapter 6 of the JADE Developer’s Reference.

Use the getObjectVolatility method to determine the volatility state of a persistent object. (All transient objects are considered volatile.)

The Schema Inspector displays class and object volatility by default, which enables you to check whether objects and collections are set to stable or frozen without having to write code to determine the volatility state of an object or collection.

This method returns the volatility state of the object, represented by one of the following global constants in the ObjectVolatility category.

Global Constant Integer Value Description
Volatility_Frozen #04 Object is frozen (that is, it is not updated)
Volatility_Stable #08 Object is stable (that is, it is updated infrequently)
Volatility_Volatile #00 Object is volatile (that is, it is updated often)