Class InstanceId

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<GlobalId>

    public class InstanceId
    extends GlobalId
    Entity instance global identifier, consists of Entity reference and cdoId
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceId​(java.lang.String typeName, java.lang.Object cdoId, java.lang.String cdoIdAsString)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getCdoId()
      Identifier of (client's) Entity instance, should be unique in Entity scope.
      java.lang.String toString()  
      java.lang.String value()
      For ex.: org.javers.core.model.SnapshotEntity/1 org.javers.core.model.SnapshotEntity/2#setOfValueObjects
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InstanceId

        public InstanceId​(java.lang.String typeName,
                          java.lang.Object cdoId,
                          java.lang.String cdoIdAsString)
    • Method Detail

      • getCdoId

        public java.lang.Object getCdoId()
        Identifier of (client's) Entity instance, should be unique in Entity scope. For example database primary key or any domain identifier like user.login
      • value

        public java.lang.String value()
        Description copied from class: GlobalId
         For ex.:
         org.javers.core.model.SnapshotEntity/1
         org.javers.core.model.SnapshotEntity/2#setOfValueObjects
         
        Specified by:
        value in class GlobalId
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class GlobalId