|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
protected boolean |
isReadOnly
|
protected boolean |
isWriteOnly
|
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 |
isInstanceVariableAttributeAccessor()
|
boolean |
isMapValueAttributeAccessor()
|
boolean |
isMethodAttributeAccessor()
|
boolean |
isReadOnly()
INTERNAL |
boolean |
isValuesAccessor()
|
boolean |
isVirtualAttributeAccessor()
|
boolean |
isWriteOnly()
INTERNAL: |
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. |
void |
setIsReadOnly(boolean aBoolean)
INTERNAL |
void |
setIsWriteOnly(boolean aBoolean)
INTERNAL: |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String attributeName
protected boolean isWriteOnly
protected boolean isReadOnly
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 isInstanceVariableAttributeAccessor()
public boolean isMapValueAttributeAccessor()
public boolean isMethodAttributeAccessor()
public boolean isValuesAccessor()
public boolean isVirtualAttributeAccessor()
public boolean isWriteOnly()
public void setIsWriteOnly(boolean aBoolean)
aBoolean
- public boolean isReadOnly()
public void setIsReadOnly(boolean aBoolean)
aBoolean
- 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 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |