public class InstanceId extends GlobalId
| Modifier and Type | Method and Description |
|---|---|
static InstanceId |
createFromId(java.lang.Object id,
EntityType entity) |
static InstanceId |
createFromInstance(java.lang.Object instance,
EntityType entity) |
java.lang.Object |
getCdoId()
Identifier of (client's) Entity instance, should be unique in Entity scope
|
EntityType |
getManagedType()
JaversType of client's domain object
|
boolean |
idEquals(java.lang.Object instance) |
java.lang.String |
value()
For ex.:
org.javers.core.model.SnapshotEntity/1
org.javers.core.model.SnapshotEntity/2#setOfValueObjects
|
public static InstanceId createFromInstance(java.lang.Object instance, EntityType entity)
JaversException - ENTITY_INSTANCE_WITH_NULL_IDJaversException - NOT_INSTANCE_OFpublic static InstanceId createFromId(java.lang.Object id, EntityType entity)
public EntityType getManagedType()
GlobalIdgetManagedType in class GlobalIdpublic java.lang.Object getCdoId()
public java.lang.String value()
GlobalIdFor ex.: org.javers.core.model.SnapshotEntity/1 org.javers.core.model.SnapshotEntity/2#setOfValueObjects
public boolean idEquals(java.lang.Object instance)