org.eclipse.jpt.core.context.java
Class NullJavaTypeMappingDefinition

java.lang.Object
  extended by org.eclipse.jpt.core.context.java.NullJavaTypeMappingDefinition
All Implemented Interfaces:
JavaTypeMappingDefinition

public class NullJavaTypeMappingDefinition
extends java.lang.Object
implements JavaTypeMappingDefinition

This mapping definition implementation is used to create a JavaNullAttributeMapping. A JavaNullAttributeMapping should be used when no "mapping" annotation exists on a Java type. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.3
Version:
2.3

Method Summary
 JavaTypeMapping buildMapping(JavaPersistentType parent, JpaFactory factory)
          Build a Java type mapping for the specified type.
 java.lang.String getAnnotationName()
          Return the type mapping's Java annotation name.
 java.lang.String getKey()
          Return the type mapping's key.
static JavaTypeMappingDefinition instance()
          Return the singleton.
 boolean test(JavaPersistentType persistentType)
          This is typically the final test, so it should always apply
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

instance

public static JavaTypeMappingDefinition instance()
Return the singleton.


getKey

public java.lang.String getKey()
Description copied from interface: JavaTypeMappingDefinition
Return the type mapping's key.

Specified by:
getKey in interface JavaTypeMappingDefinition

getAnnotationName

public java.lang.String getAnnotationName()
Description copied from interface: JavaTypeMappingDefinition
Return the type mapping's Java annotation name.

Specified by:
getAnnotationName in interface JavaTypeMappingDefinition

buildMapping

public JavaTypeMapping buildMapping(JavaPersistentType parent,
                                    JpaFactory factory)
Description copied from interface: JavaTypeMappingDefinition
Build a Java type mapping for the specified type. Use the specified factory for creation so extenders can simply override the appropriate creation method instead of building a provider for the same key.

Specified by:
buildMapping in interface JavaTypeMappingDefinition

test

public boolean test(JavaPersistentType persistentType)
This is typically the final test, so it should always apply

Specified by:
test in interface JavaTypeMappingDefinition

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object