Module org.eclipse.persistence.core
Class OrmAttributeAccessor
java.lang.Object
org.eclipse.persistence.mappings.AttributeAccessor
org.eclipse.persistence.internal.oxm.accessor.OrmAttributeAccessor
- All Implemented Interfaces:
Serializable
,Cloneable
,CoreAttributeAccessor
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.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
Constructor Summary
ConstructorDescriptionOrmAttributeAccessor
(AttributeAccessor ormAccessor, CoreAttributeAccessor oxmAccessor) -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> Return the class type of the attribute.INTERNAL: Return the attribute name.getAttributeValueFromObject
(Object object) Return the attribute value from the object.boolean
boolean
boolean
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 Details
-
OrmAttributeAccessor
-
-
Method Details
-
setValueHolderProperty
public void setValueHolderProperty(boolean isValueHolder) -
setChangeTracking
public void setChangeTracking(boolean changeTracking) -
isValueHolderProperty
public boolean isValueHolderProperty() -
isChangeTracking
public boolean isChangeTracking() -
getAttributeValueFromObject
Description copied from class:AttributeAccessor
Return the attribute value from the object.- Specified by:
getAttributeValueFromObject
in interfaceCoreAttributeAccessor
- Specified by:
getAttributeValueFromObject
in classAttributeAccessor
-
setAttributeValueInObject
Description copied from class:AttributeAccessor
Set the attribute value into the object.- Specified by:
setAttributeValueInObject
in interfaceCoreAttributeAccessor
- Specified by:
setAttributeValueInObject
in classAttributeAccessor
-
getOrmAccessor
-
getOxmAccessor
-
setOrmAccessor
-
setOxmAccessor
-
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
Description copied from class:AttributeAccessor
INTERNAL: Return the attribute name.- Specified by:
getAttributeName
in interfaceCoreAttributeAccessor
- Overrides:
getAttributeName
in classAttributeAccessor
-