Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.context
Interface ManagedTypeContainer

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

public interface ManagedTypeContainer

Interface used by persistence unit to gather up managed 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:
3.3

Nested Class Summary
static class ManagedTypeContainer.ContainsType
           
static class ManagedTypeContainer.ManagedTypesTransformer
           
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<ManagedTypeContainer,Iterable<? extends ManagedType>> TRANSFORMER
           
 
Method Summary
 ManagedType getManagedType(String typeName)
          Return the managed type with the specified name.
 Iterable<? extends ManagedType> getManagedTypes()
          Return the container's managed types.
 

Field Detail

TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<ManagedTypeContainer,Iterable<? extends ManagedType>> TRANSFORMER
Method Detail

getManagedTypes

Iterable<? extends ManagedType> getManagedTypes()
Return the container's managed types. The returned list may contain multiple managed types for the same Java class; e.g.


getManagedType

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


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.