EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.spi.java.JavaManagedType
All Implemented Interfaces:
java.lang.Comparable<IManagedType>, IManagedType
Direct Known Subclasses:
JavaEmbeddable, JavaEntity, JavaMappedSuperclass

public abstract class JavaManagedType
extends java.lang.Object
implements IManagedType

The abstract definition of IManagedType defined for wrapping the runtime mapped class object.

Version:
2.4
Author:
Pascal Filion
Since:
2.3

Constructor Summary
JavaManagedType(IManagedTypeProvider provider, JavaType type, IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
          Creates a new JavaManagedType.
 
Method Summary
protected  IMapping buildMapping(java.lang.reflect.Member member)
           
 int compareTo(IManagedType managedType)
          
protected  AccessType getAccessType()
           
 IMapping getMappingNamed(java.lang.String name)
          Returns the IMapping with the given name.
 IManagedTypeProvider getProvider()
          Retrieves the owner of this managed type.
 JavaType getType()
          Returns the external representation of the class used by this managed type.
protected  void initializeMappings()
           
protected  void initializeMappings(java.lang.Class<?> type, AccessType accessType)
           
protected  boolean isPersistentAttribute(java.lang.reflect.Field field)
           
protected  boolean isProperty(java.lang.reflect.Method method)
           
 IterableIterator<IMapping> mappings()
          Returns the collection of mappings defined in this managed type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.persistence.jpa.jpql.spi.IManagedType
accept
 

Constructor Detail

JavaManagedType

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

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

buildMapping

protected IMapping buildMapping(java.lang.reflect.Member member)

compareTo

public int compareTo(IManagedType managedType)

Specified by:
compareTo in interface java.lang.Comparable<IManagedType>

getAccessType

protected AccessType getAccessType()

getMappingNamed

public IMapping getMappingNamed(java.lang.String name)
Returns the IMapping with the given name.

Specified by:
getMappingNamed in interface IManagedType
Parameters:
name - The name of the mapping to retrieve
Returns:
Either the IMapping or null if it could not be found

getProvider

public IManagedTypeProvider getProvider()
Retrieves the owner of this managed type.

Specified by:
getProvider in interface IManagedType
Returns:
The external form holding onto the JPA managed types

getType

public JavaType getType()
Returns the external representation of the class used by this managed type.

Specified by:
getType in interface IManagedType
Returns:
The external representation of the class used by this managed type

initializeMappings

protected void initializeMappings()

initializeMappings

protected void initializeMappings(java.lang.Class<?> type,
                                  AccessType accessType)

isPersistentAttribute

protected boolean isPersistentAttribute(java.lang.reflect.Field field)

isProperty

protected boolean isProperty(java.lang.reflect.Method method)

mappings

public final IterableIterator<IMapping> mappings()
Returns the collection of mappings defined in this managed type.

Specified by:
mappings in interface IManagedType
Returns:
The collection of persistent fields and properties of this managed type

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference