Dali Provisional API
Release 3.2

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

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

public interface PersistentTypeContainer
extends ManagedTypeContainer

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

Nested Class Summary
static class PersistentTypeContainer.PersistentTypesTransformer
           
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.ManagedTypeContainer
ManagedTypeContainer.ContainsType, ManagedTypeContainer.ManagedTypesTransformer
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<PersistentTypeContainer,Iterable<? extends PersistentType>> TRANSFORMER
           
 
Method Summary
 PersistentType getPersistentType(String typeName)
          Return the persistent type with the specified name.
 Iterable<? extends PersistentType> getPersistentTypes()
          Return the container's persistent types.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ManagedTypeContainer
getManagedType, getManagedTypes
 

Field Detail

TRANSFORMER

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

getPersistentTypes

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(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:


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.