Class PersistenceObjectAttributeAccessor
- java.lang.Object
-
- org.eclipse.persistence.mappings.AttributeAccessor
-
- org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor
-
- org.eclipse.persistence.internal.descriptors.PersistenceObjectAttributeAccessor
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,CoreAttributeAccessor
public class PersistenceObjectAttributeAccessor extends InstanceVariableAttributeAccessor
Used with weaving to access attributes without using reflection.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor
attributeField
-
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
-
Constructor Summary
Constructors Constructor Description PersistenceObjectAttributeAccessor(java.lang.String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttributeValueFromObject(java.lang.Object object)Returns the value of the attribute on the specified object.voidinitializeAttributes(java.lang.Class descriptorClass)Allow any initialization to be performed with the descriptor class.voidsetAttributeValueInObject(java.lang.Object object, java.lang.Object value)Sets the value of the instance variable in the object to the value.-
Methods inherited from class org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor
getAttributeClass, getAttributeField, getAttributeType, isInitialized, isInstanceVariableAttributeAccessor, setAttributeField
-
Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, getAttributeName, isMapValueAttributeAccessor, isMethodAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
-
-
-
-
Method Detail
-
getAttributeValueFromObject
public java.lang.Object getAttributeValueFromObject(java.lang.Object object)
Returns the value of the attribute on the specified object.- Specified by:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Overrides:
getAttributeValueFromObjectin classInstanceVariableAttributeAccessor
-
initializeAttributes
public void initializeAttributes(java.lang.Class descriptorClass) throws DescriptorExceptionAllow any initialization to be performed with the descriptor class.- Specified by:
initializeAttributesin interfaceCoreAttributeAccessor- Overrides:
initializeAttributesin classInstanceVariableAttributeAccessor- Throws:
DescriptorException
-
setAttributeValueInObject
public void setAttributeValueInObject(java.lang.Object object, java.lang.Object value)Sets the value of the instance variable in the object to the value.- Specified by:
setAttributeValueInObjectin interfaceCoreAttributeAccessor- Overrides:
setAttributeValueInObjectin classInstanceVariableAttributeAccessor
-
-