Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.eclipselink.core.jpql.spi
Class EclipseLinkDynamicMapping

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

public class EclipseLinkDynamicMapping
extends Object

The abstract implementation of a IMapping that supports a dynamic mapping. 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.2

Constructor Summary
EclipseLinkDynamicMapping(EclipseLinkDynamicManagedType parent, EclipseLinkMapping delegate)
          Creates a new EclipseLinkDynamicMapping.
 
Method Summary
protected  ITypeDeclaration[] buildGenericTypeDeclarations()
          Creates the list of type declarations that represents the generics of the type.
protected  IType buildType()
          Creates the right IType and make sure it checks for dynamic type.
protected  ITypeDeclaration buildTypeDeclaration()
          Creates the right ITypeDeclaration and make sure it checks for dynamic type.
 int compareTo(IMapping mapping)
          
 PersistentAttribute getAttribute()
          Returns the mapping's attribute (typically its parent node in the containment hierarchy).
 int getMappingType()
          
 String getName()
          
 IManagedType getParent()
          
 IType getType()
          
 ITypeDeclaration getTypeDeclaration()
          
 String getTypeName()
          Returns the type name of the persistent attribute.
protected  JpaTypeRepository getTypeRepository()
          Returns the type repository for the application.
 boolean hasAnnotation(Class<? extends Annotation> annotationType)
          
 boolean isCollection()
          
 boolean isProperty()
          
 boolean isRelationship()
          
 boolean isTransient()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseLinkDynamicMapping

public EclipseLinkDynamicMapping(EclipseLinkDynamicManagedType parent,
                                 EclipseLinkMapping delegate)
Creates a new EclipseLinkDynamicMapping.

Parameters:
parent - The parent of this mapping
delegate - The default implementation of IMapping
Method Detail

buildGenericTypeDeclarations

protected ITypeDeclaration[] buildGenericTypeDeclarations()
Creates the list of type declarations that represents the generics of the type.

Returns:
The list of type declarations or an empty list if the type is not parameterized

buildType

protected IType buildType()
Creates the right IType and make sure it checks for dynamic type.

Returns:
The IType of this dynamic mapping

buildTypeDeclaration

protected ITypeDeclaration buildTypeDeclaration()
Creates the right ITypeDeclaration and make sure it checks for dynamic type.

Returns:
The ITypeDeclaration of this dynamic mapping

compareTo

public int compareTo(IMapping mapping)


getAttribute

public PersistentAttribute getAttribute()
Returns the mapping's attribute (typically its parent node in the containment hierarchy).

Returns:
The PersistentAttribute

getMappingType

public int getMappingType()


getName

public String getName()


getParent

public IManagedType getParent()


getType

public IType getType()


getTypeDeclaration

public ITypeDeclaration getTypeDeclaration()


getTypeName

public String getTypeName()
Returns the type name of the persistent attribute.

Returns:
The fully qualified type name

getTypeRepository

protected JpaTypeRepository getTypeRepository()
Returns the type repository for the application.

Returns:
The repository of ITypes

hasAnnotation

public boolean hasAnnotation(Class<? extends Annotation> annotationType)


isCollection

public boolean isCollection()


isProperty

public boolean isProperty()


isRelationship

public boolean isRelationship()


isTransient

public boolean isTransient()


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.