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,org.eclipse.persistence.core.mappings.CoreAttributeAccessor
public class SDOFragmentMappingAttributeAccessor extends org.eclipse.persistence.mappings.AttributeAccessorPurpose: 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 commonj.sdo.helper.HelperContexthelperContextprotected SDOPropertyproperty
-
Constructor Summary
Constructors Constructor Description SDOFragmentMappingAttributeAccessor(SDOProperty property, commonj.sdo.helper.HelperContext helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttributeValueFromObject(java.lang.Object anObject)Gets the value of an instance variable in the object.SDOPropertygetPropertyName()INTERNAL:voidinitializeAttributes(java.lang.Class theJavaClass)Set get and set method after creating these methods by using get and set method namesbooleanisMethodAttributeAccessor()INTERNAL:voidsetAttributeValueInObject(java.lang.Object domainObject, java.lang.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 commonj.sdo.helper.HelperContext helperContext
-
-
Constructor Detail
-
SDOFragmentMappingAttributeAccessor
public SDOFragmentMappingAttributeAccessor(SDOProperty property, commonj.sdo.helper.HelperContext helper)
-
-
Method Detail
-
getAttributeValueFromObject
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject) throws org.eclipse.persistence.exceptions.DescriptorExceptionGets the value of an instance variable in the object.- Specified by:
getAttributeValueFromObjectin interfaceorg.eclipse.persistence.core.mappings.CoreAttributeAccessor- Specified by:
getAttributeValueFromObjectin classorg.eclipse.persistence.mappings.AttributeAccessor- Throws:
org.eclipse.persistence.exceptions.DescriptorException
-
initializeAttributes
public void initializeAttributes(java.lang.Class theJavaClass) throws org.eclipse.persistence.exceptions.DescriptorExceptionSet get and set method after creating these methods by using get and set method names- Specified by:
initializeAttributesin interfaceorg.eclipse.persistence.core.mappings.CoreAttributeAccessor- Overrides:
initializeAttributesin classorg.eclipse.persistence.mappings.AttributeAccessor- Throws:
org.eclipse.persistence.exceptions.DescriptorException
-
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()
INTERNAL:- Specified by:
isMethodAttributeAccessorin interfaceorg.eclipse.persistence.core.mappings.CoreAttributeAccessor- Overrides:
isMethodAttributeAccessorin classorg.eclipse.persistence.mappings.AttributeAccessor
-
setAttributeValueInObject
public void setAttributeValueInObject(java.lang.Object domainObject, java.lang.Object attributeValue) throws org.eclipse.persistence.exceptions.DescriptorExceptionSets the value of the instance variable in the object to the value.- Specified by:
setAttributeValueInObjectin interfaceorg.eclipse.persistence.core.mappings.CoreAttributeAccessor- Specified by:
setAttributeValueInObjectin classorg.eclipse.persistence.mappings.AttributeAccessor- Throws:
org.eclipse.persistence.exceptions.DescriptorException
-
setProperty
public void setProperty(SDOProperty property)
INTERNAL:
-
getPropertyName
public SDOProperty getPropertyName()
INTERNAL:
-
-