public class MetadataAnnotatedElement extends MetadataAccessibleObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_RAW_CLASS |
Constructor and Description |
---|
MetadataAnnotatedElement(MetadataFactory factory)
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(MetadataAnnotation annotation)
INTERNAL:
|
void |
addGenericType(java.lang.String genericType)
INTERNAL:
|
boolean |
areAnnotationsCompatibleWithTransient(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessible object has 2 or more declared
persistence annotations.
|
boolean |
equals(java.lang.Object object)
INTERNAL:
|
MetadataAnnotation |
getAnnotation(java.lang.Class annotation)
INTERNAL:
Return the annotated element for this accessor.
|
MetadataAnnotation |
getAnnotation(java.lang.String annotation)
INTERNAL:
Return the annotated element for this accessor.
|
MetadataAnnotation |
getAnnotation(java.lang.String annotationClassName,
ClassAccessor classAccessor)
INTERNAL:
Return the annotated element for this accessor.
|
java.util.Map<java.lang.String,MetadataAnnotation> |
getAnnotations()
INTERNAL:
Return the annotations of this accessible object.
|
java.lang.String |
getAttributeName()
INTERNAL:
|
java.util.List<java.lang.String> |
getGenericType()
INTERNAL:
|
MetadataClass |
getMapKeyClass(MetadataDescriptor descriptor)
INTERNAL:
This should only be called for accessor's of type Map.
|
int |
getModifiers()
INTERNAL:
|
java.lang.String |
getName()
INTERNAL:
|
java.lang.Object |
getPrimitiveType()
INTERNAL:
If this annotated element was built from java model elements and is
a primitive type, this primitive type will be set.
|
MetadataClass |
getRawClass(MetadataDescriptor descriptor)
INTERNAL:
Return the raw class for this accessible object.
|
MetadataClass |
getRawClassWithGenerics(MetadataDescriptor descriptor)
INTERNAL:
Return the complete raw class with generics for this accessible object.
|
MetadataClass |
getReferenceClassFromGeneric(MetadataDescriptor descriptor)
INTERNAL:
Return the reference class from the generic specification on this
accessible object.
|
java.lang.String |
getType()
INTERNAL:
|
boolean |
hasDeclaredAnnotations(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessible object has 1 or more declared
persistence annotations.
|
int |
hashCode()
INTERNAL:
|
boolean |
isAnnotationNotPresent(java.lang.Class annotation,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is actually not present on
this accessible object.
|
boolean |
isAnnotationNotPresent(java.lang.String annotation,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is actually not present on
this accessible object.
|
boolean |
isAnnotationPresent(java.lang.Class annotationClass,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is present on java class
for the given descriptor metadata.
|
boolean |
isAnnotationPresent(java.lang.String annotation)
INTERNAL:
Indicates whether the specified annotation is present on this accessible
object.
|
boolean |
isAnnotationPresent(java.lang.String annotationName,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is present on java class
for the given descriptor metadata.
|
boolean |
isArray(ClassAccessor classAccessor)
INTERNAL:
Return true if this field accessor represents an array relationship.
|
boolean |
isBasic(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a basic mapping.
|
boolean |
isBasicCollection(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a basic collection mapping.
|
boolean |
isBasicMap(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a basic collection mapping.
|
boolean |
isDerivedId(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an id mapping.
|
boolean |
isDerivedIdClass(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an id mapping.
|
boolean |
isElementCollection(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an element collection mapping.
|
boolean |
isEmbedded(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an aggregate mapping.
|
boolean |
isEmbeddedId(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an aggregate id mapping.
|
boolean |
isGenericCollectionType()
INTERNAL:
Method to return whether a collection type is a generic.
|
boolean |
isGenericType()
INTERNAL:
Method to return whether a type is a generic.
|
boolean |
isId(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an id mapping.
|
boolean |
isManyToMany(ClassAccessor classAccessor)
INTERNAL:
Return true if this field accessor represents a m-m relationship.
|
boolean |
isManyToOne(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a m-1 relationship.
|
boolean |
isOneToMany(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a 1-m relationship.
|
boolean |
isOneToOne(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a 1-1 relationship.
|
boolean |
isStructure(ClassAccessor classAccessor)
INTERNAL:
Return true if this field accessor represents a structure relationship.
|
boolean |
isSupportedCollectionClass(MetadataClass metadataClass)
INTERNAL:
Method to return whether the given class is a supported collection class.
|
boolean |
isSupportedMapClass(MetadataClass metadataClass)
INTERNAL:
Method to return whether the given class is a supported map class.
|
boolean |
isSupportedToManyCollectionClass(MetadataClass metadataClass)
INTERNAL:
Method to return whether the given class is a supported to many
collection class.
|
boolean |
isTransformation(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an transformation mapping.
|
boolean |
isVariableOneToOne(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a variable 1-1 relationship.
|
boolean |
isVersion(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a version mapping.
|
void |
setAnnotations(java.util.Map<java.lang.String,MetadataAnnotation> annotations)
INTERNAL:
Set the annotations of this accessible object.
|
void |
setAttributeName(java.lang.String attributeName)
INTERNAL:
|
void |
setGenericType(java.util.List<java.lang.String> genericType)
INTERNAL:
|
void |
setModifiers(int modifiers)
INTERNAL:
|
void |
setName(java.lang.String name)
INTERNAL:
|
void |
setPrimitiveType(java.lang.Object primitiveType)
INTERNAL:
If this annotated element was built from java model elements and is
a primitive type this method will be called.
|
void |
setType(java.lang.String type)
INTERNAL:
|
java.lang.String |
toString()
INTERNAL:
|
getLogger, getMetadataClass, getMetadataFactory, setMetadataFactory
public static final java.lang.String DEFAULT_RAW_CLASS
public MetadataAnnotatedElement(MetadataFactory factory)
public void addAnnotation(MetadataAnnotation annotation)
public void addGenericType(java.lang.String genericType)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public MetadataAnnotation getAnnotation(java.lang.Class annotation)
public MetadataAnnotation getAnnotation(java.lang.String annotation)
public MetadataAnnotation getAnnotation(java.lang.String annotationClassName, ClassAccessor classAccessor)
public java.util.Map<java.lang.String,MetadataAnnotation> getAnnotations()
public java.lang.String getAttributeName()
getAttributeName
in class MetadataAccessibleObject
public java.util.List<java.lang.String> getGenericType()
public MetadataClass getMapKeyClass(MetadataDescriptor descriptor)
public int getModifiers()
public java.lang.String getName()
getName
in class MetadataAccessibleObject
public java.lang.Object getPrimitiveType()
public MetadataClass getRawClass(MetadataDescriptor descriptor)
to get Employee.class back.
,
to get java.util.CollectionEmployee back.
public MetadataClass getRawClassWithGenerics(MetadataDescriptor descriptor)
to get Employee.class back.
,
to get java.util.Collection back.
public MetadataClass getReferenceClassFromGeneric(MetadataDescriptor descriptor)
public java.lang.String getType()
public boolean hasDeclaredAnnotations(ClassAccessor classAccessor)
public int hashCode()
hashCode
in class java.lang.Object
public boolean areAnnotationsCompatibleWithTransient(ClassAccessor classAccessor)
public boolean isAnnotationNotPresent(java.lang.Class annotation, ClassAccessor accessor)
public boolean isAnnotationNotPresent(java.lang.String annotation, ClassAccessor accessor)
public boolean isAnnotationPresent(java.lang.Class annotationClass, ClassAccessor accessor)
public boolean isAnnotationPresent(java.lang.String annotation)
public boolean isAnnotationPresent(java.lang.String annotationName, ClassAccessor accessor)
public boolean isArray(ClassAccessor classAccessor)
public boolean isBasic(ClassAccessor classAccessor)
public boolean isBasicCollection(ClassAccessor classAccessor)
public boolean isBasicMap(ClassAccessor classAccessor)
public boolean isDerivedId(ClassAccessor classAccessor)
public boolean isDerivedIdClass(ClassAccessor classAccessor)
public boolean isElementCollection(ClassAccessor classAccessor)
public boolean isEmbedded(ClassAccessor classAccessor)
public boolean isEmbeddedId(ClassAccessor classAccessor)
public boolean isGenericCollectionType()
public boolean isGenericType()
public boolean isId(ClassAccessor classAccessor)
public boolean isManyToMany(ClassAccessor classAccessor)
public boolean isManyToOne(ClassAccessor classAccessor)
public boolean isOneToMany(ClassAccessor classAccessor)
public boolean isOneToOne(ClassAccessor classAccessor)
public boolean isStructure(ClassAccessor classAccessor)
public boolean isSupportedCollectionClass(MetadataClass metadataClass)
public boolean isSupportedMapClass(MetadataClass metadataClass)
public boolean isSupportedToManyCollectionClass(MetadataClass metadataClass)
public boolean isTransformation(ClassAccessor classAccessor)
public boolean isVariableOneToOne(ClassAccessor classAccessor)
public boolean isVersion(ClassAccessor classAccessor)
public void setAnnotations(java.util.Map<java.lang.String,MetadataAnnotation> annotations)
public void setAttributeName(java.lang.String attributeName)
public void setGenericType(java.util.List<java.lang.String> genericType)
public void setModifiers(int modifiers)
public void setName(java.lang.String name)
public void setPrimitiveType(java.lang.Object primitiveType)
public void setType(java.lang.String type)
public java.lang.String toString()
toString
in class java.lang.Object
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference