org.eclipse.jpt.jpa.core.jpa2.context
Interface MetamodelSourceType

All Known Subinterfaces:
JavaPersistentType2_0, OrmPersistentType2_0, PersistentType2_0

public interface MetamodelSourceType

JPA 2.0 metamodel source 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

Nested Class Summary
static interface MetamodelSourceType.Synchronizer
          This interface is used by the source type to synchronize the metamodel as required by changes to the context model.
 
Field Summary
static java.util.Comparator<MetamodelSourceType> COMPARATOR
          Comparator that can be used to compare source types.
 
Method Summary
<T extends PersistentAttribute>
java.util.ListIterator<T>
attributes()
          Return the source type's attributes.
 JpaProject getJpaProject()
          Return the source type's JPA project.
 org.eclipse.core.resources.IFile getMetamodelFile()
          Return the file generated as a result of the metamodel synchronization.
 java.lang.String getName()
          Return the source type's name.
 PersistentType getSuperPersistentType()
          Return the source type's super type.
 boolean isManaged()
          Return whether the source type is "managed" (i.e.
 void printBodySourceOn(BodySourceWriter pw, java.util.Map<java.lang.String,java.util.Collection<MetamodelSourceType>> memberTypeTree)
          Print the body of the source type's metamodel class on the specified writer, using the specified member type tree.
 void synchronizeMetamodel(java.util.Map<java.lang.String,java.util.Collection<MetamodelSourceType>> memberTypeTree)
          Synchronize the source type's metamodel, using the specified member type tree.
 

Field Detail

COMPARATOR

static final java.util.Comparator<MetamodelSourceType> COMPARATOR
Comparator that can be used to compare source types.

Method Detail

getName

java.lang.String getName()
Return the source type's name.


isManaged

boolean isManaged()
Return whether the source type is "managed" (i.e. persistent).


getSuperPersistentType

PersistentType getSuperPersistentType()
Return the source type's super type.


attributes

<T extends PersistentAttribute> java.util.ListIterator<T> attributes()
Return the source type's attributes.


getMetamodelFile

org.eclipse.core.resources.IFile getMetamodelFile()
Return the file generated as a result of the metamodel synchronization.


getJpaProject

JpaProject getJpaProject()
Return the source type's JPA project.


synchronizeMetamodel

void synchronizeMetamodel(java.util.Map<java.lang.String,java.util.Collection<MetamodelSourceType>> memberTypeTree)
Synchronize the source type's metamodel, using the specified member type tree.


printBodySourceOn

void printBodySourceOn(BodySourceWriter pw,
                       java.util.Map<java.lang.String,java.util.Collection<MetamodelSourceType>> memberTypeTree)
Print the body of the source type's metamodel class on the specified writer, using the specified member type tree.