Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.weaving

public Class AttributeDetails

extends Object
Class Inheritance
Imports
org.eclipse.persistence.asm.Type, org.eclipse.persistence.mappings.DatabaseMapping

INTERNAL: Internal helper class that holds details of a persistent attribute. Used by ClassDetails

Field Summary

Modifier and TypeField and Description
protected String
attributeName

The name of this attribute.

protected boolean
protected Type
declaringType

Determines if the attribute has a real field.

protected String
protected boolean
hasField

Determines if the attribute has a real field.

protected boolean
protected DatabaseMapping
protected String
protected Type
protected String
setMethodSignature

Caches the set method signature.

protected String
protected boolean
protected boolean

Constructor Summary

AccessConstructor and Description
public
AttributeDetails(String attributeName, DatabaseMapping mapping)

Method Summary

Modifier and TypeMethod and Description
public String
public Type
public String
public DatabaseMapping
public String
public Type
public String
public String
public boolean
hasField()

Return if the attribute has a real field.

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
setAttributeOnSuperClass(boolean onSuperClass)

public void
setDeclaringType(Type declaringType)

public void
setGetterMethodName(String getMethodName)

public void
setHasField(boolean hasField)

Set if the attribute has a real field.

public void
public void
public void
setSetterMethodName(String setMethodName)

public void
setVirtualProperty(boolean isVirtualProperty)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public boolean
public boolean
public void
weaveVH(boolean weaveValueHolders, DatabaseMapping mapping)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributeNameback to summary
protected String attributeName

The name of this attribute.

attributeOnSuperClassback to summary
protected boolean attributeOnSuperClass
declaringTypeback to summary
protected Type declaringType

Determines if the attribute has a real field.

getterMethodNameback to summary
protected String getterMethodName
hasFieldback to summary
protected boolean hasField

Determines if the attribute has a real field.

isVirtualPropertyback to summary
protected boolean isVirtualProperty
mappingback to summary
protected DatabaseMapping mapping
referenceClassNameback to summary
protected String referenceClassName
referenceClassTypeback to summary
protected Type referenceClassType
setMethodSignatureback to summary
protected String setMethodSignature

Caches the set method signature.

setterMethodNameback to summary
protected String setterMethodName
weaveTransientFieldValueHoldersback to summary
protected boolean weaveTransientFieldValueHolders
weaveValueHoldersback to summary
protected boolean weaveValueHolders

Constructor Detail

AttributeDetailsback to summary
public AttributeDetails(String attributeName, DatabaseMapping mapping)

Method Detail

getAttributeNameback to summary
public String getAttributeName()
getDeclaringTypeback to summary
public Type getDeclaringType()
getGetterMethodNameback to summary
public String getGetterMethodName()
getMappingback to summary
public DatabaseMapping getMapping()
getReferenceClassNameback to summary
public String getReferenceClassName()
getReferenceClassTypeback to summary
public Type getReferenceClassType()
getSetterMethodNameback to summary
public String getSetterMethodName()
getSetterMethodSignatureback to summary
public String getSetterMethodSignature()
hasFieldback to summary
public boolean hasField()

Return if the attribute has a real field. This allows properties to still be weaved at the field level.

isAttributeOnSuperClassback to summary
public boolean isAttributeOnSuperClass()
isCollectionMappingback to summary
public boolean isCollectionMapping()
isLazyback to summary
public boolean isLazy()
isMappedWithAttributeAccessback to summary
public boolean isMappedWithAttributeAccess()
isOneToOneMappingback to summary
public boolean isOneToOneMapping()
isVirtualPropertyback to summary
public boolean isVirtualProperty()
setAttributeOnSuperClassback to summary
public void setAttributeOnSuperClass(boolean onSuperClass)
setDeclaringTypeback to summary
public void setDeclaringType(Type declaringType)
setGetterMethodNameback to summary
public void setGetterMethodName(String getMethodName)
setHasFieldback to summary
public void setHasField(boolean hasField)

Set if the attribute has a real field. This allows properties to still be weaved at the field level.

setReferenceClassNameback to summary
public void setReferenceClassName(String className)
setReferenceClassTypeback to summary
public void setReferenceClassType(Type classType)
setSetterMethodNameback to summary
public void setSetterMethodName(String setMethodName)
setVirtualPropertyback to summary
public void setVirtualProperty(boolean isVirtualProperty)
setWeaveTransientFieldValueHoldersback to summary
public void setWeaveTransientFieldValueHolders()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
weaveTransientFieldValueHoldersback to summary
public boolean weaveTransientFieldValueHolders()
weaveValueHoldersback to summary
public boolean weaveValueHolders()
weaveVHback to summary
public void weaveVH(boolean weaveValueHolders, DatabaseMapping mapping)