EclipseLink 2.5.0, build 'v20130425-368d603' API Reference

org.eclipse.persistence.jpa.jpql.tools.spi.java
Class EclipseLinkPropertyMapping

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.tools.spi.java.AbstractMapping
      extended by org.eclipse.persistence.jpa.jpql.tools.spi.java.AbstractMethodMapping
          extended by org.eclipse.persistence.jpa.jpql.tools.spi.java.EclipseLinkPropertyMapping
All Implemented Interfaces:
java.lang.Comparable<IMapping>, IMapping

public class EclipseLinkPropertyMapping
extends AbstractMethodMapping

The concrete implementation of IMapping that is wrapping the runtime representation of an EclipseLink mapping that is represented by a property.

Version:
2.5
Author:
Pascal Filion
Since:
2.4

Constructor Summary
EclipseLinkPropertyMapping(IManagedType parent, java.lang.reflect.Method method)
          Creates a new EclipseLinkPropertyMapping.
 
Method Summary
protected  int calculateMappingType(java.lang.annotation.Annotation[] annotations)
          Calculates the type of the mapping represented by this external form.
 boolean isCollection()
          Determines whether this IMapping is a collection type mapping.
 boolean isRelationship()
          Determines whether this IMapping is a relationship type mapping.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.spi.java.AbstractMethodMapping
getMember, getMemberAnnotations, getMemberGenericType, getMemberType, hasAnnotation
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.spi.java.AbstractMapping
buildTypeDeclaration, calculateMappingType, compareTo, getMappingType, getName, getParent, getType, getTypeDeclaration, getTypeRepository, hasAnnotation, hasAnnotation, isProperty, isTransient, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EclipseLinkPropertyMapping

public EclipseLinkPropertyMapping(IManagedType parent,
                                  java.lang.reflect.Method method)
Creates a new EclipseLinkPropertyMapping.

Parameters:
parent - The parent of this mapping
method - The Java Method wrapped by this mapping
Method Detail

calculateMappingType

protected int calculateMappingType(java.lang.annotation.Annotation[] annotations)
Calculates the type of the mapping represented by this external form.

Overrides:
calculateMappingType in class AbstractMapping
Parameters:
annotations - The Annotations that are present on the member
Returns:
The mapping type, which is one of the constants defined in persistence.jpa.jpql.spi.IMappingType IMappingType when the provider is generic JPA

isCollection

public boolean isCollection()
Determines whether this IMapping is a collection type mapping.

Specified by:
isCollection in interface IMapping
Overrides:
isCollection in class AbstractMapping
Returns:
true if this IMapping is a collection mapping; false otherwise

isRelationship

public boolean isRelationship()
Determines whether this IMapping is a relationship type mapping.

Specified by:
isRelationship in interface IMapping
Overrides:
isRelationship in class AbstractMapping
Returns:
true if this IMapping is a relationship mapping; false otherwise

EclipseLink 2.5.0, build 'v20130425-368d603' API Reference