Top Fields Constructors Methods
org.eclipse.persistence.internal.descriptors

public Class VirtualAttributeAccessor

extends MethodAttributeAccessor
Class Inheritance
Imports
org.eclipse.persistence.exceptions.DescriptorException, org.eclipse.persistence.internal.helper.ClassConstants

Field Summary

Modifier and TypeField and Description
private Class<?>
Inherited from org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor:
getMethodgetMethodNamesetMethodsetMethodName

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
public Class<?>
public Class<?>
protected Class<?>[]
public void
public boolean
public void
public void
setValueType(Class<?> value)

Override the class of the values being stored.

Inherited from org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor:
getAttributeClassgetAttributeValueFromObjectgetGetMethodgetGetMethodNamegetSetMethodgetSetMethodNamegetSetMethodParameterTypeinitializeAttributesisInitializedisMethodAttributeAccessorsetAttributeValueInObjectsetGetMethodsetGetMethodNamesetSetMethodsetSetMethodName

Field Detail

valueTypeback to summary
private Class<?> valueType

Constructor Detail

VirtualAttributeAccessorback to summary
public VirtualAttributeAccessor()

Method Detail

getAttributeValueFromObjectback to summary
public Object getAttributeValueFromObject(Object anObject) throws DescriptorException

Overrides org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor.getAttributeValueFromObject.

Implements org.eclipse.persistence.core.mappings.CoreAttributeAccessor.getAttributeValueFromObject.

Gets the value of an instance variable in the object.

Annotations
@Override
getGetMethodReturnTypeback to summary
public Class<?> getGetMethodReturnType()

Overrides org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor.getGetMethodReturnType.

Return the method return type. In a name access usage the return type currently must be Object.class.

Annotations
@Override
getSetMethodParameterTypeback to summary
public Class<?> getSetMethodParameterType()

Overrides org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor.getSetMethodParameterType.

Return the set method parameter type. In a name access usage there must be an extra String parameter along with the Object.class type so we must check and return a different index from the parameter types.

Annotations
@Override
getSetMethodParameterTypesback to summary
protected Class<?>[] getSetMethodParameterTypes()

Overrides org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor.getSetMethodParameterTypes.

Return the set method parameter types.

Annotations
@Override
initializeAttributesback to summary
public void initializeAttributes(Class<?> theJavaClass) throws DescriptorException

Overrides org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor.initializeAttributes.

Implements org.eclipse.persistence.core.mappings.CoreAttributeAccessor.initializeAttributes.

Set get and set method after creating these methods by using get and set method names

Annotations
@Override
isVirtualAttributeAccessorback to summary
public boolean isVirtualAttributeAccessor()

Overrides org.eclipse.persistence.mappings.AttributeAccessor.isVirtualAttributeAccessor.

Annotations
@Override
setAttributeValueInObjectback to summary
public void setAttributeValueInObject(Object domainObject, Object attributeValue) throws DescriptorException

Overrides org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject.

Implements org.eclipse.persistence.core.mappings.CoreAttributeAccessor.setAttributeValueInObject.

Sets the value of the instance variable in the object to the value.

Annotations
@Override
setValueTypeback to summary
public void setValueType(Class<?> value)

Override the class of the values being stored.

Since
EclipseLink 2.3