EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

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

public abstract class AbstractFieldMapping
extends AbstractMapping

The abstract implementation of IMapping that is wrapping the runtime representation of a persistent field.

Version:
2.4
Author:
Pascal Filion
Since:
2.4

Constructor Summary
protected AbstractFieldMapping(IManagedType parent, java.lang.reflect.Field field)
          Creates a new AbstractFieldMapping.
 
Method Summary
 java.lang.reflect.Field getMember()
          Returns the Java Member wrapped by this mapping, which represents a persistent attribute.
protected  java.lang.annotation.Annotation[] getMemberAnnotations()
          
protected  java.lang.reflect.Type getMemberGenericType()
          
protected  java.lang.Class<?> getMemberType()
          
 boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Determines whether the given annotation is present on this type.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.spi.java.AbstractMapping
buildTypeDeclaration, calculateMappingType, calculateMappingType, compareTo, getMappingType, getName, getParent, getType, getTypeDeclaration, getTypeRepository, hasAnnotation, hasAnnotation, isCollection, isProperty, isRelationship, isTransient, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractFieldMapping

protected AbstractFieldMapping(IManagedType parent,
                               java.lang.reflect.Field field)
Creates a new AbstractFieldMapping.

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

getMember

public java.lang.reflect.Field getMember()
Returns the Java Member wrapped by this mapping, which represents a persistent attribute.

Overrides:
getMember in class AbstractMapping
Returns:
The Java Member

getMemberAnnotations

protected java.lang.annotation.Annotation[] getMemberAnnotations()

Specified by:
getMemberAnnotations in class AbstractMapping

getMemberGenericType

protected java.lang.reflect.Type getMemberGenericType()

Specified by:
getMemberGenericType in class AbstractMapping

getMemberType

protected java.lang.Class<?> getMemberType()

Specified by:
getMemberType in class AbstractMapping

hasAnnotation

public boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determines whether the given annotation is present on this type.

Parameters:
annotationType - The class of the annotation
Returns:
true if the annotation is defined on this type; false otherwise

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference