creates a new database-aware IdentityHashMap.
[Visual Basic] Function newIdentityHashMap( _ ByVal initialSize As Integer _ ) As Db4oMap [C#] Db4oMap newIdentityHashMap( int initialSize ); [C++] Db4oMap* newIdentityHashMap( int initialSize ); [JScript] function newIdentityHashMap( int initialSize ): Db4oMap;
creates a new database-aware IdentityHashMap.
Only first class objects already stored to the ObjectContainer (Objects with a db4o ID) can be used as keys for this type of Map. The internal db4o ID will be used as the hash value.
Usage:
- declare a
java.util.Mapvariable in your persistent class.
class MyClass{ Map myMap; } MyClass myObject = new MyClass(); myObject.myMap = objectContainer.ext().collections().newIdentityMap(0);
Db4oCollections Interface | com.db4o.types Namespace | com.db4o.types.Db4oMap