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, setMethodName
attributeName, 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, setSetMethodName
clone, getAttributeName, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
protected 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 CoreAttributeAccessor
getAttributeClass
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject) throws DescriptorException
getAttributeValueFromObject
in interface CoreAttributeAccessor
getAttributeValueFromObject
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
DescriptorException
public void initializeAttributes(java.lang.Class theJavaClass) throws DescriptorException
initializeAttributes
in interface CoreAttributeAccessor
initializeAttributes
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
DescriptorException
public boolean isMethodAttributeAccessor()
isMethodAttributeAccessor
in interface CoreAttributeAccessor
isMethodAttributeAccessor
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public void setAttributeValueInObject(java.lang.Object domainObject, java.lang.Object attributeValue) throws DescriptorException
setAttributeValueInObject
in interface CoreAttributeAccessor
setAttributeValueInObject
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
DescriptorException
public void setProperty(Property property)
public Property getProperty()
public java.lang.Class getGetMethodReturnType()
getGetMethodReturnType
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public java.lang.Class getSetMethodParameterType()
getSetMethodParameterType
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor