|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.mappings.AttributeAccessor org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor org.eclipse.persistence.sdo.helper.SDOMethodAttributeAccessor
public class SDOMethodAttributeAccessor
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 marshalling/unmarshalling SDODataObjects. The propertyName is the name of the property on the DataObject and that must be set on this accessor.
Field Summary | |
---|---|
protected java.lang.Class |
attributeClass
|
protected SDOProperty |
property
|
Fields inherited from class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor |
---|
getMethod, getMethodName, setMethod, setMethodName |
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor |
---|
attributeName |
Constructor Summary | |
---|---|
SDOMethodAttributeAccessor(Property property)
|
|
SDOMethodAttributeAccessor(Property property,
java.lang.Class attributeClass)
|
Method Summary | |
---|---|
java.lang.Class |
getAttributeClass()
Return the return type of the method accessor. |
java.lang.Object |
getAttributeValueFromObject(java.lang.Object anObject)
Gets the value of an instance variable in the object. |
java.lang.Class |
getGetMethodReturnType()
|
Property |
getProperty()
INTERNAL: |
java.lang.Class |
getSetMethodParameterType()
|
void |
initializeAttributes(java.lang.Class theJavaClass)
Set get and set method after creating these methods by using get and set method names |
boolean |
isMethodAttributeAccessor()
INTERNAL: |
void |
setAttributeValueInObject(java.lang.Object domainObject,
java.lang.Object attributeValue)
Sets the value of the instance variable in the object to the value. |
void |
setProperty(Property property)
INTERNAL: |
Methods inherited from class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor |
---|
getGetMethod, getGetMethodName, getSetMethod, getSetMethodName, isInitialized, setGetMethod, setGetMethodName, setSetMethod, setSetMethodName |
Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor |
---|
clone, getAttributeName, setAttributeName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Class attributeClass
protected SDOProperty property
Constructor Detail |
---|
public SDOMethodAttributeAccessor(Property property)
public SDOMethodAttributeAccessor(Property property, java.lang.Class attributeClass)
Method Detail |
---|
public java.lang.Class getAttributeClass()
getAttributeClass
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject) throws DescriptorException
getAttributeValueFromObject
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
DescriptorException
public void initializeAttributes(java.lang.Class theJavaClass) throws DescriptorException
initializeAttributes
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
DescriptorException
public boolean isMethodAttributeAccessor()
isMethodAttributeAccessor
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public void setAttributeValueInObject(java.lang.Object domainObject, java.lang.Object attributeValue) throws DescriptorException
setAttributeValueInObject
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
DescriptorException
public void setProperty(Property property)
public Property getProperty()
public java.lang.Class getGetMethodReturnType()
getGetMethodReturnType
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
public java.lang.Class getSetMethodParameterType()
getSetMethodParameterType
in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |