| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private Map | m_annotations
Stores any annotations defined for the element, keyed by annotation name. |
| private String | m_attributeName
Defines the attribute name of a field, or property name of a method. |
| private List | m_genericType
Defines the generic types of the elements type. |
| private final Map | m_metaAnnotations
Stores any meta-annotations defined for the element, keyed by meta-annotation name. |
| private int | m_modifiers
Defines elements modifiers, i.e. private/static/transient. |
| private String | m_name
The name of the element, i.e. class name, field name, method name. |
| pack-priv Object | m_primitiveType
Used with the APT processor. |
| private MetadataClass | m_rawClass
Used to cache the type metadata class, but cannot be cached in the case of generics. |
| private MetadataClass | m_rawClassWithGenerics
Used to cache the full type metadata class including some generic specifications. |
| private String | m_type
Defines the field type, or method return type class name. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public boolean | areAnnotationsCompatibleWithTransient(ClassAccessor classAccessor)
INTERNAL: Return true if this accessible object has 2 or more declared persistence annotations. |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public MetadataAnnotation | |
| public MetadataAnnotation | getAnnotation(final String
annotation name annotation)INTERNAL: Return the annotated element for this accessor. |
| protected final MetadataAnnotation | getAnnotation(final String
annotation name annotation, final Set<String> meta-annotations names cycle detection set, shall not be names)nullINTERNAL: Return the annotated element for this accessor. |
| public MetadataAnnotation | getAnnotation(String annotationClassName, ClassAccessor classAccessor)
INTERNAL: Return the annotated element for this accessor. |
| public Map | Returns: annotations defined for the element, keyed by annotation name. Never returnsnull.INTERNAL: Return the annotations of this accessible object. |
| public String | getAttributeName()
Implements abstract org. |
| protected int | |
| public List | |
| public MetadataClass | getMapKeyClass(MetadataDescriptor descriptor)
INTERNAL: This should only be called for accessor's of type Map. |
| public int | |
| public String | getName()
Implements abstract org. |
| public Object | getPrimitiveType()
INTERNAL: If this annotated element was built from java model elements and is a primitive type, this primitive type will be set. |
| public MetadataClass | getRawClass(MetadataDescriptor descriptor)
INTERNAL: Return the raw class for this accessible object. |
| public MetadataClass | getRawClassWithGenerics(MetadataDescriptor descriptor)
INTERNAL: Return the complete raw class with generics for this accessible object. |
| public MetadataClass | getReferenceClassFromGeneric(MetadataDescriptor descriptor)
INTERNAL: Return the reference class from the generic specification on this accessible object. |
| public String | |
| public boolean | hasDeclaredAnnotations(ClassAccessor classAccessor)
INTERNAL: Return true if this accessible object has 1 or more declared persistence annotations. |
| public int | |
| public boolean | isAnnotationNotPresent(Class<?> annotation, ClassAccessor accessor)
INTERNAL: Indicates whether the specified annotation is actually not present on this accessible object. |
| public boolean | isAnnotationNotPresent(String annotation, ClassAccessor accessor)
INTERNAL: Indicates whether the specified annotation is actually not present on this accessible object. |
| public boolean | isAnnotationPresent(Class<?> annotationClass, ClassAccessor accessor)
INTERNAL: Indicates whether the specified annotation is present on java class for the given descriptor metadata. |
| public boolean | isAnnotationPresent(String annotation)
INTERNAL: Indicates whether the specified annotation is present on this accessible object. |
| public boolean | isAnnotationPresent(String annotationName, ClassAccessor accessor)
INTERNAL: Indicates whether the specified annotation is present on java class for the given descriptor metadata. |
| public boolean | isArray(ClassAccessor classAccessor)
INTERNAL: Return true if this field accessor represents an array relationship. |
| public boolean | isBasic(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a basic mapping. |
| public boolean | isBasicCollection(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a basic collection mapping. |
| public boolean | isBasicMap(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a basic collection mapping. |
| public boolean | isDerivedId(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents an id mapping. |
| public boolean | isDerivedIdClass(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents an id mapping. |
| public boolean | isElementCollection(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents an element collection mapping. |
| public boolean | isEmbedded(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents an aggregate mapping. |
| public boolean | isEmbeddedId(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents an aggregate id mapping. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isManyToMany(ClassAccessor classAccessor)
INTERNAL: Return true if this field accessor represents a m-m relationship. |
| public boolean | isManyToOne(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a m-1 relationship. |
| public boolean | isOneToMany(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a 1-m relationship. |
| public boolean | isOneToOne(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a 1-1 relationship. |
| public boolean | isStructure(ClassAccessor classAccessor)
INTERNAL: Return true if this field accessor represents a structure relationship. |
| public boolean | isSupportedCollectionClass(MetadataClass metadataClass)
INTERNAL: Method to return whether the given class is a supported collection class. |
| public boolean | isSupportedMapClass(MetadataClass metadataClass)
INTERNAL: Method to return whether the given class is a supported map class. |
| public boolean | isSupportedToManyCollectionClass(MetadataClass metadataClass)
INTERNAL: Method to return whether the given class is a supported to many collection class. |
| public boolean | isTransformation(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents an transformation mapping. |
| protected boolean | isValidPersistenceElement(boolean mustBeExplicit, String explicitType, ClassAccessor classAccessor)
INTERNAL: When processing the inverse accessors to an explicit access setting, their must be an Access(FIELD) or Access(PROPERTY) present for the element to be processed. |
| protected boolean | isValidPersistenceElement(int modifiers)
INTERNAL: Return true if the modifiers are not transient, static or abstract. |
| public boolean | isVariableOneToOne(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a variable 1-1 relationship. |
| public boolean | isVersion(ClassAccessor classAccessor)
INTERNAL: Return true if this accessor represents a version mapping. |
| public void | setAnnotations(Map<String, MetadataAnnotation> annotations)
INTERNAL: Set the annotations of this accessible object. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setPrimitiveType(Object primitiveType)
INTERNAL: If this annotated element was built from java model elements and is a primitive type this method will be called. |
| public void | |
| public String |
| DEFAULT_RAW_CLASS | back to summary |
|---|---|
| public static final String DEFAULT_RAW_CLASS | |
| m_annotations | back to summary |
|---|---|
| private Map<String, MetadataAnnotation> m_annotations Stores any annotations defined for the element, keyed by annotation name. | |
| m_attributeName | back to summary |
|---|---|
| private String m_attributeName Defines the attribute name of a field, or property name of a method. | |
| m_genericType | back to summary |
|---|---|
| private List<String> m_genericType Defines the generic types of the elements type.
This is null if no generics are used.
This is a list of class/type names from the class/field/method signature.
The size of the list varies depending on how many generics are present,
i.e.
- | |
| m_metaAnnotations | back to summary |
|---|---|
| private final Map<String, MetadataAnnotation> m_metaAnnotations Stores any meta-annotations defined for the element, keyed by meta-annotation name. | |
| m_modifiers | back to summary |
|---|---|
| private int m_modifiers Defines elements modifiers, i.e. private/static/transient. | |
| m_name | back to summary |
|---|---|
| private String m_name The name of the element, i.e. class name, field name, method name. | |
| m_primitiveType | back to summary |
|---|---|
| pack-priv Object m_primitiveType Used with the APT processor. Stores the PrimitiveType if this annotated element is a primitive. We can't make it a primitive type here because it introduces a JDK 1.6 dependency. The APT processor will need to cast it back. | |
| m_rawClass | back to summary |
|---|---|
| private MetadataClass m_rawClass Used to cache the type metadata class, but cannot be cached in the case of generics. | |
| m_rawClassWithGenerics | back to summary |
|---|---|
| private MetadataClass m_rawClassWithGenerics Used to cache the full type metadata class including some generic specifications. | |
| m_type | back to summary |
|---|---|
| private String m_type Defines the field type, or method return type class name. | |
| MetadataAnnotatedElement | back to summary |
|---|---|
| public MetadataAnnotatedElement(MetadataFactory factory) INTERNAL: | |
| addAnnotation | back to summary |
|---|---|
| public void addAnnotation(MetadataAnnotation annotation) INTERNAL: | |
| addGenericType | back to summary |
|---|---|
| public void addGenericType(String genericType) INTERNAL: | |
| addMetaAnnotation | back to summary |
|---|---|
| public void addMetaAnnotation(MetadataAnnotation annotation) INTERNAL: | |
| areAnnotationsCompatibleWithTransient | back to summary |
|---|---|
| public boolean areAnnotationsCompatibleWithTransient(ClassAccessor classAccessor) INTERNAL: Return true if this accessible object has 2 or more declared persistence annotations. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. INTERNAL:
| |
| getAnnotation | back to summary |
|---|---|
| public MetadataAnnotation getAnnotation(Class<?> annotation) INTERNAL: Return the annotated element for this accessor. Note This method does not check against a metadata complete. | |
| getAnnotation | back to summary |
|---|---|
| public MetadataAnnotation getAnnotation(final String annotation) INTERNAL: Return the annotated element for this accessor. Note This method does not check against a meta-data complete.
| |
| getAnnotation | back to summary |
|---|---|
| protected final MetadataAnnotation getAnnotation(final String annotation, final Set<String> names) INTERNAL: Return the annotated element for this accessor. Note This method does not check against a meta-data complete. | |
| getAnnotation | back to summary |
|---|---|
| public MetadataAnnotation getAnnotation(String annotationClassName, ClassAccessor classAccessor) INTERNAL: Return the annotated element for this accessor. | |
| getAnnotations | back to summary |
|---|---|
| public Map INTERNAL: Return the annotations of this accessible object.
| |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() Implements abstract org. INTERNAL:
| |
| getDeclaredAnnotationsCount | back to summary |
|---|---|
| protected int getDeclaredAnnotationsCount(ClassAccessor classAccessor) INTERNAL: | |
| getGenericType | back to summary |
|---|---|
| public List INTERNAL: | |
| getMapKeyClass | back to summary |
|---|---|
| public MetadataClass getMapKeyClass(MetadataDescriptor descriptor) INTERNAL: This should only be called for accessor's of type Map. It will return the map key type if generics are used, null otherwise. | |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() INTERNAL: | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. INTERNAL:
| |
| getPrimitiveType | back to summary |
|---|---|
| public Object getPrimitiveType() INTERNAL: If this annotated element was built from java model elements and is a primitive type, this primitive type will be set. | |
| getRawClass | back to summary |
|---|---|
| public MetadataClass getRawClass(MetadataDescriptor descriptor) INTERNAL: Return the raw class for this accessible object. E.g. For an accessible object with a type of java.util.Collection<Employee>, this method will return java.util.Collection. | |
| getRawClassWithGenerics | back to summary |
|---|---|
| public MetadataClass getRawClassWithGenerics(MetadataDescriptor descriptor) INTERNAL: Return the complete raw class with generics for this accessible object. E.g. For an accessible object with a type of java.util.Collection<Employee>, this method will return java.util.CollectionEmployee. Note, the generics are appended to the name of the class. | |
| getReferenceClassFromGeneric | back to summary |
|---|---|
| public MetadataClass getReferenceClassFromGeneric(MetadataDescriptor descriptor) INTERNAL: Return the reference class from the generic specification on this accessible object. Here is what you will get back from this method given the following scenarios: 1 - public Collection<String> getTasks() => String.class 2 - public Map<String, Integer> getTasks() => Integer.class 3 - public Employee getEmployee() => null 4 - public Collection getTasks() => null 5 - public Map getTasks() => null 6 - public Collection<byte[]> getAudio() => byte[].class 7 - public Map<X,Y> on a MappedSuperclass where Y is defined in the Entity superclass<T> => Void.class (in all bug 266912 cases) | |
| getType | back to summary |
|---|---|
| public String getType() INTERNAL: | |
| hasDeclaredAnnotations | back to summary |
|---|---|
| public boolean hasDeclaredAnnotations(ClassAccessor classAccessor) INTERNAL: Return true if this accessible object has 1 or more declared persistence annotations. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. INTERNAL:
| |
| isAnnotationNotPresent | back to summary |
|---|---|
| public boolean isAnnotationNotPresent(Class<?> annotation, ClassAccessor accessor) INTERNAL: Indicates whether the specified annotation is actually not present on this accessible object. Used for defaulting. Need this check since the isAnnotationPresent calls can return a false when true because of the meta-data complete feature. | |
| isAnnotationNotPresent | back to summary |
|---|---|
| public boolean isAnnotationNotPresent(String annotation, ClassAccessor accessor) INTERNAL: Indicates whether the specified annotation is actually not present on this accessible object. Used for defaulting. Need this check since the isAnnotationPresent calls can return a false when true because of the meta-data complete feature. | |
| isAnnotationPresent | back to summary |
|---|---|
| public boolean isAnnotationPresent(Class<?> annotationClass, ClassAccessor accessor) INTERNAL: Indicates whether the specified annotation is present on java class for the given descriptor metadata. | |
| isAnnotationPresent | back to summary |
|---|---|
| public boolean isAnnotationPresent(String annotation) INTERNAL: Indicates whether the specified annotation is present on this accessible object. Note Calling this method directly does not take any metadata complete flag into consideration. Look at the other isAnnotationPresent methods that takes a class accessor. | |
| isAnnotationPresent | back to summary |
|---|---|
| public boolean isAnnotationPresent(String annotationName, ClassAccessor accessor) INTERNAL: Indicates whether the specified annotation is present on java class for the given descriptor metadata. | |
| isArray | back to summary |
|---|---|
| public boolean isArray(ClassAccessor classAccessor) INTERNAL: Return true if this field accessor represents an array relationship. | |
| isBasic | back to summary |
|---|---|
| public boolean isBasic(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a basic mapping. | |
| isBasicCollection | back to summary |
|---|---|
| public boolean isBasicCollection(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a basic collection mapping.
| |
| isBasicMap | back to summary |
|---|---|
| public boolean isBasicMap(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a basic collection mapping.
| |
| isDerivedId | back to summary |
|---|---|
| public boolean isDerivedId(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents an id mapping. | |
| isDerivedIdClass | back to summary |
|---|---|
| public boolean isDerivedIdClass(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents an id mapping. | |
| isElementCollection | back to summary |
|---|---|
| public boolean isElementCollection(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents an element collection mapping. | |
| isEmbedded | back to summary |
|---|---|
| public boolean isEmbedded(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents an aggregate mapping. True is returned if an Embedded annotation is found or if an Embeddable annotation is found on the raw/reference class. | |
| isEmbeddedId | back to summary |
|---|---|
| public boolean isEmbeddedId(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents an aggregate id mapping. | |
| isGenericCollectionType | back to summary |
|---|---|
| public boolean isGenericCollectionType() INTERNAL: Method to return whether a collection type is a generic. | |
| isGenericType | back to summary |
|---|---|
| public boolean isGenericType() INTERNAL: Method to return whether a type is a generic. | |
| isId | back to summary |
|---|---|
| public boolean isId(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents an id mapping. | |
| isManyToMany | back to summary |
|---|---|
| public boolean isManyToMany(ClassAccessor classAccessor) INTERNAL: Return true if this field accessor represents a m-m relationship. | |
| isManyToOne | back to summary |
|---|---|
| public boolean isManyToOne(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a m-1 relationship. | |
| isOneToMany | back to summary |
|---|---|
| public boolean isOneToMany(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a 1-m relationship. | |
| isOneToOne | back to summary |
|---|---|
| public boolean isOneToOne(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a 1-1 relationship. | |
| isStructure | back to summary |
|---|---|
| public boolean isStructure(ClassAccessor classAccessor) INTERNAL: Return true if this field accessor represents a structure relationship. | |
| isSupportedCollectionClass | back to summary |
|---|---|
| public boolean isSupportedCollectionClass(MetadataClass metadataClass) INTERNAL: Method to return whether the given class is a supported collection class. | |
| isSupportedMapClass | back to summary |
|---|---|
| public boolean isSupportedMapClass(MetadataClass metadataClass) INTERNAL: Method to return whether the given class is a supported map class. | |
| isSupportedToManyCollectionClass | back to summary |
|---|---|
| public boolean isSupportedToManyCollectionClass(MetadataClass metadataClass) INTERNAL: Method to return whether the given class is a supported to many collection class. | |
| isTransformation | back to summary |
|---|---|
| public boolean isTransformation(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents an transformation mapping. | |
| isValidPersistenceElement | back to summary |
|---|---|
| protected boolean isValidPersistenceElement(boolean mustBeExplicit, String explicitType, ClassAccessor classAccessor) INTERNAL: When processing the inverse accessors to an explicit access setting, their must be an Access(FIELD) or Access(PROPERTY) present for the element to be processed. Otherwise, it is ignored. | |
| isValidPersistenceElement | back to summary |
|---|---|
| protected boolean isValidPersistenceElement(int modifiers) INTERNAL: Return true if the modifiers are not transient, static or abstract. | |
| isVariableOneToOne | back to summary |
|---|---|
| public boolean isVariableOneToOne(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a variable 1-1 relationship. The method will return true if one of the following conditions is met: - There is a VariableOneToOne annotation present, or - The raw class is an interface and not a collection or map, nor a ValueHolderInterface (and an exclude default mappings flag is not set) | |
| isVersion | back to summary |
|---|---|
| public boolean isVersion(ClassAccessor classAccessor) INTERNAL: Return true if this accessor represents a version mapping. | |
| setAnnotations | back to summary |
|---|---|
| public void setAnnotations(Map<String, MetadataAnnotation> annotations) INTERNAL: Set the annotations of this accessible object. | |
| setAttributeName | back to summary |
|---|---|
| public void setAttributeName(String attributeName) INTERNAL: | |
| setGenericType | back to summary |
|---|---|
| public void setGenericType(List<String> genericType) INTERNAL: | |
| setModifiers | back to summary |
|---|---|
| public void setModifiers(int modifiers) INTERNAL: | |
| setName | back to summary |
|---|---|
| public void setName(String name) INTERNAL: | |
| setPrimitiveType | back to summary |
|---|---|
| public void setPrimitiveType(Object primitiveType) INTERNAL: If this annotated element was built from java model elements and is a primitive type this method will be called. | |
| setType | back to summary |
|---|---|
| public void setType(String type) INTERNAL: | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. INTERNAL:
| |