|
EclipseLink 2.5.0, build 'v20130507-3faac2b' 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 |
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.Objectpublic java.lang.String getAttributeName()
getAttributeName in interface CoreAttributeAccessorpublic void setAttributeName(java.lang.String attributeName)
public java.lang.Class getAttributeClass()
getAttributeClass in interface CoreAttributeAccessor
public void initializeAttributes(java.lang.Class descriptorClass)
throws DescriptorException
initializeAttributes in interface CoreAttributeAccessorDescriptorExceptionpublic boolean isInitialized()
public boolean isInstanceVariableAttributeAccessor()
isInstanceVariableAttributeAccessor in interface CoreAttributeAccessorpublic boolean isMapValueAttributeAccessor()
public boolean isMethodAttributeAccessor()
isMethodAttributeAccessor in interface CoreAttributeAccessorpublic boolean isValuesAccessor()
public boolean isVirtualAttributeAccessor()
public boolean isWriteOnly()
public void setIsWriteOnly(boolean aBoolean)
setIsWriteOnly in interface CoreAttributeAccessoraBoolean - public boolean isReadOnly()
public void setIsReadOnly(boolean aBoolean)
setIsReadOnly in interface CoreAttributeAccessoraBoolean -
public abstract java.lang.Object getAttributeValueFromObject(java.lang.Object object)
throws DescriptorException
getAttributeValueFromObject in interface CoreAttributeAccessorDescriptorException
public abstract void setAttributeValueInObject(java.lang.Object object,
java.lang.Object value)
throws DescriptorException
setAttributeValueInObject in interface CoreAttributeAccessorDescriptorException
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||