|
db4o 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
db4o Map implementation for database-aware maps.
A Db4oMap
supplies the methods specified in java.util.Map.
All access to the map is controlled by the ObjectContainer
to help the
programmer produce expected results with as little work as possible:
- newly added objects are automatically persisted.
- map elements are automatically activated when they are needed. The activation
depth is configurable with Db4oCollection.activationDepth(int)
.
- removed objects can be deleted automatically, if the list is configured
with Db4oCollection.deleteRemoved(boolean)
Usage:
- declare a java.util.Map
variable on your persistent classes.
- fill this variable with a method in the ObjectContainer collection factory.
Example:
class MyClass{
Map myMap;
}
MyClass myObject = new MyClass();
myObject.myMap = objectContainer.ext().collections().newHashMap();
Nested Class Summary
Nested classes inherited from class java.util.Map
java.util.Map.Entry
Methods inherited from interface com.db4o.types.Db4oCollection
activationDepth, deleteRemoved
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
Overview
Package
Class
Tree
Deprecated
Index
Help
db4o 4.0
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD