Summary
binds an object to an internal object ID.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Ext - Containing Type
- IExtObjectContainer
Syntax
void Bind(Object obj, long id)
Remarks
binds an object to an internal object ID.
This method uses the ID parameter to load the corresponding stored object into memory and replaces this memory reference with the object parameter. The method may be used to replace objects or to reassociate an object with it's stored instance after closing and opening a database file. A subsequent call to
Requirements:
- The ID needs to be a valid internal object ID, previously retrieved with
- The object parameter needs to be of the same class as the stored object.
This method uses the ID parameter to load the corresponding stored object into memory and replaces this memory reference with the object parameter. The method may be used to replace objects or to reassociate an object with it's stored instance after closing and opening a database file. A subsequent call to
Db4objects.Db4o.IObjectContainer.Store(System.Object)
is
necessary to update the stored object.Requirements:
- The ID needs to be a valid internal object ID, previously retrieved with
Db4objects.Db4o.Ext.IExtObjectContainer.GetID(System.Object)
.- The object parameter needs to be of the same class as the stored object.
Parameters
Name | Type | Description |
---|---|---|
obj | Object | the object that is to be bound |
id | long | the internal id the object is to be bound to |
Return Value
Type | Description |
---|---|
void |
See Also
- Db4objects.Db4o.Ext.IExtObjectContainer.GetID(System.Object)