public class InstanceId extends GlobalId
| Modifier and Type | Method and Description |
|---|---|
static InstanceId |
createFromId(Object id,
Entity entity) |
static InstanceId |
createFromInstance(Object instance,
Entity entity) |
Entity |
getCdoClass()
Class of client's domain object, preferably
Entity |
Object |
getCdoId()
Identifier of (client's) Entity instance, should be unique in Entity scope
|
boolean |
idEquals(Object instance) |
String |
value()
For ex.:
org.javers.core.model.SnapshotEntity/1
org.javers.core.model.SnapshotEntity/2#setOfValueObjects
|
public static InstanceId createFromInstance(Object instance, Entity entity)
JaversException - ENTITY_INSTANCE_WITH_NULL_IDJaversException - NOT_INSTANCE_OFpublic static InstanceId createFromId(Object id, Entity entity)
public Entity getCdoClass()
GlobalIdEntitygetCdoClass in class GlobalIdpublic Object getCdoId()
public String value()
GlobalIdFor ex.: org.javers.core.model.SnapshotEntity/1 org.javers.core.model.SnapshotEntity/2#setOfValueObjects
public boolean idEquals(Object instance)
Copyright © 2014. All rights reserved.