Module org.eclipse.persistence.sdo
Class SDOMethodAttributeAccessor
java.lang.Object
org.eclipse.persistence.mappings.AttributeAccessor
org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
org.eclipse.persistence.sdo.helper.SDOMethodAttributeAccessor
- 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 marshalling/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
FieldsFields inherited from class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
getMethod, getMethodName, setMethod, setMethodNameFields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly - 
Constructor Summary
ConstructorsConstructorDescriptionSDOMethodAttributeAccessor(Property property) SDOMethodAttributeAccessor(Property property, Class<?> attributeClass)  - 
Method Summary
Modifier and TypeMethodDescriptionClass<?> Return the return type of the method accessor.getAttributeValueFromObject(Object anObject) Gets the value of an instance variable in the object.Class<?> INTERNAL: Return the GetMethod return type for this MethodAttributeAccessor.INTERNAL:Class<?> voidinitializeAttributes(Class<?> theJavaClass) Set get and set method after creating these methods by using get and set method namesbooleanINTERNAL:voidsetAttributeValueInObject(Object domainObject, Object attributeValue) Sets the value of the instance variable in the object to the value.voidsetProperty(Property property) INTERNAL:Methods inherited from class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
getAttributeValueFromObject, getGetMethod, getGetMethodName, getSetMethod, getSetMethodName, getSetMethodParameterType, getSetMethodParameterTypes, initializeAttributes, isInitialized, setAttributeValueInObject, setGetMethod, setGetMethodName, setSetMethod, setSetMethodNameMethods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, getAttributeName, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly 
- 
Field Details
- 
attributeClass
 - 
property
 
 - 
 - 
Constructor Details
- 
SDOMethodAttributeAccessor
 - 
SDOMethodAttributeAccessor
 
 - 
 - 
Method Details
- 
getAttributeClass
Return the return type of the method accessor.- Specified by:
 getAttributeClassin interfaceCoreAttributeAccessor- Overrides:
 getAttributeClassin classMethodAttributeAccessor
 - 
getAttributeValueFromObject
Gets the value of an instance variable in the object.- Specified by:
 getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Overrides:
 getAttributeValueFromObjectin classMethodAttributeAccessor- Throws:
 DescriptorException
 - 
initializeAttributes
Set get and set method after creating these methods by using get and set method names- Specified by:
 initializeAttributesin interfaceCoreAttributeAccessor- Overrides:
 initializeAttributesin classMethodAttributeAccessor- Throws:
 DescriptorException
 - 
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()INTERNAL:- Specified by:
 isMethodAttributeAccessorin interfaceCoreAttributeAccessor- Overrides:
 isMethodAttributeAccessorin classMethodAttributeAccessor
 - 
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:
 setAttributeValueInObjectin interfaceCoreAttributeAccessor- Overrides:
 setAttributeValueInObjectin classMethodAttributeAccessor- Throws:
 DescriptorException
 - 
setProperty
INTERNAL: - 
getProperty
INTERNAL: - 
getGetMethodReturnType
Description copied from class:MethodAttributeAccessorINTERNAL: Return the GetMethod return type for this MethodAttributeAccessor. A special check is made to determine if a missing method is a result of failed weaving.- Overrides:
 getGetMethodReturnTypein classMethodAttributeAccessor
 - 
getSetMethodParameterType
- Overrides:
 getSetMethodParameterTypein classMethodAttributeAccessor
 
 -