Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metadata.accessors.objects

public Class MetadataField

extends MetadataAnnotatedElement
Class Inheritance
Imports
org.eclipse.persistence.internal.jpa.metadata.MetadataLogger, org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor, org.eclipse.persistence.internal.jpa.weaving.ClassWeaver

INTERNAL: An object to hold onto a valid JPA decorated field.
Author
Guy Pelletier
Since
TopLink 10.1.3/EJB 3.0 Preview

Field Summary

Modifier and TypeField and Description
protected MetadataClass
Inherited from org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement:
DEFAULT_RAW_CLASSm_primitiveType

Constructor Summary

AccessConstructor and Description
public
MetadataField(MetadataClass metadataClass)

INTERNAL:

Method Summary

Modifier and TypeMethod and Description
public MetadataClass
getDeclaringClass()

INTERNAL:

public boolean
isEclipseLinkWeavedField()

INTERNAL: Used to determine if this is a field EclipseLink weaved into the class.

public boolean
isValidPersistenceField(boolean mustBeExplicit, ClassAccessor classAccessor)

INTERNAL: Return true is this field is a valid persistence field.

public boolean
isValidPersistenceField(ClassAccessor classAccessor, boolean userDecorated)

INTERNAL: Return true is this field is a valid persistence field.

public void
setDeclaringClass(MetadataClass declaringClass)

INTERNAL:

public boolean
shouldBeIgnored()

INTERNAL Some fields should automatically be ignored, return true if this field should be ignored

Inherited from org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement:
addAnnotationaddGenericTypeaddMetaAnnotationareAnnotationsCompatibleWithTransientequalsgetAnnotationgetAnnotationgetAnnotationgetAnnotationgetAnnotationsgetAttributeNamegetDeclaredAnnotationsCountgetGenericTypegetMapKeyClassgetModifiersgetNamegetPrimitiveTypegetRawClassgetRawClassWithGenericsgetReferenceClassFromGenericgetTypehasDeclaredAnnotationshashCodeisAnnotationNotPresentisAnnotationNotPresentisAnnotationPresentisAnnotationPresentisAnnotationPresentisArrayisBasicisBasicCollectionisBasicMapisDerivedIdisDerivedIdClassisElementCollectionisEmbeddedisEmbeddedIdisGenericCollectionTypeisGenericTypeisIdisManyToManyisManyToOneisOneToManyisOneToOneisStructureisSupportedCollectionClassisSupportedMapClassisSupportedToManyCollectionClassisTransformationisValidPersistenceElementisValidPersistenceElementisVariableOneToOneisVersionsetAnnotationssetAttributeNamesetGenericTypesetModifierssetNamesetPrimitiveTypesetTypetoString

Field Detail

declaringClassback to summary
protected MetadataClass declaringClass

Constructor Detail

MetadataFieldback to summary
public MetadataField(MetadataClass metadataClass)

INTERNAL:

Method Detail

getDeclaringClassback to summary
public MetadataClass getDeclaringClass()

INTERNAL:

isEclipseLinkWeavedFieldback to summary
public boolean isEclipseLinkWeavedField()

INTERNAL: Used to determine if this is a field EclipseLink weaved into the class.

isValidPersistenceFieldback to summary
public boolean isValidPersistenceField(boolean mustBeExplicit, ClassAccessor classAccessor)

INTERNAL: Return true is this field is a valid persistence field. This method will validate against any declared annotations on the field. If the mustBeExplicit flag is true, then we are processing the inverse of an explicit access setting and the field must have an Access(FIELD) setting to be processed. Otherwise, it is ignored.

isValidPersistenceFieldback to summary
public boolean isValidPersistenceField(ClassAccessor classAccessor, boolean userDecorated)

INTERNAL: Return true is this field is a valid persistence field. User decorated is used to indicate that the field either had persistence annotations defined on it or that it was specified in XML.

setDeclaringClassback to summary
public void setDeclaringClass(MetadataClass declaringClass)

INTERNAL:

shouldBeIgnoredback to summary
public boolean shouldBeIgnored()

INTERNAL Some fields should automatically be ignored, return true if this field should be ignored