Class CayenneDataObject

All Implemented Interfaces:
Serializable, DataObject, Persistent, Validating

public class CayenneDataObject extends BaseDataObject
Implementation of DataObject that uses Map to store object fields.

This implementation was pre 4.1 default.

Since 4.1 it is recommended to use BaseDataObject as superclass (and it is actually default now), as it has better performance and lower memory consumption (much lower for small objects).

You may need to use this class only if you have some generic attributes created at runtime (also consider HybridDataObject in this case) or if any compatibility issues arise.

See Also: