IExtObjectContainer.

GetByID(long) Method

Summary

returns the stored object for an internal ID.

Syntax

Object GetByID(long Id)

Remarks

returns the stored object for an internal ID.

This is the fastest method for direct access to objects. Internal IDs can be obtained with Db4objects.Db4o.Ext.IExtObjectContainer.GetID(System.Object) . Objects will not be activated by this method. They will be returned in the activation state they are currently in, in the local cache.

Parameters

Name Type Description
Id long the internal ID

Return Value

Type Description
Object the object associated with the passed ID or null, if no object is associated with this ID in this ObjectContainer.

See Also

  • Db4objects.Db4o.Config.ICommonConfiguration.ActivationDepth