EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.spi.java
Class JavaEntity

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.spi.java.JavaManagedType
      extended by org.eclipse.persistence.jpa.jpql.spi.java.JavaEntity
All Implemented Interfaces:
java.lang.Comparable<IManagedType>, IEntity, IManagedType

public class JavaEntity
extends JavaManagedType
implements IEntity

The concrete implementation of IEntity that is wrapping the runtime representation of a JPA entity.

Version:
2.4
Author:
Pascal Filion
Since:
2.3

Constructor Summary
JavaEntity(IManagedTypeProvider provider, JavaType type, IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
          Creates a new JavaEntity.
 
Method Summary
 void accept(IManagedTypeVisitor visitor)
          Visits this managed type with the given visitor.
protected  java.lang.String buildName()
           
protected  java.util.Map<java.lang.String,IQuery> buildQueries()
           
protected  IQuery buildQuery(NamedQuery namedQuery)
           
protected
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.annotation.Annotation[] annotations, java.lang.Class<T> annotationType)
           
 java.lang.String getName()
          Returns the name of this entity.
 IQuery getNamedQuery(java.lang.String queryName)
          Returns the external form of the given named query;
protected  boolean hasAnnotation(java.lang.annotation.Annotation[] annotations, java.lang.String annotationType)
           
protected  void initializeQueries()
           
 java.lang.String toString()
          
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.spi.java.JavaManagedType
buildMapping, compareTo, getAccessType, getMappingNamed, getProvider, getType, initializeMappings, initializeMappings, isPersistentAttribute, isProperty, mappings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.persistence.jpa.jpql.spi.IManagedType
getMappingNamed, getProvider, getType, mappings
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

JavaEntity

public JavaEntity(IManagedTypeProvider provider,
                  JavaType type,
                  IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
Creates a new JavaEntity.

Parameters:
provider - The provider of JPA managed types
type - The IType wrapping the Java type
mappingBuilder - The builder that is responsible to create the persistence.jpa.jpql.spi.IMapping IMapping wrapping a persistent attribute or property
Method Detail

accept

public void accept(IManagedTypeVisitor visitor)
Visits this managed type with the given visitor.

Specified by:
accept in interface IManagedType
Parameters:
visitor - The visitor to visit this managed type object

buildName

protected java.lang.String buildName()

buildQueries

protected java.util.Map<java.lang.String,IQuery> buildQueries()

buildQuery

protected IQuery buildQuery(NamedQuery namedQuery)

getAnnotation

protected <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.annotation.Annotation[] annotations,
                                                                      java.lang.Class<T> annotationType)

getName

public java.lang.String getName()
Returns the name of this entity.

Specified by:
getName in interface IEntity
Returns:
The non-default name or the short class name of this entity

getNamedQuery

public IQuery getNamedQuery(java.lang.String queryName)
Returns the external form of the given named query;

Specified by:
getNamedQuery in interface IEntity
Parameters:
queryName - The name of the JPQL query to retrieve
Returns:
The IQuery representing the JPQL query named with the given name; or null if none could be found

hasAnnotation

protected boolean hasAnnotation(java.lang.annotation.Annotation[] annotations,
                                java.lang.String annotationType)

initializeQueries

protected void initializeQueries()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference