Annotation Type PersistedStaticFieldValues


  • @Documented
    @Target(TYPE)
    @Retention(RUNTIME)
    public @interface PersistedStaticFieldValues
    turns on storing static field values for this class.

    By default, static field values of classes are not stored to the database file. By decoration 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.

    This annotation will be ignored for simple types.

    Use @PersistedStaticFieldValues 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.