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
TRANSFORMER
static final org.eclipse.jpt.common.utility.transformer.Transformer<PersistentTypeContainer,Iterable<? extends PersistentType>> TRANSFORMER
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.
- the same type is specified in both the
persistence.xml and
orm.xml files
- the same type is specified multiple times in the same
persistence.xml or orm.xml file
- the same type is in a jar file specified in the
persistence.xml file and is specified in the
persistence.xml file and/or an orm.xml file
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:
- mapping files
- classes
- jar files
Copyright (c) 2012 Oracle. All rights reserved.