Dali Provisional API
Release 3.2

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

java.lang.Object
  extended by org.eclipse.jpt.jpa.core.jpql.spi.JpaManagedType
Direct Known Subclasses:
JpaEmbeddable, JpaEntity, JpaMappedSuperclass

public abstract class JpaManagedType
extends Object

The abstract definition of IManagedType defined for wrapping the design-time mapped class object. 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
protected JpaManagedType(JpaManagedTypeProvider provider, TypeMapping managedType,  mappingBuilder)
          Creates a new JDeveloperManagedType.
 
Method Summary
protected  IMapping buildMapping(AttributeMapping mapping)
          Creates the external form that needs to wrap the given AttributeMapping.
protected  Map<String,IMapping> buildMappings()
          Creates an external form for each AttributeMapping and stores them by using their mapping name.
 int compareTo(IManagedType managedType)
          
 TypeMapping getManagedType()
          Returns the encapsulated model object.
protected   getMappingBuilder()
          Returns the builder that is responsible to create the IMapping wrapping a persistent attribute or property.
 IMapping getMappingNamed(String name)
          
 JpaManagedTypeProvider getProvider()
          
 IType getType()
          
protected  void initializeMappings()
          Initializes this managed type.
 Iterable<IMapping> mappings()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaManagedType

protected JpaManagedType(JpaManagedTypeProvider provider,
                         TypeMapping managedType,
                          mappingBuilder)
Creates a new JDeveloperManagedType.

Parameters:
managedType - The provider of JPA managed types
mappedClass - The design-time model object wrapped by this class
mappingBuilder - The builder that is responsible to create the IMapping wrapping a persistent attribute or property
Method Detail

buildMapping

protected IMapping buildMapping(AttributeMapping mapping)
Creates the external form that needs to wrap the given AttributeMapping. By default, the call is delegated to IMappingBuilder.

Parameters:
mapping - The mapping to wrap with a IMapping
Returns:
A new concrete instance of IMapping

buildMappings

protected Map<String,IMapping> buildMappings()
Creates an external form for each AttributeMapping and stores them by using their mapping name.

Returns:
The mappings mapped by their name

compareTo

public int compareTo(IManagedType managedType)


getManagedType

public TypeMapping getManagedType()
Returns the encapsulated model object.

Returns:
The managed type wrapped by this external form

getMappingBuilder

protected  getMappingBuilder()
Returns the builder that is responsible to create the IMapping wrapping a persistent attribute or property.

Returns:
The concrete implementation of IMappingBuilder

getMappingNamed

public IMapping getMappingNamed(String name)


getProvider

public JpaManagedTypeProvider getProvider()


getType

public IType getType()


initializeMappings

protected void initializeMappings()
Initializes this managed type.


mappings

public Iterable<IMapping> mappings()


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.