public class SDOMethodAttributeAccessor
extends org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
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.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class |
attributeClass |
protected SDOProperty |
property |
getMethod, getMethodName, setMethod, setMethodNameattributeName, isReadOnly, isWriteOnly| Constructor and Description |
|---|
SDOMethodAttributeAccessor(Property property) |
SDOMethodAttributeAccessor(Property property,
java.lang.Class attributeClass) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getAttributeClass()
Return the return type of the method accessor.
|
java.lang.Object |
getAttributeValueFromObject(java.lang.Object anObject)
Gets the value of an instance variable in the object.
|
java.lang.Class |
getGetMethodReturnType() |
Property |
getProperty()
INTERNAL:
|
java.lang.Class |
getSetMethodParameterType() |
void |
initializeAttributes(java.lang.Class theJavaClass)
Set get and set method after creating these methods by using
get and set method names
|
boolean |
isMethodAttributeAccessor()
INTERNAL:
|
void |
setAttributeValueInObject(java.lang.Object domainObject,
java.lang.Object attributeValue)
Sets the value of the instance variable in the object to the value.
|
void |
setProperty(Property property)
INTERNAL:
|
getAttributeValueFromObject, getGetMethod, getGetMethodName, getSetMethod, getSetMethodName, getSetMethodParameterType, getSetMethodParameterTypes, initializeAttributes, isInitialized, setAttributeValueInObject, setGetMethod, setGetMethodName, setSetMethod, setSetMethodNameclone, getAttributeName, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnlyprotected java.lang.Class attributeClass
protected SDOProperty property
public SDOMethodAttributeAccessor(Property property)
public SDOMethodAttributeAccessor(Property property, java.lang.Class attributeClass)
public java.lang.Class getAttributeClass()
getAttributeClass in interface CoreAttributeAccessorgetAttributeClass in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorpublic java.lang.Object getAttributeValueFromObject(java.lang.Object anObject)
throws DescriptorException
getAttributeValueFromObject in interface CoreAttributeAccessorgetAttributeValueFromObject in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorDescriptorExceptionpublic void initializeAttributes(java.lang.Class theJavaClass)
throws DescriptorException
initializeAttributes in interface CoreAttributeAccessorinitializeAttributes in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorDescriptorExceptionpublic boolean isMethodAttributeAccessor()
isMethodAttributeAccessor in interface CoreAttributeAccessorisMethodAttributeAccessor in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorpublic void setAttributeValueInObject(java.lang.Object domainObject,
java.lang.Object attributeValue)
throws DescriptorException
setAttributeValueInObject in interface CoreAttributeAccessorsetAttributeValueInObject in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorDescriptorExceptionpublic void setProperty(Property property)
public Property getProperty()
public java.lang.Class getGetMethodReturnType()
getGetMethodReturnType in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorpublic java.lang.Class getSetMethodParameterType()
getSetMethodParameterType in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor