IObjectInfo Interface

Summary

interface to the internal reference that an ObjectContainer holds for a stored object.
graph BT Type["IObjectInfo"] class Type type-node Implementing0["ObjectReference"]-.->Type click Implementing0 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Internal/ObjectReference" Implementing1["LazyObjectReference"]-.->Type click Implementing1 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Internal/LazyObjectReference" Implementing2["FrozenObjectInfo"]-.->Type click Implementing2 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Internal/FrozenObjectInfo"

Syntax

public interface IObjectInfo

Remarks

interface to the internal reference that an ObjectContainer holds for a stored object.

Methods

Name Value Summary
GetCommitTimestamp() long
The serial timestamp the object is assigned to when it is committed.

You need to enable this feature before using it in Db4objects.Db4o.Config.IFileConfiguration.GenerateCommitTimestamps(bool) .

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

db4o replication system (dRS) relies on this feature.
GetInternalID() long
returns the internal db4o ID.
GetObject() Object
returns the object that is referenced.
GetUUID() Db4oUUID
returns a UUID representation of the referenced object.
GetVersion() long
returns the transaction serial number ("version") the referenced object was stored with last.