Class AttributeDetails
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.weaving.AttributeDetails
-
public class AttributeDetails extends Object
INTERNAL: Internal helper class that holds details of a persistent attribute. Used byClassDetails
-
-
Field Summary
Fields Modifier and Type Field Description protected StringattributeNameThe name of this attribute.protected booleanattributeOnSuperClassprotected org.eclipse.persistence.internal.libraries.asm.TypedeclaringTypeDetermines if the attribute has a real field.protected StringgetterMethodNameprotected booleanhasFieldDetermines if the attribute has a real field.protected booleanisVirtualPropertyprotected DatabaseMappingmappingprotected StringreferenceClassNameprotected org.eclipse.persistence.internal.libraries.asm.TypereferenceClassTypeprotected StringsetMethodSignatureCaches the set method signature.protected StringsetterMethodNameprotected booleanweaveTransientFieldValueHoldersprotected booleanweaveValueHolders
-
Constructor Summary
Constructors Constructor Description AttributeDetails(String attributeName, DatabaseMapping mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName()org.eclipse.persistence.internal.libraries.asm.TypegetDeclaringType()StringgetGetterMethodName()DatabaseMappinggetMapping()StringgetReferenceClassName()org.eclipse.persistence.internal.libraries.asm.TypegetReferenceClassType()StringgetSetterMethodName()StringgetSetterMethodSignature()booleanhasField()Return if the attribute has a real field.booleanisAttributeOnSuperClass()booleanisCollectionMapping()booleanisLazy()booleanisMappedWithAttributeAccess()booleanisOneToOneMapping()booleanisVirtualProperty()voidsetAttributeOnSuperClass(boolean onSuperClass)voidsetDeclaringType(org.eclipse.persistence.internal.libraries.asm.Type declaringType)voidsetGetterMethodName(String getMethodName)voidsetHasField(boolean hasField)Set if the attribute has a real field.voidsetReferenceClassName(String className)voidsetReferenceClassType(org.eclipse.persistence.internal.libraries.asm.Type classType)voidsetSetterMethodName(String setMethodName)voidsetVirtualProperty(boolean isVirtualProperty)voidsetWeaveTransientFieldValueHolders()StringtoString()booleanweaveTransientFieldValueHolders()booleanweaveValueHolders()voidweaveVH(boolean weaveValueHolders, DatabaseMapping mapping)
-
-
-
Field Detail
-
attributeName
protected String attributeName
The name of this attribute.
-
referenceClassName
protected String referenceClassName
-
referenceClassType
protected org.eclipse.persistence.internal.libraries.asm.Type referenceClassType
-
weaveValueHolders
protected boolean weaveValueHolders
-
weaveTransientFieldValueHolders
protected boolean weaveTransientFieldValueHolders
-
mapping
protected DatabaseMapping mapping
-
getterMethodName
protected String getterMethodName
-
setterMethodName
protected String setterMethodName
-
attributeOnSuperClass
protected boolean attributeOnSuperClass
-
hasField
protected boolean hasField
Determines if the attribute has a real field.
-
declaringType
protected org.eclipse.persistence.internal.libraries.asm.Type declaringType
Determines if the attribute has a real field.
-
setMethodSignature
protected String setMethodSignature
Caches the set method signature.
-
isVirtualProperty
protected boolean isVirtualProperty
-
-
Constructor Detail
-
AttributeDetails
public AttributeDetails(String attributeName, DatabaseMapping mapping)
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
-
getMapping
public DatabaseMapping getMapping()
-
getGetterMethodName
public String getGetterMethodName()
-
getSetterMethodSignature
public String getSetterMethodSignature()
-
getSetterMethodName
public String getSetterMethodName()
-
getReferenceClassName
public String getReferenceClassName()
-
setReferenceClassName
public void setReferenceClassName(String className)
-
getDeclaringType
public org.eclipse.persistence.internal.libraries.asm.Type getDeclaringType()
-
setDeclaringType
public void setDeclaringType(org.eclipse.persistence.internal.libraries.asm.Type declaringType)
-
getReferenceClassType
public org.eclipse.persistence.internal.libraries.asm.Type getReferenceClassType()
-
setReferenceClassType
public void setReferenceClassType(org.eclipse.persistence.internal.libraries.asm.Type classType)
-
setAttributeOnSuperClass
public void setAttributeOnSuperClass(boolean onSuperClass)
-
isVirtualProperty
public boolean isVirtualProperty()
-
setVirtualProperty
public void setVirtualProperty(boolean isVirtualProperty)
-
isAttributeOnSuperClass
public boolean isAttributeOnSuperClass()
-
setWeaveTransientFieldValueHolders
public void setWeaveTransientFieldValueHolders()
-
weaveTransientFieldValueHolders
public boolean weaveTransientFieldValueHolders()
-
weaveValueHolders
public boolean weaveValueHolders()
-
weaveVH
public void weaveVH(boolean weaveValueHolders, DatabaseMapping mapping)
-
setGetterMethodName
public void setGetterMethodName(String getMethodName)
-
setSetterMethodName
public void setSetterMethodName(String setMethodName)
-
setHasField
public void setHasField(boolean hasField)
Set if the attribute has a real field. This allows properties to still be weaved at the field level.
-
hasField
public boolean hasField()
Return if the attribute has a real field. This allows properties to still be weaved at the field level.
-
isCollectionMapping
public boolean isCollectionMapping()
-
isMappedWithAttributeAccess
public boolean isMappedWithAttributeAccess()
-
isOneToOneMapping
public boolean isOneToOneMapping()
-
isLazy
public boolean isLazy()
-
-