Class OrmAttributeAccessor
- java.lang.Object
-
- org.eclipse.persistence.mappings.AttributeAccessor
-
- org.eclipse.persistence.internal.oxm.accessor.OrmAttributeAccessor
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.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 java.lang.ClassgetAttributeClass()Return the class type of the attribute.java.lang.StringgetAttributeName()INTERNAL: Return the attribute name.java.lang.ObjectgetAttributeValueFromObject(java.lang.Object object)Return the attribute value from the object.AttributeAccessorgetOrmAccessor()CoreAttributeAccessorgetOxmAccessor()booleanisChangeTracking()booleanisMethodAttributeAccessor()booleanisValueHolderProperty()voidsetAttributeValueInObject(java.lang.Object object, java.lang.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 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 java.lang.Object getAttributeValueFromObject(java.lang.Object object)
Description copied from class:AttributeAccessorReturn the attribute value from the object.- Specified by:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Specified by:
getAttributeValueFromObjectin classAttributeAccessor
-
setAttributeValueInObject
public void setAttributeValueInObject(java.lang.Object object, java.lang.Object value)Description copied from class:AttributeAccessorSet the attribute value into the object.- Specified by:
setAttributeValueInObjectin interfaceCoreAttributeAccessor- Specified by:
setAttributeValueInObjectin classAttributeAccessor
-
getOrmAccessor
public AttributeAccessor getOrmAccessor()
-
getOxmAccessor
public CoreAttributeAccessor getOxmAccessor()
-
setOrmAccessor
public void setOrmAccessor(AttributeAccessor accessor)
-
setOxmAccessor
public void setOxmAccessor(AttributeAccessor accessor)
-
getAttributeClass
public java.lang.Class 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
public java.lang.String getAttributeName()
Description copied from class:AttributeAccessorINTERNAL: Return the attribute name.- Specified by:
getAttributeNamein interfaceCoreAttributeAccessor- Overrides:
getAttributeNamein classAttributeAccessor
-
-