Class HybridDataObject

All Implemented Interfaces:
Serializable, DataObject, Persistent, Validating

public class HybridDataObject extends BaseDataObject
This data object like CayenneDataObject 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 be used always it may be a good idea to use CayenneDataObject instead. If you don't create attributes at runtime it is better to use BaseDataObject class.

Map creation is not thread safe, as DataObject in general not thread safe by it's own.

Since:
4.1
See Also: