org.eclipse.jpt.jpa.core.context.java
Class JavaConverter.AbstractAdapter
java.lang.Object
org.eclipse.jpt.jpa.core.context.java.JavaConverter.AbstractAdapter
- All Implemented Interfaces:
- JavaConverter.Adapter
- Direct Known Subclasses:
- JavaEnumeratedConverter.Adapter, JavaLobConverter.Adapter, JavaTemporalConverter.Adapter
- Enclosing interface:
- JavaConverter
public abstract static class JavaConverter.AbstractAdapter
- extends java.lang.Object
- implements JavaConverter.Adapter
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaConverter.AbstractAdapter
public JavaConverter.AbstractAdapter()
buildConverter
public JavaConverter buildConverter(JavaAttributeMapping parent,
JpaFactory factory)
- Description copied from interface:
JavaConverter.Adapter
- Build a converter corresponding to the specified mapping
if the mapping's resource attribute is modified by the adapter's
converter annotation. Return
null otherwise.
This is used to build a converter during construction of the
converter's mapping.
- Specified by:
buildConverter in interface JavaConverter.Adapter
getConverterAnnotation
public Annotation getConverterAnnotation(JavaResourcePersistentAttribute attribute)
- Description copied from interface:
JavaConverter.Adapter
- Return the adapter's converter annotation for the specified Java
resource persistent member.
Return
null if the adapter's converter annotation is
missing.
The returned converter annotation is compared to the parent's
converter's converter annotation while the context model is synchronized
with the resource model. If it has changed, the parent will build
a new converter (via the adapter).
- Specified by:
getConverterAnnotation in interface JavaConverter.Adapter
- See Also:
JavaConverter.Adapter.buildConverter(Annotation, JavaAttributeMapping, JpaFactory)
buildNewConverter
public JavaConverter buildNewConverter(JavaAttributeMapping parent,
JpaFactory factory)
- Description copied from interface:
JavaConverter.Adapter
- Build a new converter and, if necessary, its corresponding converter
annotation.
- Specified by:
buildNewConverter in interface JavaConverter.Adapter
removeConverterAnnotation
public void removeConverterAnnotation(JavaResourcePersistentAttribute attribute)
- Description copied from interface:
JavaConverter.Adapter
- Remove the adapter's converter annotation from the specified
Java resource persistent member.
- Specified by:
removeConverterAnnotation in interface JavaConverter.Adapter
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object