Dali Provisional API
Release 3.2

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

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

public class JpaEntity
extends JpaManagedType

The concrete implementation of IEntity that is wrapping the design-time representation of a JPA entity. 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
JpaEntity(JpaManagedTypeProvider provider, Entity entity,  mappingBuilder)
          Creates a new JpaEntity.
 
Method Summary
 void accept(IManagedTypeVisitor visitor)
          
protected  IQuery buildQuery(JpaManagedTypeProvider provider, NamedQuery namedQuery)
           
 Entity getManagedType()
          Returns the encapsulated model object.
 String getName()
          
protected  org.eclipse.jpt.common.utility.iterable.ListIterable<? extends NamedQuery> getNamedQueries()
           
 IQuery getNamedQuery(String queryName)
          
protected  void initializeQueries()
          Initializes the map JPQL queries if it has not been been initialized yet.
protected  void initializeQueries(Map<String,IQuery> queries)
           
 String toString()
          
 
Methods inherited from class org.eclipse.jpt.jpa.core.jpql.spi.JpaManagedType
buildMapping, buildMappings, compareTo, getMappingBuilder, getMappingNamed, getProvider, getType, initializeMappings, mappings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JpaEntity

public JpaEntity(JpaManagedTypeProvider provider,
                 Entity entity,
                  mappingBuilder)
Creates a new JpaEntity.

Parameters:
provider - The provider of JPA managed types
entity - 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

accept

public void accept(IManagedTypeVisitor visitor)


buildQuery

protected IQuery buildQuery(JpaManagedTypeProvider provider,
                            NamedQuery namedQuery)

getManagedType

public Entity getManagedType()
Returns the encapsulated model object.

Overrides:
getManagedType in class JpaManagedType
Returns:
The managed type wrapped by this external form

getName

public String getName()


getNamedQuery

public IQuery getNamedQuery(String queryName)


initializeQueries

protected void initializeQueries()
Initializes the map JPQL queries if it has not been been initialized yet.


initializeQueries

protected void initializeQueries(Map<String,IQuery> queries)

getNamedQueries

protected org.eclipse.jpt.common.utility.iterable.ListIterable<? extends NamedQuery> getNamedQueries()

toString

public String toString()

Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.