<xml> </xml>

db4o |

# ObjectClass.persistStaticFieldValues Method

turns on storing static field values for this class.

void persistStaticFieldValues();

#### Remarks

turns on storing static field values for this class.
By default, static field values of classes are not stored to the database file. By turning the setting on for a specific class with this switch, all non-simple-typed static field values of this class are stored the first time an object of the class is stored, and restored, every time a database file is opened afterwards.
The setting will be ignored for simple types.
Use this setting for constant static object members.
This option will slow down the process of opening database files and the stored objects will occupy space in the database file.

#### See Also

ObjectClass Interface | com.db4o.config Namespace