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
attributeFieldFields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValueFromObject(Object object) Returns the value of the attribute on the specified object.voidinitializeAttributes(Class<?> descriptorClass) Allow any initialization to be performed with the descriptor class.voidsetAttributeValueInObject(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, setAttributeFieldMethods 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:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Overrides:
getAttributeValueFromObjectin classInstanceVariableAttributeAccessor
-
initializeAttributes
Allow any initialization to be performed with the descriptor class.- Specified by:
initializeAttributesin interfaceCoreAttributeAccessor- Overrides:
initializeAttributesin classInstanceVariableAttributeAccessor- Throws:
DescriptorException
-
setAttributeValueInObject
Sets the value of the instance variable in the object to the value.- Specified by:
setAttributeValueInObjectin interfaceCoreAttributeAccessor- Overrides:
setAttributeValueInObjectin classInstanceVariableAttributeAccessor
-