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

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

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
All Implemented Interfaces:
java.lang.Comparable<IMapping>, IMapping
Direct Known Subclasses:
EclipseLinkPropertyMapping, JavaPropertyMapping

public abstract class AbstractMethodMapping
extends AbstractMapping

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

Version:
2.4
Author:
Pascal Filion
Since:
2.4

Constructor Summary
protected AbstractMethodMapping(IManagedType parent, java.lang.reflect.Method method)
          Creates a new AbstractMethodMapping.
 
Method Summary
 java.lang.reflect.Method 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.tools.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

AbstractMethodMapping

protected AbstractMethodMapping(IManagedType parent,
                                java.lang.reflect.Method method)
Creates a new AbstractMethodMapping.

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

getMember

public java.lang.reflect.Method 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.5.0, build 'v20130425-368d603' API Reference