Module org.eclipse.persistence.core
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:
Serializable
,Cloneable
,CoreAttributeAccessor
Used with weaving to access attributes without using reflection.
- See Also:
-
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
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValueFromObject
(Object object) Returns the value of the attribute on the specified object.void
initializeAttributes
(Class<?> descriptorClass) Allow any initialization to be performed with the descriptor class.void
setAttributeValueInObject
(Object object, 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
-
Constructor Details
-
PersistenceObjectAttributeAccessor
-
-
Method Details
-
getAttributeValueFromObject
Returns the value of the attribute on the specified object.- Specified by:
getAttributeValueFromObject
in interfaceCoreAttributeAccessor
- Overrides:
getAttributeValueFromObject
in classInstanceVariableAttributeAccessor
-
initializeAttributes
Allow any initialization to be performed with the descriptor class.- Specified by:
initializeAttributes
in interfaceCoreAttributeAccessor
- Overrides:
initializeAttributes
in classInstanceVariableAttributeAccessor
- Throws:
DescriptorException
-
setAttributeValueInObject
Sets the value of the instance variable in the object to the value.- Specified by:
setAttributeValueInObject
in interfaceCoreAttributeAccessor
- Overrides:
setAttributeValueInObject
in classInstanceVariableAttributeAccessor
-