Module org.eclipse.persistence.sdo
Class SDOFragmentMappingAttributeAccessor
java.lang.Object
org.eclipse.persistence.mappings.AttributeAccessor
org.eclipse.persistence.sdo.helper.SDOFragmentMappingAttributeAccessor
- All Implemented Interfaces:
Serializable
,Cloneable
,CoreAttributeAccessor
Purpose: A wrapper class for handling cases when the domain object attributes are to be accessed thru the accessor methods that are called "get" and "set". This is to be used when marsalling/unmarshalling SDODataObjects. The propertyName is the name of the property on the DataObject and that must be set on this accessor.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
Constructor Summary
ConstructorDescriptionSDOFragmentMappingAttributeAccessor
(SDOProperty property, HelperContext helper) -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValueFromObject
(Object anObject) Gets the value of an instance variable in the object.INTERNAL:void
initializeAttributes
(Class<?> theJavaClass) Set get and set method after creating these methods by using get and set method namesboolean
INTERNAL:void
setAttributeValueInObject
(Object domainObject, Object attributeValue) Sets the value of the instance variable in the object to the value.void
setProperty
(SDOProperty property) INTERNAL:Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, getAttributeClass, getAttributeName, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
-
Field Details
-
property
-
helperContext
-
-
Constructor Details
-
SDOFragmentMappingAttributeAccessor
-
-
Method Details
-
getAttributeValueFromObject
Gets the value of an instance variable in the object.- Specified by:
getAttributeValueFromObject
in interfaceCoreAttributeAccessor
- Specified by:
getAttributeValueFromObject
in classAttributeAccessor
- Throws:
DescriptorException
-
initializeAttributes
Set get and set method after creating these methods by using get and set method names- Specified by:
initializeAttributes
in interfaceCoreAttributeAccessor
- Overrides:
initializeAttributes
in classAttributeAccessor
- Throws:
DescriptorException
-
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()INTERNAL:- Specified by:
isMethodAttributeAccessor
in interfaceCoreAttributeAccessor
- Overrides:
isMethodAttributeAccessor
in classAttributeAccessor
-
setAttributeValueInObject
public void setAttributeValueInObject(Object domainObject, Object attributeValue) throws DescriptorException Sets the value of the instance variable in the object to the value.- Specified by:
setAttributeValueInObject
in interfaceCoreAttributeAccessor
- Specified by:
setAttributeValueInObject
in classAttributeAccessor
- Throws:
DescriptorException
-
setProperty
INTERNAL: -
getPropertyName
INTERNAL:
-