org.eclipse.jpt.jpa.core.context.persistence
Interface PersistentTypeContainer

All Known Subinterfaces:
EclipseLinkEntityMappings, EntityMappings, JarFile, JarFileRef, MappingFile, MappingFileRef, MappingFileRoot, OrmXml, PersistenceUnit, PersistenceUnit2_0
All Known Implementing Classes:
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit, EclipseLinkPersistenceUnit

public interface PersistentTypeContainer

Interface used by persistence unit to gather up persistent types.

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

Field Summary
static org.eclipse.jpt.common.utility.internal.Transformer<PersistentTypeContainer,java.lang.Iterable<? extends PersistentType>> TRANSFORMER
           
 
Method Summary
 PersistentType getPersistentType(java.lang.String typeName)
          Return the persistent type with the specified name.
 java.lang.Iterable<? extends PersistentType> getPersistentTypes()
          Return the container's persistent types.
 

Field Detail

TRANSFORMER

static final org.eclipse.jpt.common.utility.internal.Transformer<PersistentTypeContainer,java.lang.Iterable<? extends PersistentType>> TRANSFORMER
Method Detail

getPersistentTypes

java.lang.Iterable<? extends PersistentType> getPersistentTypes()
Return the container's persistent types. The returned list may contain multiple persistent types for the same Java class; e.g.


getPersistentType

PersistentType getPersistentType(java.lang.String typeName)
Return the persistent type with the specified name. Return null if the persistent type is not found. If the persistent unit has more than one persistent type with the specified name, return the first one found, using the following search order: