Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.context.java
Interface JavaTypeMappingDefinition


public interface JavaTypeMappingDefinition

Map a string key to a type mapping and its corresponding Java annotations.

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

Nested Class Summary
static class JavaTypeMappingDefinition.AnnotationNameTransformer
           
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<JavaTypeMappingDefinition,String> ANNOTATION_NAME_TRANSFORMER
           
 
Method Summary
 JavaTypeMapping buildMapping(JavaPersistentType persistentType, Annotation annotation, JpaFactory factory)
          Build a Java type mapping for the specified persistent type and annotation.
 String getAnnotationName()
          Return the name of the type mapping's annotation.
 String getKey()
          Return the type mapping's key.
 Iterable<String> getSupportingAnnotationNames()
          Return the names of the type mapping's "supporting" annotations.
 

Field Detail

ANNOTATION_NAME_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<JavaTypeMappingDefinition,String> ANNOTATION_NAME_TRANSFORMER
Method Detail

getKey

String getKey()
Return the type mapping's key.


getAnnotationName

String getAnnotationName()
Return the name of the type mapping's annotation.


getSupportingAnnotationNames

Iterable<String> getSupportingAnnotationNames()
Return the names of the type mapping's "supporting" annotations.


buildMapping

JavaTypeMapping buildMapping(JavaPersistentType persistentType,
                             Annotation annotation,
                             JpaFactory factory)
Build a Java type mapping for the specified persistent type and annotation. Use the specified factory for creation so extenders can simply override the appropriate factory method instead of building a definition for the same key.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.