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
ConstructorsConstructorDescriptionOrmAttributeAccessor(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.booleanbooleanbooleanvoidsetAttributeValueInObject(Object object, Object value) Set the attribute value into the object.voidsetChangeTracking(boolean changeTracking) voidsetOrmAccessor(AttributeAccessor accessor) voidsetOxmAccessor(AttributeAccessor accessor) voidsetValueHolderProperty(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:AttributeAccessorReturn the attribute value from the object.- Specified by:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Specified by:
getAttributeValueFromObjectin classAttributeAccessor
-
setAttributeValueInObject
Description copied from class:AttributeAccessorSet the attribute value into the object.- Specified by:
setAttributeValueInObjectin interfaceCoreAttributeAccessor- Specified by:
setAttributeValueInObjectin classAttributeAccessor
-
getOrmAccessor
-
getOxmAccessor
-
setOrmAccessor
-
setOxmAccessor
-
getAttributeClass
Description copied from class:AttributeAccessorReturn the class type of the attribute.- Specified by:
getAttributeClassin interfaceCoreAttributeAccessor- Overrides:
getAttributeClassin classAttributeAccessor
-
isMethodAttributeAccessor
public boolean isMethodAttributeAccessor()- Specified by:
isMethodAttributeAccessorin interfaceCoreAttributeAccessor- Overrides:
isMethodAttributeAccessorin classAttributeAccessor
-
getAttributeName
Description copied from class:AttributeAccessorINTERNAL: Return the attribute name.- Specified by:
getAttributeNamein interfaceCoreAttributeAccessor- Overrides:
getAttributeNamein classAttributeAccessor
-