Class IdHelper


  • public class IdHelper
    extends java.lang.Object
    EclipseLink helper class used for converting composite key values passed into JAX-RS calls as query or matrix parameters into a value that can be used in a find.
    Since:
    EclipseLink 2.4.0
    Author:
    dclarke
    • Constructor Detail

      • IdHelper

        public IdHelper()
    • Method Detail

      • buildId

        public static java.lang.Object buildId​(PersistenceContext app,
                                               java.lang.String entityName,
                                               java.lang.String idString)
      • stringifyId

        public static java.lang.String stringifyId​(java.lang.Object entity,
                                                   java.lang.String typeName,
                                                   PersistenceContext app)
      • buildObjectShell

        public static java.lang.Object buildObjectShell​(PersistenceContext context,
                                                        java.lang.String entityType,
                                                        java.lang.Object id)
        build a shell of an object based on a primary key. The object shell will be an instance of the object with only primary key populated
        Parameters:
        context -
        entityType -
        id -
        Returns: