org.eclipse.jpt.jpa.core
Interface JpaAnnotationDefinitionProvider


public interface JpaAnnotationDefinitionProvider

Provides annotation definitions for types and attributes. JpaAnnotationProvider then uses a collection of these to build 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.2
Version:
3.0

Method Summary
 java.lang.Iterable<AnnotationDefinition> getAttributeAnnotationDefinitions()
          Return all annotation definitions which can appear on an attribute
 java.lang.Iterable<AnnotationDefinition> getPackageAnnotationDefinitions()
          Return all annotation definitions which can appear on a package.
 java.lang.Iterable<AnnotationDefinition> getTypeAnnotationDefinitions()
          Return all annotation definitions which can appear on a type
 java.lang.Iterable<AnnotationDefinition> getTypeMappingAnnotationDefinitions()
          Return all annotation definitions which can appear on a type and are used to determine whether and how the type is persisted (how it is "mapped").
 

Method Detail

getTypeAnnotationDefinitions

java.lang.Iterable<AnnotationDefinition> getTypeAnnotationDefinitions()
Return all annotation definitions which can appear on a type


getTypeMappingAnnotationDefinitions

java.lang.Iterable<AnnotationDefinition> getTypeMappingAnnotationDefinitions()
Return all annotation definitions which can appear on a type and are used to determine whether and how the type is persisted (how it is "mapped"). This should be a subset of getTypeAnnotationDefinitions().


getAttributeAnnotationDefinitions

java.lang.Iterable<AnnotationDefinition> getAttributeAnnotationDefinitions()
Return all annotation definitions which can appear on an attribute


getPackageAnnotationDefinitions

java.lang.Iterable<AnnotationDefinition> getPackageAnnotationDefinitions()
Return all annotation definitions which can appear on a package.