|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.mappings.AttributeAccessor
public abstract class AttributeAccessor
Purpose: This provides an abstract class for setting and retrieving the attribute value for the mapping from an object. It can be used in advanced situations if the attribute requires advanced conversion of the mapping value, or a real attribute does not exist.
Field Summary | |
---|---|
protected java.lang.String |
attributeName
Stores the name of the attribute |
Constructor Summary | |
---|---|
AttributeAccessor()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
INTERNAL: Clones itself. |
java.lang.Class |
getAttributeClass()
Return the class type of the attribute. |
java.lang.String |
getAttributeName()
INTERNAL: Return the attribute name. |
abstract java.lang.Object |
getAttributeValueFromObject(java.lang.Object object)
Return the attribute value from the object. |
void |
initializeAttributes(java.lang.Class descriptorClass)
Allow any initialization to be performed with the descriptor class. |
boolean |
isInitialized()
Returns true if this attribute accessor has been initialized and now stores a reference to the class's attribute. |
boolean |
isMethodAttributeAccessor()
|
void |
setAttributeName(java.lang.String attributeName)
INTERNAL: Set the attribute name. |
abstract void |
setAttributeValueInObject(java.lang.Object object,
java.lang.Object value)
Set the attribute value into the object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String attributeName
Constructor Detail |
---|
public AttributeAccessor()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attributeName)
public java.lang.Class getAttributeClass()
public void initializeAttributes(java.lang.Class descriptorClass) throws DescriptorException
DescriptorException
public boolean isInitialized()
public boolean isMethodAttributeAccessor()
public abstract java.lang.Object getAttributeValueFromObject(java.lang.Object object) throws DescriptorException
DescriptorException
public abstract void setAttributeValueInObject(java.lang.Object object, java.lang.Object value) throws DescriptorException
DescriptorException
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |