Class SDOMethodAttributeAccessor
- java.lang.Object
-
- org.eclipse.persistence.mappings.AttributeAccessor
-
- org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
-
- org.eclipse.persistence.sdo.helper.SDOMethodAttributeAccessor
-
- All Implemented Interfaces:
Serializable,Cloneable,CoreAttributeAccessor
public class SDOMethodAttributeAccessor extends org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorPurpose: 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SDOMethodAttributeAccessor(commonj.sdo.Property property)SDOMethodAttributeAccessor(commonj.sdo.Property property, Class attributeClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetAttributeClass()Return the return type of the method accessor.ObjectgetAttributeValueFromObject(Object anObject)Gets the value of an instance variable in the object.ClassgetGetMethodReturnType()INTERNAL: Return the GetMethod return type for this MethodAttributeAccessor.commonj.sdo.PropertygetProperty()INTERNAL:ClassgetSetMethodParameterType()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(commonj.sdo.Property property)INTERNAL:-
Methods inherited from class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
getGetMethod, getGetMethodName, getSetMethodName, isInitialized, setGetMethodName, setSetMethodName
-
Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, getAttributeName, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
-
-
-
-
Constructor Detail
-
SDOMethodAttributeAccessor
public SDOMethodAttributeAccessor(commonj.sdo.Property property)
-
SDOMethodAttributeAccessor
public SDOMethodAttributeAccessor(commonj.sdo.Property property, Class attributeClass)
-
-
Method Detail
-
getAttributeClass
public Class getAttributeClass()
Return the return type of the method accessor.- Specified by:
getAttributeClassin interfaceCoreAttributeAccessor- Overrides:
getAttributeClassin classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
-
getAttributeValueFromObject
public Object getAttributeValueFromObject(Object anObject) throws DescriptorException
Gets the value of an instance variable in the object.- Specified by:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Overrides:
getAttributeValueFromObjectin classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor- 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 classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor- Throws:
DescriptorException
-
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()
INTERNAL:- Specified by:
isMethodAttributeAccessorin interfaceCoreAttributeAccessor- Overrides:
isMethodAttributeAccessorin classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
-
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- Overrides:
setAttributeValueInObjectin classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor- Throws:
DescriptorException
-
setProperty
public void setProperty(commonj.sdo.Property property)
INTERNAL:
-
getProperty
public commonj.sdo.Property getProperty()
INTERNAL:
-
getGetMethodReturnType
public Class getGetMethodReturnType()
Description copied from class:org.eclipse.persistence.internal.descriptors.MethodAttributeAccessorINTERNAL: Return the GetMethod return type for this MethodAttributeAccessor. A special check is made to determine if a missing method is a result of failed weaving.- Overrides:
getGetMethodReturnTypein classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor- Returns:
-
getSetMethodParameterType
public Class getSetMethodParameterType()
- Overrides:
getSetMethodParameterTypein classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
-
-