Package com.db4o.ext

Interface ObjectInfo

    • Method Detail

      • getInternalID

        long getInternalID()
        returns the internal db4o ID.
      • getObject

        java.lang.Object getObject()
        returns the object that is referenced.

        This method may return null, if the object has been garbage collected.
        Returns:
        the referenced object or null, if the object has been garbage collected.
      • getVersion

        @Deprecated
        long getVersion()
        Deprecated.
        As of version 8.0 please use getCommitTimestamp() instead.
        returns the transaction serial number ("version") the referenced object was stored with last. Version number generation has to be turned on, in order to be able to use this feature: FileConfiguration.generateVersionNumbers(com.db4o.config.ConfigScope)
        This feature was replaced by getCommitTimestamp(). The main difference is that the old version mechanism used to assign a serial timestamp to the object upon storing time, and the new commitTimestamp approach, assigns it upon commit time.
        Returns:
        the version number.
      • getCommitTimestamp

        long getCommitTimestamp()
        The serial timestamp the object is assigned to when it is committed.

        You need to enable this feature before using it in FileConfiguration.generateCommitTimestamps(boolean).

        All the objects commited within the same transaction will receive the same commitTimestamp.

        db4o replication system (dRS) relies on this feature.
        Returns:
        the serial timestamp that was given to the object upon commit.
        Since:
        8.0
        See Also:
        FileConfiguration.generateCommitTimestamps(boolean)