Dali Provisional API
Release 3.2

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

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

public class EclipseLinkMapping
extends JpaMapping

The EclipseLink implementation of Hermes' IMapping, which adds EclipseLink specific mapping support. 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.1

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jpt.jpa.core.jpql.spi.JpaMapping
JpaMapping.TypeDeclarationTransformer
 
Constructor Summary
EclipseLinkMapping(IManagedType parent, AttributeMapping mapping)
          Creates a new EclipseLinkMapping.
 
Method Summary
protected  int calculateMappingType()
          Calculates the type of the persistent attribute represented by this external form.
protected  AttributeMapping getMapping()
          Returns the design-time mapping object.
 boolean isCollection()
          
 boolean isRelationship()
          
 
Methods inherited from class org.eclipse.jpt.jpa.core.jpql.spi.JpaMapping
buildGenericTypeDeclarations, buildGenericTypeDeclarations, buildType, buildTypeDeclaration, compareTo, getMappingType, getName, getParent, getType, getTypeDeclaration, getTypeRepository, hasAnnotation, isProperty, isTransient, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EclipseLinkMapping

public EclipseLinkMapping(IManagedType parent,
                          AttributeMapping mapping)
Creates a new EclipseLinkMapping.

Parameters:
parent - The parent of this mapping
mapping - The design-time AttributeMapping wrapped by this class
Method Detail

calculateMappingType

protected int calculateMappingType()
Calculates the type of the persistent attribute represented by this external form.

Overrides:
calculateMappingType in class JpaMapping
Returns:
The mapping type, which is one of the constants defined in persistence.jpa.jpql.spi.IMappingType IMappingType when the provider is generic JPA

getMapping

protected AttributeMapping getMapping()
Returns the design-time mapping object.

Overrides:
getMapping in class JpaMapping
Returns:
The actual AttributeMapping wrapped by this JpaMapping

isCollection

public boolean isCollection()

Overrides:
isCollection in class JpaMapping

isRelationship

public boolean isRelationship()

Overrides:
isRelationship in class JpaMapping

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.