creates a new database-aware HashMap.
[Visual Basic] Function newHashMap( _ ByVal initialSize As Integer _ ) As Db4oMap [C#] Db4oMap newHashMap( int initialSize ); [C++] Db4oMap* newHashMap( int initialSize ); [JScript] function newHashMap( int initialSize ): Db4oMap;
creates a new database-aware HashMap.
This map will call the hashCode() method on the key objects to calculate the hash value. Since the hash value is stored to the ObjectContainer, key objects will have to return the same hashCode() value in every VM session.
Usage:
- declare a
java.util.Mapvariable in your persistent class.
class MyClass{ Map myMap; } MyClass myObject = new MyClass(); myObject.myMap = objectContainer.ext().collections().newHashMap(0);
Db4oCollections Interface | com.db4o.types Namespace | com.db4o.types.Db4oMap