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 |
| 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() |
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, setSetMethodNameprotected 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 org.eclipse.persistence.core.mappings.CoreAttributeAccessorgetAttributeClass in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorpublic Object getAttributeValueFromObject(Object anObject) throws org.eclipse.persistence.exceptions.DescriptorException
getAttributeValueFromObject in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessorgetAttributeValueFromObject in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessororg.eclipse.persistence.exceptions.DescriptorExceptionpublic void initializeAttributes(Class theJavaClass) throws org.eclipse.persistence.exceptions.DescriptorException
initializeAttributes in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessorinitializeAttributes in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessororg.eclipse.persistence.exceptions.DescriptorExceptionpublic boolean isMethodAttributeAccessor()
isMethodAttributeAccessor in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessorisMethodAttributeAccessor in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorpublic void setAttributeValueInObject(Object domainObject, Object attributeValue) throws org.eclipse.persistence.exceptions.DescriptorException
setAttributeValueInObject in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessorsetAttributeValueInObject in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessororg.eclipse.persistence.exceptions.DescriptorExceptionpublic void setProperty(commonj.sdo.Property property)
public commonj.sdo.Property getProperty()
public Class getGetMethodReturnType()
getGetMethodReturnType 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.