Purpose: A wrapper class for handling cases when the domain object has instance variable to map to the database field.
| Modifier and Type | Field and Description |
|---|---|
| protected transient Field | attributeField
The attribute name of an object is converted to Field type to access it reflectively |
| Access | Constructor and Description |
|---|---|
| public |
| attributeField | back to summary |
|---|---|
| protected transient Field attributeField The attribute name of an object is converted to Field type to access it reflectively | |
| InstanceVariableAttributeAccessor | back to summary |
|---|---|
| public InstanceVariableAttributeAccessor() | |
| getAttributeClass | back to summary |
|---|---|
| public Class Overrides org. Implements org. Returns the class type of the attribute.
| |
| getAttributeField | back to summary |
|---|---|
| public Field getAttributeField() Returns the value of attributeField. 266912: For Metamodel API - change visibility from protected | |
| getAttributeType | back to summary |
|---|---|
| public Class Returns the declared type of attributeField. | |
| getAttributeValueFromObject | back to summary |
|---|---|
| public Object getAttributeValueFromObject(Object anObject) throws DescriptorException Implements abstract org. Implements org. Returns the value of the attribute on the specified object.
| |
| initializeAttributes | back to summary |
|---|---|
| public void initializeAttributes(Class<?> theJavaClass) throws DescriptorException Overrides org. Implements org. instanceVariableName is converted to Field type.
| |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Overrides org. Returns true if this attribute accessor has been initialized and now stores a reference to the class's attribute. An attribute accessor can become uninitialized on serialization.
| |
| isInstanceVariableAttributeAccessor | back to summary |
|---|---|
| public boolean isInstanceVariableAttributeAccessor() Overrides org. Implements org.
| |
| setAttributeField | back to summary |
|---|---|
| protected void setAttributeField(Field field) Sets the value of the attributeField. | |
| setAttributeValueInObject | back to summary |
|---|---|
| public void setAttributeValueInObject(final Object anObject, final Object value) throws DescriptorException Implements abstract org. Implements org. Sets the value of the instance variable in the object to the value.
| |