Class MultitenantPrimaryKeyAccessor
- java.lang.Object
-
- org.eclipse.persistence.mappings.AttributeAccessor
-
- org.eclipse.persistence.internal.descriptors.MultitenantPrimaryKeyAccessor
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,CoreAttributeAccessor
public class MultitenantPrimaryKeyAccessor extends AttributeAccessor
Purpose: A wrapper class for handling cases when the domain object has a property to map to the database field.- Since:
- EclipseLink 2.4
- Author:
- Guy Pelletier
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
-
Constructor Summary
Constructors Constructor Description MultitenantPrimaryKeyAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttributeValueFromObject(java.lang.Object object)Return the attribute value from the object.java.lang.ObjectgetValue(Session session)The only API of value on this accessor is getValue.voidinitializeAttributes(java.lang.Class javaClass)Allow any initialization to be performed with the descriptor class.voidsetAttributeValueInObject(java.lang.Object object, java.lang.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
-
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue(Session session)
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
public void initializeAttributes(java.lang.Class javaClass) throws DescriptorExceptionDescription copied from class:AttributeAccessorAllow any initialization to be performed with the descriptor class.- Specified by:
initializeAttributesin interfaceCoreAttributeAccessor- Overrides:
initializeAttributesin classAttributeAccessor- Throws:
DescriptorException
-
getAttributeValueFromObject
public java.lang.Object getAttributeValueFromObject(java.lang.Object object) throws DescriptorExceptionDescription copied from class:AttributeAccessorReturn the attribute value from the object.- Specified by:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Specified by:
getAttributeValueFromObjectin classAttributeAccessor- Throws:
DescriptorException
-
setAttributeValueInObject
public void setAttributeValueInObject(java.lang.Object object, java.lang.Object value) throws DescriptorExceptionDescription copied from class:AttributeAccessorSet the attribute value into the object.- Specified by:
setAttributeValueInObjectin interfaceCoreAttributeAccessor- Specified by:
setAttributeValueInObjectin classAttributeAccessor- Throws:
DescriptorException
-
-