Dali Provisional API
Release 3.2

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:
JavaBaseEnumeratedConverter.BasicAdapter, JavaBaseEnumeratedConverter.MapKeyAdapter, JavaBaseTemporalConverter.AbstractAdapter, JavaBaseTemporalConverter.MapKeyAdapter, JavaLobConverter.Adapter
Enclosing interface:
JavaConverter

public abstract static class JavaConverter.AbstractAdapter
extends Object
implements JavaConverter.Adapter


Nested Class Summary
static class JavaConverter.AbstractAdapter.ConverterParentAdapter
           
 
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.
protected  Annotation buildConverterAnnotation(JavaResourceAttribute attribute)
           
protected  Annotation buildConverterAnnotationIfNecessary(JavaResourceAttribute attribute)
           
protected  JavaConverter.ParentAdapter buildConverterParentAdapter(JavaAttributeMapping parent)
           
 JavaConverter buildNewConverter(JavaAttributeMapping parent, JpaFactory factory)
          Build a new converter and, if necessary, its corresponding converter annotation.
protected abstract  String getAnnotationName()
           
 Annotation getConverterAnnotation(JavaResourceAttribute attribute)
          Return the adapter's converter annotation for the specified Java resource persistent member.
 void removeConverterAnnotation(JavaResourceAttribute attribute)
          Remove the adapter's converter annotation from the specified Java resource persistent member.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

getAnnotationName

protected abstract String getAnnotationName()

getConverterAnnotation

public Annotation getConverterAnnotation(JavaResourceAttribute 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

buildConverterAnnotationIfNecessary

protected Annotation buildConverterAnnotationIfNecessary(JavaResourceAttribute attribute)

buildConverterAnnotation

protected Annotation buildConverterAnnotation(JavaResourceAttribute attribute)

removeConverterAnnotation

public void removeConverterAnnotation(JavaResourceAttribute 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

buildConverterParentAdapter

protected JavaConverter.ParentAdapter buildConverterParentAdapter(JavaAttributeMapping parent)

toString

public String toString()
Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.