Module org.eclipse.persistence.jpa
Class MetadataClass
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAccessibleObject
org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement
org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataClass
INTERNAL:
An object to hold onto a valid JPA decorated class.
- Since:
- TopLink 10.1.3/EJB 3.0 Preview
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<MetadataClass> protected Map<String, MetadataField> protected booleanprotected booleanprotected booleanprotected booleanprotected Map<String, MetadataMethod> protected intprotected MetadataClassprotected StringFields inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement
DEFAULT_RAW_CLASSFields inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAccessibleObject
m_factory -
Constructor Summary
ConstructorsConstructorDescriptionMetadataClass(MetadataFactory factory, Class<?> cls) Create the metadata class based on the class.MetadataClass(MetadataFactory factory, String name) Create the metadata class with the class name.MetadataClass(MetadataFactory factory, String name, boolean isLazy) Create the metadata class with the class name. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEnclosedClass(MetadataClass enclosedClass) INTERNAL:voidaddField(MetadataField field) INTERNAL:voidaddInterface(String interfaceName) INTERNAL:voidaddMethod(MetadataMethod method) INTERNAL:booleanextendsClass(Class<?> javaClass) INTERNAL: Return if this class is or extends, or super class extends the class.booleanextendsClass(String className) INTERNAL: Return if this class is or extends, or super class extends the class.booleanextendsInterface(Class<?> javaClass) INTERNAL: Return if this class is or extends, or super class extends the interface.booleanextendsInterface(String className) INTERNAL: Return if this class is or extends, or super class extends the interface.INTERNAL: Return the list of classes defined within this metadata class.INTERNAL: Return the field with the name.INTERNAL: Return the field with the name.INTERNAL:INTERNAL:protected MetadataMethodINTERNAL: Return the method with the name and no arguments.INTERNAL: Return the method with the name and argument types.INTERNAL: Return the method with the name and argument types (class names).INTERNAL: Return the method with the name and argument types (class names).INTERNAL: Return the method with the name and argument types (class names).getMethodForPropertyName(String propertyName) INTERNAL: Return the method for the given property name.INTERNAL:intINTERNAL:INTERNAL:INTERNAL:Return the ASM type name.booleanINTERNAL: Return true is this class accessible to be found.booleanisArray()INTERNAL: Return if this class is an array type.booleanAllow comparison to Java classes and Metadata classes.booleanINTERNAL: Return if this is extends Collection.booleanisEnum()INTERNAL: Return if this is extends Enum.booleanINTERNAL: Return if this is an interface (super is null).booleanisJDK()INTERNAL: Return if this is a JDK (java/javax) class.booleanisLazy()INTERNAL:booleanisList()INTERNAL: Return if this is extends List.booleanisMap()INTERNAL: Return if this is extends Map.booleanisObject()INTERNAL: Return if this is Object class.booleanINTERNAL: Return if this is a primitive.booleanINTERNAL: Return if this class extends Serializable or is an array type.booleanINTENAL: Return true is this class is the Serializable.class interface.booleanisSet()INTERNAL: Return true if this extends Set.booleanisVoid()INTERNAL: Return if this is the void class.voidsetIsAccessible(boolean isAccessible) INTERNAL:voidsetIsJDK(boolean isJDK) INTERNAL:voidsetIsLazy(boolean isLazy) INTERNAL:voidsetModifiers(int modifiers) INTERNAL:voidINTERNAL:voidsetSuperclass(MetadataClass superclass) INTERNAL:voidsetSuperclassName(String superclass) INTERNAL:Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement
addAnnotation, addGenericType, addMetaAnnotation, areAnnotationsCompatibleWithTransient, equals, getAnnotation, getAnnotation, getAnnotation, getAnnotation, getAnnotations, getAttributeName, getDeclaredAnnotationsCount, getGenericType, getMapKeyClass, getName, getPrimitiveType, getRawClass, getRawClassWithGenerics, getReferenceClassFromGeneric, getType, hasDeclaredAnnotations, hashCode, isAnnotationNotPresent, isAnnotationNotPresent, isAnnotationPresent, isAnnotationPresent, isAnnotationPresent, isArray, isBasic, isBasicCollection, isBasicMap, isDerivedId, isDerivedIdClass, isElementCollection, isEmbedded, isEmbeddedId, isGenericCollectionType, isGenericType, isId, isManyToMany, isManyToOne, isOneToMany, isOneToOne, isStructure, isSupportedCollectionClass, isSupportedMapClass, isSupportedToManyCollectionClass, isTransformation, isValidPersistenceElement, isValidPersistenceElement, isVariableOneToOne, isVersion, setAnnotations, setAttributeName, setGenericType, setPrimitiveType, setType, toStringMethods inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAccessibleObject
getLogger, getMetadataClass, getMetadataFactory, setMetadataFactory
-
Field Details
-
m_isLazy
protected boolean m_isLazy -
m_isAccessible
protected boolean m_isAccessible -
m_isPrimitive
protected boolean m_isPrimitive -
m_isJDK
protected boolean m_isJDK -
m_modifiers
protected int m_modifiers -
m_interfaces
-
m_enclosedClasses
-
m_fields
-
m_methods
-
m_superclass
-
m_superclassName
-
-
Constructor Details
-
MetadataClass
Create the metadata class with the class name. -
MetadataClass
Create the metadata class with the class name. -
MetadataClass
Create the metadata class based on the class. Mainly used for primitive defaults.
-
-
Method Details
-
addEnclosedClass
INTERNAL: -
addField
INTERNAL: -
addInterface
INTERNAL: -
addMethod
INTERNAL: -
isClass
Allow comparison to Java classes and Metadata classes. -
extendsClass
INTERNAL: Return if this class is or extends, or super class extends the class. -
extendsClass
INTERNAL: Return if this class is or extends, or super class extends the class. -
extendsInterface
INTERNAL: Return if this class is or extends, or super class extends the interface. -
extendsInterface
INTERNAL: Return if this class is or extends, or super class extends the interface. -
getEnclosedClasses
INTERNAL: Return the list of classes defined within this metadata class. E.g. enums and inner classes. -
getField
INTERNAL: Return the field with the name. Search for any declared or inherited field. -
getField
INTERNAL: Return the field with the name. Search for any declared or inherited field. -
getFields
INTERNAL: -
getInterfaces
INTERNAL: -
getMethod
INTERNAL: Return the method with the name and no arguments. -
getMethod
INTERNAL: Return the method with the name and argument types. -
getMethod
INTERNAL: Return the method with the name and argument types (class names). -
getMethod
INTERNAL: Return the method with the name and argument types (class names). -
getMethod
INTERNAL: Return the method with the name and argument types (class names). -
getMethodForPropertyName
INTERNAL: Return the method for the given property name. -
getMethods
INTERNAL: -
getModifiers
public int getModifiers()INTERNAL:- Overrides:
getModifiersin classMetadataAnnotatedElement
-
getSuperclass
INTERNAL: -
getSuperclassName
INTERNAL: -
getTypeName
Return the ASM type name. -
isAccessible
public boolean isAccessible()INTERNAL: Return true is this class accessible to be found. -
isArray
public boolean isArray()INTERNAL: Return if this class is an array type. -
isCollection
public boolean isCollection()INTERNAL: Return if this is extends Collection. -
isEnum
public boolean isEnum()INTERNAL: Return if this is extends Enum. -
isInterface
public boolean isInterface()INTERNAL: Return if this is an interface (super is null). -
isJDK
public boolean isJDK()INTERNAL: Return if this is a JDK (java/javax) class. -
isLazy
public boolean isLazy()INTERNAL: -
isList
public boolean isList()INTERNAL: Return if this is extends List. -
isMap
public boolean isMap()INTERNAL: Return if this is extends Map. -
isObject
public boolean isObject()INTERNAL: Return if this is Object class. -
isPrimitive
public boolean isPrimitive()INTERNAL: Return if this is a primitive. -
isSerializable
public boolean isSerializable()INTERNAL: Return if this class extends Serializable or is an array type. -
isSerializableInterface
public boolean isSerializableInterface()INTENAL: Return true is this class is the Serializable.class interface. -
isSet
public boolean isSet()INTERNAL: Return true if this extends Set. -
isVoid
public boolean isVoid()INTERNAL: Return if this is the void class. -
setIsAccessible
public void setIsAccessible(boolean isAccessible) INTERNAL: -
setIsJDK
public void setIsJDK(boolean isJDK) INTERNAL: -
setIsLazy
public void setIsLazy(boolean isLazy) INTERNAL: -
setModifiers
public void setModifiers(int modifiers) INTERNAL:- Overrides:
setModifiersin classMetadataAnnotatedElement
-
setName
INTERNAL:- Overrides:
setNamein classMetadataAnnotatedElement
-
setSuperclass
INTERNAL: -
setSuperclassName
INTERNAL:
-