org.eclipse.jpt.jpa.core.context.java
Class JavaConverter.AbstractAdapter

java.lang.Object
  extended by 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


Constructor Summary
JavaConverter.AbstractAdapter()
           
 
Method Summary
 JavaConverter buildConverter(JavaAttributeMapping parent, JpaFactory factory)
          Build a converter corresponding to the specified mapping if the mapping's resource attribute is modified by the adapter's converter annotation.
 JavaConverter buildNewConverter(JavaAttributeMapping parent, JpaFactory factory)
          Build a new converter and, if necessary, its corresponding converter annotation.
 Annotation getConverterAnnotation(JavaResourcePersistentAttribute attribute)
          Return the adapter's converter annotation for the specified Java resource persistent member.
 void removeConverterAnnotation(JavaResourcePersistentAttribute attribute)
          Remove the adapter's converter annotation from the specified Java resource persistent member.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.java.JavaConverter.Adapter
buildConverter, getConverterType
 

Constructor Detail

JavaConverter.AbstractAdapter

public JavaConverter.AbstractAdapter()
Method Detail

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