public class SDOFragmentMappingAttributeAccessor extends AttributeAccessor
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 marsalling/unmarshalling SDODataObjects. The propertyName is the name of the property on the DataObject and that must be set on this accessor.
| Constructor and Description |
|---|
SDOFragmentMappingAttributeAccessor(SDOProperty property, HelperContext helper) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttributeValueFromObject(java.lang.Object anObject)
Gets the value of an instance variable in the object.
|
SDOProperty |
getPropertyName()
INTERNAL:
|
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(SDOProperty property)
INTERNAL:
|
clone, getAttributeClass, getAttributeName, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnlypublic SDOFragmentMappingAttributeAccessor(SDOProperty property, HelperContext helper)
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject)
throws DescriptorException
getAttributeValueFromObject in interface CoreAttributeAccessorgetAttributeValueFromObject in class AttributeAccessorDescriptorException
public void initializeAttributes(java.lang.Class theJavaClass)
throws DescriptorException
initializeAttributes in interface CoreAttributeAccessorinitializeAttributes in class AttributeAccessorDescriptorExceptionpublic boolean isMethodAttributeAccessor()
isMethodAttributeAccessor in interface CoreAttributeAccessorisMethodAttributeAccessor in class AttributeAccessor
public void setAttributeValueInObject(java.lang.Object domainObject,
java.lang.Object attributeValue)
throws DescriptorException
setAttributeValueInObject in interface CoreAttributeAccessorsetAttributeValueInObject in class AttributeAccessorDescriptorExceptionpublic void setProperty(SDOProperty property)
public SDOProperty getPropertyName()