Class RestReferenceAdapterV2ClassWriter
java.lang.Object
org.eclipse.persistence.internal.jpa.rs.weaving.RestReferenceAdapterV2ClassWriter
- All Implemented Interfaces:
EclipseLinkClassWriter
This class is used to generate XML type adapters for single entity references in JPARS 2.0.
The generated classes are subclasses of
ReferenceAdapterV2
.- Since:
- EclipseLink 2.6.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRestReferenceAdapterV2ClassWriter
(String parentClassName) Creates a new RestReferenceAdapterV2ClassWriter. -
Method Summary
Modifier and TypeMethodDescriptionReturns a class name of reference adapter.static String
getClassName
(String className) Returns a class name of reference adapter for given class name.Class
<?> boolean
isCompatible
(EclipseLinkClassWriter writer) byte[]
writeClass
(DynamicClassLoader loader, String className) public class Adapter extends ReferenceAdapterV2<T> { public Adapter() { super(); } public Adapter(PersistentContext context) { super(context); } }
-
Field Details
-
CLASS_NAME_SUFFIX
- See Also:
-
REFERENCE_ADAPTER_SHORT_SIGNATURE
- See Also:
-
-
Constructor Details
-
RestReferenceAdapterV2ClassWriter
Creates a new RestReferenceAdapterV2ClassWriter.- Parameters:
parentClassName
- superclass name.
-
-
Method Details
-
getClassName
Returns a class name of reference adapter for given class name.- Parameters:
className
- class name of the class to generate adapter.- Returns:
- the adapter name.
-
getClassName
Returns a class name of reference adapter.- Returns:
- the adapter name.
-
writeClass
public class Adapter extends ReferenceAdapterV2<T> { public Adapter() { super(); } public Adapter(PersistentContext context) { super(context); } }- Specified by:
writeClass
in interfaceEclipseLinkClassWriter
- Throws:
ClassNotFoundException
-
isCompatible
- Specified by:
isCompatible
in interfaceEclipseLinkClassWriter
-
getParentClass
- Specified by:
getParentClass
in interfaceEclipseLinkClassWriter
-
getParentClassName
- Specified by:
getParentClassName
in interfaceEclipseLinkClassWriter
-