Module eclipselink
Class SDOFragmentMappingAttributeAccessor
- java.lang.Object
-
- org.eclipse.persistence.mappings.AttributeAccessor
-
- org.eclipse.persistence.sdo.helper.SDOFragmentMappingAttributeAccessor
-
- All Implemented Interfaces:
Serializable,Cloneable,CoreAttributeAccessor
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
-
-
Field Summary
Fields Modifier and Type Field Description protected HelperContexthelperContextprotected SDOPropertyproperty-
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
-
Constructor Summary
Constructors Constructor Description SDOFragmentMappingAttributeAccessor(SDOProperty property, HelperContext helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttributeValueFromObject(Object anObject)Gets the value of an instance variable in the object.SDOPropertygetPropertyName()INTERNAL:voidinitializeAttributes(Class<?> theJavaClass)Set get and set method after creating these methods by using get and set method namesbooleanisMethodAttributeAccessor()INTERNAL:voidsetAttributeValueInObject(Object domainObject, Object attributeValue)Sets the value of the instance variable in the object to the value.voidsetProperty(SDOProperty property)INTERNAL:-
Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, getAttributeClass, getAttributeName, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
-
-
-
-
Field Detail
-
property
protected SDOProperty property
-
helperContext
protected HelperContext helperContext
-
-
Constructor Detail
-
SDOFragmentMappingAttributeAccessor
public SDOFragmentMappingAttributeAccessor(SDOProperty property, HelperContext helper)
-
-
Method Detail
-
getAttributeValueFromObject
public Object getAttributeValueFromObject(Object anObject) throws DescriptorException
Gets the value of an instance variable in the object.- Specified by:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Specified by:
getAttributeValueFromObjectin classAttributeAccessor- Throws:
DescriptorException
-
initializeAttributes
public void initializeAttributes(Class<?> theJavaClass) throws DescriptorException
Set get and set method after creating these methods by using get and set method names- Specified by:
initializeAttributesin interfaceCoreAttributeAccessor- Overrides:
initializeAttributesin classAttributeAccessor- Throws:
DescriptorException
-
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()
INTERNAL:- Specified by:
isMethodAttributeAccessorin interfaceCoreAttributeAccessor- Overrides:
isMethodAttributeAccessorin classAttributeAccessor
-
setAttributeValueInObject
public void setAttributeValueInObject(Object domainObject, Object attributeValue) throws DescriptorException
Sets the value of the instance variable in the object to the value.- Specified by:
setAttributeValueInObjectin interfaceCoreAttributeAccessor- Specified by:
setAttributeValueInObjectin classAttributeAccessor- Throws:
DescriptorException
-
setProperty
public void setProperty(SDOProperty property)
INTERNAL:
-
getPropertyName
public SDOProperty getPropertyName()
INTERNAL:
-
-