public class IdHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IdHelper.SortableKey |
Constructor and Description |
---|
IdHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
buildId(PersistenceContext app,
java.lang.String entityName,
java.lang.String idString) |
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.
|
static java.util.List<IdHelper.SortableKey> |
getPrimaryKey(PersistenceContext context,
java.lang.String entityName) |
static java.lang.String |
stringifyId(java.lang.Object entity,
java.lang.String typeName,
PersistenceContext app) |
public static java.lang.Object buildId(PersistenceContext app, java.lang.String entityName, java.lang.String idString)
public static java.lang.String stringifyId(java.lang.Object entity, java.lang.String typeName, PersistenceContext app)
public static java.lang.Object buildObjectShell(PersistenceContext context, java.lang.String entityType, java.lang.Object id)
context
- entityType
- id
- public static java.util.List<IdHelper.SortableKey> getPrimaryKey(PersistenceContext context, java.lang.String entityName)