Module org.eclipse.persistence.jpa
Class MetadataDynamicClassWriter
- java.lang.Object
-
- org.eclipse.persistence.dynamic.DynamicClassWriter
-
- org.eclipse.persistence.internal.jpa.metadata.MetadataDynamicClassWriter
-
- All Implemented Interfaces:
EclipseLinkClassWriter
public class MetadataDynamicClassWriter extends DynamicClassWriter
CustomDynamicClassWriteradding getter methods for virtual attributes so that 3rd party frameworks such as jakarta.validation can access the attribute values.- Since:
- EclipseLink 2.4.1
- Author:
- dclarke
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.dynamic.DynamicClassWriter
CLINIT, DYNAMIC_PROPERTIES_MANAGER_CLASSNAME_SLASHES, ICONST, INIT, parentClass, parentClassName
-
-
Constructor Summary
Constructors Constructor Description MetadataDynamicClassWriter(MetadataDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMethods(ClassWriter cw, String parentClassType)Add get methods for all virtual attributesMetadataDescriptorgetDescriptor()-
Methods inherited from class org.eclipse.persistence.dynamic.DynamicClassWriter
addFields, addInterface, createCopy, createEnum, getInterfaces, getParentClass, getParentClassName, isCompatible, toString, verify, writeClass
-
-
-
-
Constructor Detail
-
MetadataDynamicClassWriter
public MetadataDynamicClassWriter(MetadataDescriptor descriptor)
-
-
Method Detail
-
getDescriptor
public MetadataDescriptor getDescriptor()
-
addMethods
protected void addMethods(ClassWriter cw, String parentClassType)
Add get methods for all virtual attributes- Overrides:
addMethodsin classDynamicClassWriter
-
-