EntityMetadataBuilder¶
- public interface EntityMetadataBuilder¶
The EntityMetadataBuilderImpl class is responsible for building jdo metadata for an entity class.
Methods¶
addBaseMetadata¶
- void addBaseMetadata(JDOMetadata jdoMetadata, ClassData classData)¶
Adds base information about package and class name to a javax.jdo.metadata.JDOMetadata instance.
Parameters: - jdoMetadata – an empty instance of javax.jdo.metadata.JDOMetadata.
- classData – an instance of org.motechproject.mds.domain.ClassData
addEntityMetadata¶
- void addEntityMetadata(JDOMetadata jdoMetadata, Entity entity)¶
Adds information about package and class name to a javax.jdo.metadata.JDOMetadata instance.
Parameters: - jdoMetadata – a empty instance of javax.jdo.metadata.JDOMetadata.
- entity – a instance of org.motechproject.mds.domain.Entity
addHelperClassMetadata¶
- void addHelperClassMetadata(JDOMetadata jdoMetadata, ClassData classData, Entity entity)¶
Creates metadata with basic information about package and class name to the javax.jdo.metadata.JDOMetadata instance. Additionally, fetches fields from passed entites and adds metadata for fields, if it’s necessary. If entity is null, it will work just like addBaseMetadata(JDOMetadata, ClassData) and won’t add any metadata for fields.
Parameters: - jdoMetadata – an empty instance of javax.jdo.metadata.JDOMetadata.
- classData – an instance of org.motechproject.mds.domain.ClassData
- entity – an entity to fetch fields from
fixEnhancerIssuesInMetadata¶
- void fixEnhancerIssuesInMetadata(JDOMetadata jdoMetadata)¶
This updates the metadata after enhancement. Nucleus makes some “corrections” which do not work with the runtime enhancer.