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 Class |
attributeClass |
protected SDOProperty |
property |
getMethod, getMethodName, setMethod, setMethodNameattributeName, isReadOnly, isWriteOnly| Constructor and Description |
|---|
SDOMethodAttributeAccessor(commonj.sdo.Property property) |
SDOMethodAttributeAccessor(commonj.sdo.Property property,
Class attributeClass) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getAttributeClass()
Return the return type of the method accessor.
|
Object |
getAttributeValueFromObject(Object anObject)
Gets the value of an instance variable in the object.
|
Class |
getGetMethodReturnType()
INTERNAL:
Return the GetMethod return type for this MethodAttributeAccessor.
|
commonj.sdo.Property |
getProperty()
INTERNAL:
|
Class |
getSetMethodParameterType() |
void |
initializeAttributes(Class theJavaClass)
Set get and set method after creating these methods by using
get and set method names
|
boolean |
isMethodAttributeAccessor()
INTERNAL:
|
void |
setAttributeValueInObject(Object domainObject,
Object attributeValue)
Sets the value of the instance variable in the object to the value.
|
void |
setProperty(commonj.sdo.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 Class attributeClass
protected SDOProperty property
public SDOMethodAttributeAccessor(commonj.sdo.Property property)
public SDOMethodAttributeAccessor(commonj.sdo.Property property,
Class attributeClass)
public Class getAttributeClass()
getAttributeClass in interface CoreAttributeAccessorgetAttributeClass in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorpublic Object getAttributeValueFromObject(Object anObject) throws DescriptorException
getAttributeValueFromObject in interface CoreAttributeAccessorgetAttributeValueFromObject in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorDescriptorExceptionpublic void initializeAttributes(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(Object domainObject, Object attributeValue) throws DescriptorException
setAttributeValueInObject in interface CoreAttributeAccessorsetAttributeValueInObject in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorDescriptorExceptionpublic void setProperty(commonj.sdo.Property property)
public commonj.sdo.Property getProperty()
public Class getGetMethodReturnType()
org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorgetGetMethodReturnType in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorpublic Class getSetMethodParameterType()
getSetMethodParameterType in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.