Class DynamicIdentityPolicy

  • All Implemented Interfaces:
    Serializable, Cloneable

    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
    • Constructor Detail

      • DynamicIdentityPolicy

        public DynamicIdentityPolicy()
    • Method Detail

      • createPrimaryKeyFromId

        public Object createPrimaryKeyFromId​(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. 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