public class InstanceId extends GlobalCdoId
| Modifier and Type | Class and Description |
|---|---|
static class |
InstanceId.InstanceIdDTO |
| 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
|
equals, equals, hashCode, toStringpublic 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()
GlobalCdoIdEntitygetCdoClass in class GlobalCdoIdpublic Object getCdoId()
getCdoId in class GlobalCdoIdpublic String value()
GlobalCdoIdFor ex.: org.javers.core.model.SnapshotEntity/1 org.javers.core.model.SnapshotEntity/2#setOfValueObjects
value in class GlobalCdoIdpublic boolean idEquals(Object instance)
Copyright © 2014. All rights reserved.