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

java.lang.Object
  extended by org.eclipse.jpt.core.context.java.NullSpecifiedJavaAttributeMappingDefinition
All Implemented Interfaces:
JavaAttributeMappingDefinition

public class NullSpecifiedJavaAttributeMappingDefinition
extends java.lang.Object
implements JavaAttributeMappingDefinition

This mapping definition implementation is used to describe the specified mapping for a java attribute when no other mapping applies. 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
 JavaAttributeMapping buildMapping(JavaPersistentAttribute parent, JpaFactory factory)
          There is no specified mapping in this case, attributes should revert to the default
 java.lang.String getAnnotationName()
          Return the attribute mapping's Java annotation name.
 java.lang.String getKey()
          Return the attribute mapping's key.
static JavaAttributeMappingDefinition instance()
          Return the singleton.
 boolean testDefault(JavaPersistentAttribute persistentAttribute)
          Obviously false
 boolean testSpecified(JavaPersistentAttribute persistentAttribute)
          This is typically the final test, so it should always apply
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static JavaAttributeMappingDefinition instance()
Return the singleton.


getKey

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

Specified by:
getKey in interface JavaAttributeMappingDefinition

getAnnotationName

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

Specified by:
getAnnotationName in interface JavaAttributeMappingDefinition

buildMapping

public JavaAttributeMapping buildMapping(JavaPersistentAttribute parent,
                                         JpaFactory factory)
There is no specified mapping in this case, attributes should revert to the default

Specified by:
buildMapping in interface JavaAttributeMappingDefinition

testDefault

public boolean testDefault(JavaPersistentAttribute persistentAttribute)
Obviously false

Specified by:
testDefault in interface JavaAttributeMappingDefinition

testSpecified

public boolean testSpecified(JavaPersistentAttribute persistentAttribute)
This is typically the final test, so it should always apply

Specified by:
testSpecified in interface JavaAttributeMappingDefinition