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, setIsWriteOnly
public java.lang.Class getAttributeClass()
getAttributeClass
in interface CoreAttributeAccessor
getAttributeClass
in class AttributeAccessor
public java.lang.reflect.Field getAttributeField()
public java.lang.Class getAttributeType()
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject) throws DescriptorException
getAttributeValueFromObject
in interface CoreAttributeAccessor
getAttributeValueFromObject
in class AttributeAccessor
DescriptorException
public void initializeAttributes(java.lang.Class theJavaClass) throws DescriptorException
initializeAttributes
in interface CoreAttributeAccessor
initializeAttributes
in class AttributeAccessor
DescriptorException
public boolean isInitialized()
isInitialized
in class AttributeAccessor
public boolean isInstanceVariableAttributeAccessor()
isInstanceVariableAttributeAccessor
in interface CoreAttributeAccessor
isInstanceVariableAttributeAccessor
in class AttributeAccessor
public void setAttributeValueInObject(java.lang.Object anObject, java.lang.Object value) throws DescriptorException
setAttributeValueInObject
in interface CoreAttributeAccessor
setAttributeValueInObject
in class AttributeAccessor
DescriptorException
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference