org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl#predeploy Note
The Session's Project is is scanned to ensure that weaving is
supported and is modified to suit (set the org.
for the Descriptor).
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| protected Map | |
| protected ClassLoader | |
| protected Collection | |
| protected Session | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | TransformerFactory(Session session, Collection<MetadataClass> entityClasses, ClassLoader classLoader, boolean weaveLazy, boolean weaveChangeTracking, boolean weaveFetchGroups, boolean weaveInternal, boolean weaveRest, boolean weaveMappedSuperClass)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addClassDetailsForMappedSuperClasses(MetadataClass clz, ClassDescriptor initialDescriptor, ClassDetails classDetails, Map<String, ClassDetails> classDetailsMap, List<DatabaseMapping> unMappedAttributes, boolean weaveChangeTracking)
INTERNAL: Look higher in the hierarchy for the mappings listed in the unMappedAttribute list. |
| public void | buildClassDetailsAndModifyProject()
Build a list ClassDetails instance that contains a ClassDetails for each class in our entities list. |
| public PersistenceWeaver | |
| protected boolean | canChangeTrackingBeEnabled(ClassDescriptor descriptor, MetadataClass clz, boolean globalWeaveChangeTracking)
Check to ensure the class meets all the conditions necessary to enable change tracking This could occur either if the class already has change tracking implemented or if the class is capable of having change tracking woven based on the descriptor. |
| protected boolean | canWeaveValueHolders(MetadataClass clz, List<DatabaseMapping> mappings)
Determine if value holders are required to be weaved into the class. |
| private ClassDetails | createClassDetails(MetadataClass metadataClass, boolean weaveValueHolders, boolean weaveChangeTracking, boolean weaveFetchGroups, boolean weaveInternal, boolean weaveRest)
|
| public static PersistenceWeaver | createTransformerAndModifyProject(Session session, Collection<MetadataClass> entityClasses, ClassLoader classLoader, boolean weaveLazy, boolean weaveChangeTracking, boolean weaveFetchGroups, boolean weaveInternal, boolean weaveRest, boolean weaveMappedSuperClass)
|
| protected ClassDescriptor | findDescriptor(Project project, String className)
Find a descriptor by name in the given project used to avoid referring to descriptors by class. |
| private MetadataClass | getAttributeDeclaringClass(MetadataClass metadataClass, String attributeName)
Return the class which is the source of the attribute. |
| private MetadataClass | getAttributeTypeFromClass(MetadataClass metadataClass, String attributeName, DatabaseMapping mapping, boolean checkSuperclass)
Use the database mapping for an attribute to find it's type. |
| protected boolean | hasFieldInClass(MetadataClass metadataClass, String attributeName)
Return if the class contains the field. |
| protected void | |
| protected List | storeAttributeMappings(MetadataClass metadataClass, ClassDetails classDetails, List<DatabaseMapping> mappings, boolean weaveValueHolders)
INTERNAL: Store a set of attribute mappings on the given ClassDetails that correspond to the given class. |
| protected boolean |
| CANNOT_WEAVE_CHANGETRACKING | back to summary |
|---|---|
| public static final String CANNOT_WEAVE_CHANGETRACKING | |
| CANNOT_WEAVE_VIRTUAL_ONE_TO_ONE | back to summary |
|---|---|
| public static final String CANNOT_WEAVE_VIRTUAL_ONE_TO_ONE | |
| classDetailsMap | back to summary |
|---|---|
| protected Map<String, ClassDetails> classDetailsMap | |
| classLoader | back to summary |
|---|---|
| protected ClassLoader classLoader | |
| entityClasses | back to summary |
|---|---|
| protected Collection<MetadataClass> entityClasses | |
| session | back to summary |
|---|---|
| protected Session session | |
| weaveChangeTracking | back to summary |
|---|---|
| protected boolean weaveChangeTracking | |
| weaveFetchGroups | back to summary |
|---|---|
| protected boolean weaveFetchGroups | |
| weaveInternal | back to summary |
|---|---|
| protected boolean weaveInternal | |
| weaveLazy | back to summary |
|---|---|
| protected boolean weaveLazy | |
| weaveMappedSuperClass | back to summary |
|---|---|
| protected boolean weaveMappedSuperClass | |
| WEAVER_CLASS_NOT_IN_PROJECT | back to summary |
|---|---|
| public static final String WEAVER_CLASS_NOT_IN_PROJECT | |
| WEAVER_DISABLE_BY_SYSPROP | back to summary |
|---|---|
| public static final String WEAVER_DISABLE_BY_SYSPROP | |
| WEAVER_DISABLE_CT_NOT_SUPPORTED | back to summary |
|---|---|
| public static final String WEAVER_DISABLE_CT_NOT_SUPPORTED | |
| WEAVER_FOUND_USER_IMPL_CT | back to summary |
|---|---|
| public static final String WEAVER_FOUND_USER_IMPL_CT | |
| WEAVER_NULL_PROJECT | back to summary |
|---|---|
| public static final String WEAVER_NULL_PROJECT | |
| WEAVER_PROCESSING_CLASS | back to summary |
|---|---|
| public static final String WEAVER_PROCESSING_CLASS | |
| weaveRest | back to summary |
|---|---|
| protected boolean weaveRest | |
| TransformerFactory | back to summary |
|---|---|
| public TransformerFactory(Session session, Collection<MetadataClass> entityClasses, ClassLoader classLoader, boolean weaveLazy, boolean weaveChangeTracking, boolean weaveFetchGroups, boolean weaveInternal, boolean weaveRest, boolean weaveMappedSuperClass) | |
| addClassDetailsForMappedSuperClasses | back to summary |
|---|---|
| public void addClassDetailsForMappedSuperClasses(MetadataClass clz, ClassDescriptor initialDescriptor, ClassDetails classDetails, Map<String, ClassDetails> classDetailsMap, List<DatabaseMapping> unMappedAttributes, boolean weaveChangeTracking) INTERNAL: Look higher in the hierarchy for the mappings listed in the unMappedAttribute list. We assume that if a mapping exists, the attribute must either be mapped from the owning class or from a superclass. | |
| buildClassDetailsAndModifyProject | back to summary |
|---|---|
| public void buildClassDetailsAndModifyProject() Build a list ClassDetails instance that contains a ClassDetails for each class in our entities list. | |
| buildPersistenceWeaver | back to summary |
|---|---|
| public PersistenceWeaver buildPersistenceWeaver() | |
| canChangeTrackingBeEnabled | back to summary |
|---|---|
| protected boolean canChangeTrackingBeEnabled(ClassDescriptor descriptor, MetadataClass clz, boolean globalWeaveChangeTracking) Check to ensure the class meets all the conditions necessary to enable change tracking This could occur either if the class already has change tracking implemented or if the class is capable of having change tracking woven based on the descriptor. | |
| canWeaveValueHolders | back to summary |
|---|---|
| protected boolean canWeaveValueHolders(MetadataClass clz, List<DatabaseMapping> mappings) Determine if value holders are required to be weaved into the class. | |
| createClassDetails | back to summary |
|---|---|
| private ClassDetails createClassDetails(MetadataClass metadataClass, boolean weaveValueHolders, boolean weaveChangeTracking, boolean weaveFetchGroups, boolean weaveInternal, boolean weaveRest) | |
| createTransformerAndModifyProject | back to summary |
|---|---|
| public static PersistenceWeaver createTransformerAndModifyProject(Session session, Collection<MetadataClass> entityClasses, ClassLoader classLoader, boolean weaveLazy, boolean weaveChangeTracking, boolean weaveFetchGroups, boolean weaveInternal, boolean weaveRest, boolean weaveMappedSuperClass) | |
| findDescriptor | back to summary |
|---|---|
| protected ClassDescriptor findDescriptor(Project project, String className) Find a descriptor by name in the given project used to avoid referring to descriptors by class. This avoids having to construct a project by class facilitating weaving | |
| getAttributeDeclaringClass | back to summary |
|---|---|
| private MetadataClass getAttributeDeclaringClass(MetadataClass metadataClass, String attributeName) Return the class which is the source of the attribute. i.e. the class that defines the attribute in its class file. | |
| getAttributeTypeFromClass | back to summary |
|---|---|
| private MetadataClass getAttributeTypeFromClass(MetadataClass metadataClass, String attributeName, DatabaseMapping mapping, boolean checkSuperclass) Use the database mapping for an attribute to find it's type. The type returned will either be the field type of the field in the object or the type returned by the getter method. | |
| hasFieldInClass | back to summary |
|---|---|
| protected boolean hasFieldInClass(MetadataClass metadataClass, String attributeName) Return if the class contains the field. | |
| log | back to summary |
|---|---|
| protected void log(int level, String msg, Object[] params) | |
| storeAttributeMappings | back to summary |
|---|---|
| protected List INTERNAL: Store a set of attribute mappings on the given ClassDetails that correspond to the given class. Return the list of mappings that is not specifically found on the given class. These attributes will be found on MappedSuperclasses. | |
| wasChangeTrackingAlreadyWeaved | back to summary |
|---|---|
| protected boolean wasChangeTrackingAlreadyWeaved(Class<?> clz) | |