EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.jpa.dynamic
Class DynamicIdentityPolicy

java.lang.Object
  extended by org.eclipse.persistence.descriptors.CMPPolicy
      extended by org.eclipse.persistence.internal.jpa.CMP3Policy
          extended by org.eclipse.persistence.jpa.dynamic.DynamicIdentityPolicy
All Implemented Interfaces:
java.io.Serializable

public class DynamicIdentityPolicy
extends org.eclipse.persistence.internal.jpa.CMP3Policy

Custom CMPPolicy to handle Object[]. The parent class supports only List and ID class for composite keys.

See Also:
Serialized Form
Author:
dclarke
Since:
EclipseLink 1.2

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.persistence.descriptors.CMPPolicy
CMPPolicy.KeyElementAccessor, CMPPolicy.KeyIsElementAccessor
 
Field Summary
 
Fields inherited from class org.eclipse.persistence.internal.jpa.CMP3Policy
fieldToAccessorMap, keyClassFields, pkClass, pkClassName
 
Fields inherited from class org.eclipse.persistence.descriptors.CMPPolicy
AFTER_EJBCREATE, AFTER_EJBPOSTCREATE, ALL_MODIFICATIONS, descriptor, forceUpdate, mappedClass, modificationDeferralLevel, nonDeferredCreateTime, NONE, pessimisticLockingPolicy, UNDEFINED, UPDATE_MODIFICATIONS, updateAllFields
 
Constructor Summary
DynamicIdentityPolicy()
           
 
Method Summary
 java.lang.Object createPrimaryKeyFromId(java.lang.Object key, org.eclipse.persistence.internal.sessions.AbstractSession session)
          INTERNAL: Use the key to create a EclipseLink primary key.
protected  CMPPolicy.KeyElementAccessor[] initializePrimaryKeyFields(java.lang.Class keyClass, org.eclipse.persistence.internal.sessions.AbstractSession session)
           
 
Methods inherited from class org.eclipse.persistence.internal.jpa.CMP3Policy
addReadOnlyMappings, addWritableMapping, convertClassNamesToClasses, createBeanUsingKey, getField, getKeyClassFields, getPKClass, getPKClassInstance, getPKClassName, getPkValueFromKeyForField, initialize, isCMP3Policy, setPKClass, setPrimaryKeyClassName
 
Methods inherited from class org.eclipse.persistence.descriptors.CMPPolicy
createPrimaryKeyInstance, createPrimaryKeyInstanceFromId, createPrimaryKeyInstanceFromPrimaryKeyValues, getClassInstance, getDeferModificationsUntilCommit, getDescriptor, getForceUpdate, getMappedClass, getNonDeferredCreateTime, getPessimisticLockingPolicy, getUpdateAllFields, hasPessimisticLockingPolicy, internalGetForceUpdate, internalGetUpdateAllFields, internalSetForceUpdate, internalSetUpdateAllFields, setDeferModificationsUntilCommit, setDescriptor, setFieldValue, setForceUpdate, setMappedClass, setNonDeferredCreateTime, setPessimisticLockingPolicy, setUpdateAllFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicIdentityPolicy

public DynamicIdentityPolicy()
Method Detail

createPrimaryKeyFromId

public java.lang.Object createPrimaryKeyFromId(java.lang.Object key,
                                               org.eclipse.persistence.internal.sessions.AbstractSession session)
Description copied from class: CMPPolicy
INTERNAL: Use the key to create a EclipseLink primary key. If the key is simple (direct mapped) then just add it to a vector, otherwise must go through the inefficient process of copying the key into the bean and extracting the key from the bean.

Overrides:
createPrimaryKeyFromId in class org.eclipse.persistence.internal.jpa.CMP3Policy

initializePrimaryKeyFields

protected CMPPolicy.KeyElementAccessor[] initializePrimaryKeyFields(java.lang.Class keyClass,
                                                                    org.eclipse.persistence.internal.sessions.AbstractSession session)
Overrides:
initializePrimaryKeyFields in class org.eclipse.persistence.internal.jpa.CMP3Policy

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference