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.

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

Field Summary
 
Fields inherited from class org.eclipse.persistence.descriptors.CMPPolicy
AFTER_EJBCREATE, AFTER_EJBPOSTCREATE, ALL_MODIFICATIONS, NONE, UNDEFINED, UPDATE_MODIFICATIONS
 
Constructor Summary
DynamicIdentityPolicy()
           
 
Method Summary
 java.util.Vector createPkVectorFromKey(java.lang.Object key, org.eclipse.persistence.internal.sessions.AbstractSession session)
          INTERNAL: Use the key to create a EclipseLink primary key Vector.
 
Methods inherited from class org.eclipse.persistence.internal.jpa.CMP3Policy
convertClassNamesToClasses, createBeanUsingKey, getPKClass, getPKClassInstance, getPKClassName, getPkValueFromKeyForField, initialize, isCMP3Policy, setPKClass, setPrimaryKeyClassName
 
Methods inherited from class org.eclipse.persistence.descriptors.CMPPolicy
createPrimaryKeyInstance, createPrimaryKeyInstance, createPrimaryKeyInstance, getDeferModificationsUntilCommit, getDescriptor, getForceUpdate, getMappedClass, getNonDeferredCreateTime, getPessimisticLockingPolicy, getUpdateAllFields, hasPessimisticLockingPolicy, internalGetForceUpdate, internalGetUpdateAllFields, internalSetForceUpdate, internalSetUpdateAllFields, setDeferModificationsUntilCommit, setDescriptor, setForceUpdate, setMappedClass, setNonDeferredCreateTime, setPessimisticLockingPolicy, setUpdateAllFields
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicIdentityPolicy

public DynamicIdentityPolicy()
Method Detail

createPkVectorFromKey

public java.util.Vector createPkVectorFromKey(java.lang.Object key,
                                              org.eclipse.persistence.internal.sessions.AbstractSession session)
Description copied from class: org.eclipse.persistence.internal.jpa.CMP3Policy
INTERNAL: Use the key to create a EclipseLink primary key Vector. 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:
createPkVectorFromKey in class org.eclipse.persistence.internal.jpa.CMP3Policy
Parameters:
key - Object the primary key to use for creating the vector
Returns:
Vector