Class FrozenObjectInfo

  • All Implemented Interfaces:
    ObjectInfo

    public class FrozenObjectInfo
    extends java.lang.Object
    implements ObjectInfo
    • Constructor Detail

      • FrozenObjectInfo

        public FrozenObjectInfo​(java.lang.Object object,
                                long id,
                                Db4oDatabase sourceDatabase,
                                long uuidLongPart,
                                long commitTimestamp)
    • Method Detail

      • getInternalID

        public long getInternalID()
        Description copied from interface: ObjectInfo
        returns the internal db4o ID.
        Specified by:
        getInternalID in interface ObjectInfo
      • getObject

        public java.lang.Object getObject()
        Description copied from interface: ObjectInfo
        returns the object that is referenced.

        This method may return null, if the object has been garbage collected.
        Specified by:
        getObject in interface ObjectInfo
        Returns:
        the referenced object or null, if the object has been garbage collected.
      • getVersion

        public long getVersion()
        Description copied from interface: ObjectInfo
        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 ObjectInfo.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.
        Specified by:
        getVersion in interface ObjectInfo
        Returns:
        the version number.
      • sourceDatabaseId

        public long sourceDatabaseId​(Transaction trans)
      • uuidLongPart

        public long uuidLongPart()