Skip navigation links
org.eclipse.persistence.sdo.helper
Class SDOFragmentMappingAttributeAccessor
java.lang.Object
org.eclipse.persistence.mappings.AttributeAccessor
org.eclipse.persistence.sdo.helper.SDOFragmentMappingAttributeAccessor
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
-
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.
- See Also:
- Serialized Form
Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor |
clone, getAttributeClass, getAttributeName, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
property
protected SDOProperty property
helperContext
protected HelperContext helperContext
SDOFragmentMappingAttributeAccessor
public SDOFragmentMappingAttributeAccessor(SDOProperty property,
HelperContext helper)
getAttributeValueFromObject
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject)
throws DescriptorException
- Gets the value of an instance variable in the object.
-
- Specified by:
getAttributeValueFromObject
in class AttributeAccessor
-
- Throws:
DescriptorException
initializeAttributes
public void initializeAttributes(java.lang.Class theJavaClass)
throws DescriptorException
- Set get and set method after creating these methods by using get and set method names
-
- Overrides:
initializeAttributes
in class AttributeAccessor
-
- Throws:
DescriptorException
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()
- INTERNAL:
-
- Overrides:
isMethodAttributeAccessor
in class AttributeAccessor
setAttributeValueInObject
public void setAttributeValueInObject(java.lang.Object domainObject,
java.lang.Object attributeValue)
throws DescriptorException
- Sets the value of the instance variable in the object to the value.
-
- Specified by:
setAttributeValueInObject
in class AttributeAccessor
-
- Throws:
DescriptorException
setProperty
public void setProperty(SDOProperty property)
- INTERNAL:
getPropertyName
public SDOProperty getPropertyName()
- INTERNAL:
buildFragment
private java.lang.Object buildFragment(Property property,
SDODataObject parentObject,
SDODataObject value)
Skip navigation links