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, setMethodName
attributeName, isReadOnly, isWriteOnly
Constructor and Description |
---|
SDOMethodAttributeAccessor(Property property) |
SDOMethodAttributeAccessor(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.
|
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(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 Class attributeClass
protected SDOProperty property
public SDOMethodAttributeAccessor(Property property)
public Class getAttributeClass()
getAttributeClass
in interface CoreAttributeAccessor
getAttributeClass
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public Object getAttributeValueFromObject(Object anObject) throws DescriptorException
getAttributeValueFromObject
in interface CoreAttributeAccessor
getAttributeValueFromObject
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
DescriptorException
public void initializeAttributes(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(Object domainObject, 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 Class getGetMethodReturnType()
org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
getGetMethodReturnType
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public Class getSetMethodParameterType()
getSetMethodParameterType
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
Copyright © 2017–2020 Eclipse.org - EclipseLink Project. All rights reserved.