Class IdHelper
java.lang.Object
org.eclipse.persistence.jpa.rs.util.IdHelper
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.
- Author:
 - dclarke
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectbuildId(PersistenceContext app, String entityName, String idString) static ObjectbuildObjectShell(PersistenceContext context, String entityType, Object id) build a shell of an object based on a primary key.static List<org.eclipse.persistence.jpa.rs.util.IdHelper.SortableKey>getPrimaryKey(PersistenceContext context, String entityName) static StringstringifyId(Object entity, String typeName, PersistenceContext app)  
- 
Constructor Details
- 
IdHelper
public IdHelper() 
 - 
 - 
Method Details
- 
buildId
 - 
stringifyId
 - 
buildObjectShell
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:
 
 - 
getPrimaryKey
public static List<org.eclipse.persistence.jpa.rs.util.IdHelper.SortableKey> getPrimaryKey(PersistenceContext context, String entityName)  
 -