creates a new database-aware HashMap.
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