Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.jpql.spi
Class JpaManagedTypeProvider

java.lang.Object
  extended by org.eclipse.jpt.jpa.core.jpql.spi.JpaManagedTypeProvider

public class JpaManagedTypeProvider
extends Object

An implementation of IManagedTypeProvider that is wrapping the design-time representation of a provider of 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.0

Constructor Summary
JpaManagedTypeProvider(JpaProject jpaProject, PersistentTypeContainer persistentTypeContainer,  mappingBuilder)
          Creates a new JpaManagedTypeProvider.
JpaManagedTypeProvider(JpaProject jpaProject, PersistentTypeContainer persistentTypeContainer, IManagedTypeBuilder managedTypeBuilder,  mappingBuilder)
          Creates a new JpaManagedTypeProvider.
 
Method Summary
protected  IEmbeddable buildEmbeddable(Embeddable mappedClass)
           
protected  IEntity buildEntity(Entity mappedClass)
           
protected  IManagedType buildManagedType(PersistentType persistentType)
           
protected  Map<String,IManagedType> buildManagedTypes()
           
protected  IMappedSuperclass buildMappedSuperclass(MappedSuperclass mappedClass)
           
 Iterable<IEntity> entities()
          
 IEmbeddable getEmbeddable(IType type)
          
 IEmbeddable getEmbeddable(String typeName)
          
 IEntity getEntity(IType type)
          
 IEntity getEntity(String typeName)
          
 IEntity getEntityNamed(String entityName)
          
protected
<T extends IManagedType>
T
getManagedType(Collection<T> managedTypes, String typeName)
           
 IManagedType getManagedType(IType type)
          
 IManagedType getManagedType(String typeName)
          
 IMappedSuperclass getMappedSuperclass(IType type)
          
 IMappedSuperclass getMappedSuperclass(String typeName)
          
 PersistentTypeContainer getPersistentTypeContainer()
          Returns the container of managed types.
protected  PersistentTypeContainer getProvider()
          Returns the encapsulated PersistentType, which is the actual object.
 JpaTypeRepository getTypeRepository()
          
protected  void initializeManagedTypes()
           
 Iterable<IManagedType> managedTypes()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaManagedTypeProvider

public JpaManagedTypeProvider(JpaProject jpaProject,
                              PersistentTypeContainer persistentTypeContainer,
                              IManagedTypeBuilder managedTypeBuilder,
                               mappingBuilder)
Creates a new JpaManagedTypeProvider.

Parameters:
jpaProject - The project that gives access to the application's metadata
persistentTypeContainer - The design-time provider of managed types
managedTypeBuilder - The builder that is responsible to create the IManagedType wrapping a type mapping
mappingBuilder - The builder that is responsible to create the IMapping wrapping a persistent attribute or property

JpaManagedTypeProvider

public JpaManagedTypeProvider(JpaProject jpaProject,
                              PersistentTypeContainer persistentTypeContainer,
                               mappingBuilder)
Creates a new JpaManagedTypeProvider.

Parameters:
jpaProject - The project that gives access to the application's metadata
persistentTypeContainer - The design-time provider of managed types
mappingBuilder - The builder that is responsible to create the IMapping wrapping a persistent attribute or property
Method Detail

buildEmbeddable

protected IEmbeddable buildEmbeddable(Embeddable mappedClass)

buildEntity

protected IEntity buildEntity(Entity mappedClass)

buildManagedType

protected IManagedType buildManagedType(PersistentType persistentType)

buildManagedTypes

protected Map<String,IManagedType> buildManagedTypes()

buildMappedSuperclass

protected IMappedSuperclass buildMappedSuperclass(MappedSuperclass mappedClass)

entities

public Iterable<IEntity> entities()


getEmbeddable

public IEmbeddable getEmbeddable(IType type)


getEmbeddable

public IEmbeddable getEmbeddable(String typeName)


getEntity

public IEntity getEntity(IType type)


getEntity

public IEntity getEntity(String typeName)


getEntityNamed

public IEntity getEntityNamed(String entityName)


getManagedType

protected <T extends IManagedType> T getManagedType(Collection<T> managedTypes,
                                                    String typeName)

getManagedType

public IManagedType getManagedType(IType type)


getManagedType

public IManagedType getManagedType(String typeName)


getMappedSuperclass

public IMappedSuperclass getMappedSuperclass(IType type)


getMappedSuperclass

public IMappedSuperclass getMappedSuperclass(String typeName)


getPersistentTypeContainer

public PersistentTypeContainer getPersistentTypeContainer()
Returns the container of managed types.

Returns:
The container of managed types

getProvider

protected PersistentTypeContainer getProvider()
Returns the encapsulated PersistentType, which is the actual object.

Returns:
The design-time representation of a managed type provider

getTypeRepository

public JpaTypeRepository getTypeRepository()


initializeManagedTypes

protected void initializeManagedTypes()

managedTypes

public Iterable<IManagedType> managedTypes()


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.