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:
java.io.Serializable,java.lang.Cloneable,org.eclipse.persistence.core.mappings.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
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ClassattributeClassprotected SDOPropertyproperty
-
Constructor Summary
Constructors Constructor Description SDOMethodAttributeAccessor(commonj.sdo.Property property)SDOMethodAttributeAccessor(commonj.sdo.Property property, java.lang.Class attributeClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassgetAttributeClass()Return the return type of the method accessor.java.lang.ObjectgetAttributeValueFromObject(java.lang.Object anObject)Gets the value of an instance variable in the object.java.lang.ClassgetGetMethodReturnType()commonj.sdo.PropertygetProperty()INTERNAL:java.lang.ClassgetSetMethodParameterType()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(commonj.sdo.Property property)INTERNAL:-
Methods inherited from class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
getAttributeValueFromObject, getGetMethod, getGetMethodName, getSetMethod, getSetMethodName, getSetMethodParameterType, getSetMethodParameterTypes, initializeAttributes, isInitialized, setAttributeValueInObject, setGetMethod, setGetMethodName, setSetMethod, setSetMethodName
-
-
-
-
Field Detail
-
attributeClass
protected java.lang.Class attributeClass
-
property
protected SDOProperty property
-
-
Method Detail
-
getAttributeClass
public java.lang.Class getAttributeClass()
Return the return type of the method accessor.- Specified by:
getAttributeClassin interfaceorg.eclipse.persistence.core.mappings.CoreAttributeAccessor- Overrides:
getAttributeClassin classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
-
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- Overrides:
getAttributeValueFromObjectin classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor- 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.internal.descriptors.MethodAttributeAccessor- 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.internal.descriptors.MethodAttributeAccessor
-
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- Overrides:
setAttributeValueInObjectin classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor- Throws:
org.eclipse.persistence.exceptions.DescriptorException
-
setProperty
public void setProperty(commonj.sdo.Property property)
INTERNAL:
-
getProperty
public commonj.sdo.Property getProperty()
INTERNAL:
-
getGetMethodReturnType
public java.lang.Class getGetMethodReturnType()
- Overrides:
getGetMethodReturnTypein classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
-
getSetMethodParameterType
public java.lang.Class getSetMethodParameterType()
- Overrides:
getSetMethodParameterTypein classorg.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
-
-