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

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

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

public class EclipseLinkFieldMapping
extends AbstractFieldMapping

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

Version:
2.5
Author:
Pascal Filion
Since:
2.4

Constructor Summary
EclipseLinkFieldMapping(IManagedType parent, java.lang.reflect.Field field)
          Creates a new EclipseLinkFieldMapping.
 
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.AbstractFieldMapping
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

EclipseLinkFieldMapping

public EclipseLinkFieldMapping(IManagedType parent,
                               java.lang.reflect.Field field)
Creates a new EclipseLinkFieldMapping.

Parameters:
parent - The parent of this mapping
field - The Java field 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