Package com.db4o.ext

Class Db4oUUID


  • public class Db4oUUID
    extends java.lang.Object
    a unique universal identify for an object.

    The db4o UUID consists of two parts:
    - an indexed long for fast access,
    - the signature of the ObjectContainer the object was created with.

    Db4oUUIDs are valid representations of objects over multiple ObjectContainers
    • Constructor Summary

      Constructors 
      Constructor Description
      Db4oUUID​(long longPart_, byte[] signaturePart_)
      constructs a Db4oUUID from a long part and a signature part
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      long getLongPart()
      returns the long part of this UUID.
      byte[] getSignaturePart()
      returns the signature part of this UUID.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Db4oUUID

        public Db4oUUID​(long longPart_,
                        byte[] signaturePart_)
        constructs a Db4oUUID from a long part and a signature part
        Parameters:
        longPart_ - the long part
        signaturePart_ - the signature part
    • Method Detail

      • getLongPart

        public long getLongPart()
        returns the long part of this UUID.

        To uniquely identify an object universally, db4o uses an indexed long and a reference to the Db4oDatabase object it was created on.
        Returns:
        the long part of this UUID.
      • getSignaturePart

        public byte[] getSignaturePart()
        returns the signature part of this UUID.



        To uniquely identify an object universally, db4o uses an indexed long and a reference to the Db4oDatabase singleton object of the ObjectContainer it was created on. This method returns the signature of the Db4oDatabase object of the ObjectContainer: the signature of the origin ObjectContainer.
        Returns:
        the signature of the Db4oDatabase for this UUID.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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