public class GlobalIdFactory extends Object
| Constructor and Description |
|---|
GlobalIdFactory(TypeMapper typeMapper) |
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
createFromId(Object localId,
Class entityClass) |
ValueObjectId |
createFromPath(InstanceId owner,
Class valueObjectClass,
String path) |
GlobalCdoId |
createId(Object targetCdo) |
GlobalCdoId |
createId(Object targetCdo,
OwnerContext owner) |
ManagedClass |
getManagedClass(Class javaClass)
if given javaClass is mapped to
ManagedType returns ManagedType.getManagedClass() |
public GlobalIdFactory(TypeMapper typeMapper)
public GlobalCdoId createId(Object targetCdo)
public GlobalCdoId createId(Object targetCdo, OwnerContext owner)
owner - for bounded ValueObjects, optionalpublic ValueObjectId createFromPath(InstanceId owner, Class valueObjectClass, String path)
public InstanceId createFromId(Object localId, Class entityClass)
JaversException - ENTITY_NOT_MAPPED if given javaClass is NOT mapped to Entitypublic ManagedClass getManagedClass(Class javaClass)
ManagedType returns ManagedType.getManagedClass()JaversException - CLASS_NOT_MANAGED if given javaClass is NOT mapped to ManagedTypeCopyright © 2014. All rights reserved.