Module org.eclipse.persistence.core
Class MultitenantPrimaryKeyAccessor
java.lang.Object
org.eclipse.persistence.mappings.AttributeAccessor
org.eclipse.persistence.internal.descriptors.MultitenantPrimaryKeyAccessor
- All Implemented Interfaces:
Serializable
,Cloneable
,CoreAttributeAccessor
Purpose: A wrapper class for handling cases when the domain object
has a property to map to the database field.
- Since:
- EclipseLink 2.4
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValueFromObject
(Object object) Return the attribute value from the object.The only API of value on this accessor is getValue.void
initializeAttributes
(Class<?> javaClass) Allow any initialization to be performed with the descriptor class.void
setAttributeValueInObject
(Object object, Object value) Set the attribute value into the object.Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, getAttributeClass, getAttributeName, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isMethodAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
-
Constructor Details
-
MultitenantPrimaryKeyAccessor
public MultitenantPrimaryKeyAccessor()
-
-
Method Details
-
getValue
The only API of value on this accessor is getValue. To avoid a number of other core changes (to check for null) this accessor extends the regular attribute accessor. -
initializeAttributes
Description copied from class:AttributeAccessor
Allow any initialization to be performed with the descriptor class.- Specified by:
initializeAttributes
in interfaceCoreAttributeAccessor
- Overrides:
initializeAttributes
in classAttributeAccessor
- Throws:
DescriptorException
-
getAttributeValueFromObject
Description copied from class:AttributeAccessor
Return the attribute value from the object.- Specified by:
getAttributeValueFromObject
in interfaceCoreAttributeAccessor
- Specified by:
getAttributeValueFromObject
in classAttributeAccessor
- Throws:
DescriptorException
-
setAttributeValueInObject
Description copied from class:AttributeAccessor
Set the attribute value into the object.- Specified by:
setAttributeValueInObject
in interfaceCoreAttributeAccessor
- Specified by:
setAttributeValueInObject
in classAttributeAccessor
- Throws:
DescriptorException
-