org.datanucleus.metadata.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datanucleus-core Show documentation
Show all versions of datanucleus-core Show documentation
DataNucleus Core provides the primary components of a heterogenous Java persistence solution.
It supports persistence API's being layered on top of the core functionality.
Provides classes representing the MetaData for files, packages, classes, fields, containers, etc.
Structured to map to the JDO2 Meta-Data file structure, though also now maps to the JPA Meta-Data structure
approximately.
Key aspects of this package are
- MetaDataManager is the entry point into this package. A call is typically made to getMetaDataForClass
and the MetaDataManager will take care of finding the MetaData, parsing any files, and populating the MetaData.
- MetaDataMerger is responsible for merging annotations with metadata, and JDO MetaData with ORM MetaData
- FileMetaData is the top level of a metadata representation, represening the actual file. It will contain
metadata for a series of packages, etc. The components are laid out in a tree
- ClassMetaData is the most used class, and is the representation of the persistence of a class.
It contains a series of FieldMetaData/PropertyMetaDataobjects, representing the fields and properties
of the class.
The "data" classes have a lifecycle, being created, then populated, and finally initialised. When a file is read in
all classes are read and populated at that time.