Class OrmAttributeAccessor
- java.lang.Object
-
- org.eclipse.persistence.mappings.AttributeAccessor
-
- org.eclipse.persistence.internal.oxm.accessor.OrmAttributeAccessor
-
- All Implemented Interfaces:
Serializable
,Cloneable
,CoreAttributeAccessor
public class OrmAttributeAccessor extends AttributeAccessor
INTERNAL: A custom AttriuteAccessor to be used when the same object is mapped in both OXM and ORM. This will bridge the gap between the two for attributes that use ValueHolders. Specifically for JPA weaving.- Author:
- matt.macivor
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
-
Constructor Summary
Constructors Constructor Description OrmAttributeAccessor(AttributeAccessor ormAccessor, CoreAttributeAccessor oxmAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getAttributeClass()
Return the class type of the attribute.String
getAttributeName()
INTERNAL: Return the attribute name.Object
getAttributeValueFromObject(Object object)
Return the attribute value from the object.AttributeAccessor
getOrmAccessor()
CoreAttributeAccessor
getOxmAccessor()
boolean
isChangeTracking()
boolean
isMethodAttributeAccessor()
boolean
isValueHolderProperty()
void
setAttributeValueInObject(Object object, Object value)
Set the attribute value into the object.void
setChangeTracking(boolean changeTracking)
void
setOrmAccessor(AttributeAccessor accessor)
void
setOxmAccessor(AttributeAccessor accessor)
void
setValueHolderProperty(boolean isValueHolder)
-
Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, initializeAttributes, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
-
-
-
-
Constructor Detail
-
OrmAttributeAccessor
public OrmAttributeAccessor(AttributeAccessor ormAccessor, CoreAttributeAccessor oxmAccessor)
-
-
Method Detail
-
setValueHolderProperty
public void setValueHolderProperty(boolean isValueHolder)
-
setChangeTracking
public void setChangeTracking(boolean changeTracking)
-
isValueHolderProperty
public boolean isValueHolderProperty()
-
isChangeTracking
public boolean isChangeTracking()
-
getAttributeValueFromObject
public Object getAttributeValueFromObject(Object object)
Description copied from class:AttributeAccessor
Return the attribute value from the object.- Specified by:
getAttributeValueFromObject
in interfaceCoreAttributeAccessor
- Specified by:
getAttributeValueFromObject
in classAttributeAccessor
-
setAttributeValueInObject
public void setAttributeValueInObject(Object object, Object value)
Description copied from class:AttributeAccessor
Set the attribute value into the object.- Specified by:
setAttributeValueInObject
in interfaceCoreAttributeAccessor
- Specified by:
setAttributeValueInObject
in classAttributeAccessor
-
getOrmAccessor
public AttributeAccessor getOrmAccessor()
-
getOxmAccessor
public CoreAttributeAccessor getOxmAccessor()
-
setOrmAccessor
public void setOrmAccessor(AttributeAccessor accessor)
-
setOxmAccessor
public void setOxmAccessor(AttributeAccessor accessor)
-
getAttributeClass
public Class getAttributeClass()
Description copied from class:AttributeAccessor
Return the class type of the attribute.- Specified by:
getAttributeClass
in interfaceCoreAttributeAccessor
- Overrides:
getAttributeClass
in classAttributeAccessor
-
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()
- Specified by:
isMethodAttributeAccessor
in interfaceCoreAttributeAccessor
- Overrides:
isMethodAttributeAccessor
in classAttributeAccessor
-
getAttributeName
public String getAttributeName()
Description copied from class:AttributeAccessor
INTERNAL: Return the attribute name.- Specified by:
getAttributeName
in interfaceCoreAttributeAccessor
- Overrides:
getAttributeName
in classAttributeAccessor
-
-