Class HybridPersistentObject

java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.HybridPersistentObject
All Implemented Interfaces:
Serializable, Persistent, Validating

public class HybridPersistentObject extends PersistentObject
This data object like GenericPersistentObject uses Map to store generic attributes, only difference is that this Map will be created lazily at first write, thus reducing memory penalty if possible.

This class can be used as superclass for objects that have attributes created at runtime. If generic runtime attributes will always be used it may be a good idea to use GenericPersistentObject instead. If you don't create attributes at runtime it is better to use PersistentObject class.

Map creation is not thread safe, as PersistentObject in general not thread safe by its own.

Since:
4.1, 5.0, renamed from HybridDataObject
See Also: