public class InstanceVariableAttributeAccessor extends AttributeAccessor
Purpose: A wrapper class for handling cases when the domain object has instance variable to map to the database field.
| Constructor and Description |
|---|
InstanceVariableAttributeAccessor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getAttributeClass()
Returns the class type of the attribute.
|
java.lang.reflect.Field |
getAttributeField()
Returns the value of attributeField.
|
java.lang.Class |
getAttributeType()
Returns the declared type of attributeField.
|
java.lang.Object |
getAttributeValueFromObject(java.lang.Object anObject)
Returns the value of the attribute on the specified object.
|
void |
initializeAttributes(java.lang.Class theJavaClass)
instanceVariableName is converted to Field type.
|
boolean |
isInitialized()
Returns true if this attribute accessor has been initialized and now stores a reference to the
class's attribute.
|
boolean |
isInstanceVariableAttributeAccessor() |
void |
setAttributeValueInObject(java.lang.Object anObject,
java.lang.Object value)
Sets the value of the instance variable in the object to the value.
|
clone, getAttributeName, isMapValueAttributeAccessor, isMethodAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnlypublic java.lang.Class getAttributeClass()
getAttributeClass in interface CoreAttributeAccessorgetAttributeClass in class AttributeAccessorpublic java.lang.reflect.Field getAttributeField()
public java.lang.Class getAttributeType()
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject)
throws DescriptorException
getAttributeValueFromObject in interface CoreAttributeAccessorgetAttributeValueFromObject in class AttributeAccessorDescriptorExceptionpublic void initializeAttributes(java.lang.Class theJavaClass)
throws DescriptorException
initializeAttributes in interface CoreAttributeAccessorinitializeAttributes in class AttributeAccessorDescriptorExceptionpublic boolean isInitialized()
isInitialized in class AttributeAccessorpublic boolean isInstanceVariableAttributeAccessor()
isInstanceVariableAttributeAccessor in interface CoreAttributeAccessorisInstanceVariableAttributeAccessor in class AttributeAccessorpublic void setAttributeValueInObject(java.lang.Object anObject,
java.lang.Object value)
throws DescriptorException
setAttributeValueInObject in interface CoreAttributeAccessorsetAttributeValueInObject in class AttributeAccessorDescriptorExceptionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference