|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Db4oList
db4o List implementation for database-aware lists.
A Db4oList
supplies the methods specified in java.util.List.
All access to the list is controlled by the ObjectContainer
to help the
programmer produce expected results with as little work as possible:
- newly added objects are automatically persisted.
- list 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.List
variable on your persistent classes.
- fill this variable with a method in the ObjectContainer collection factory.
Example:
class MyClass{
List myList;
}
MyClass myObject = new MyClass();
myObject.myList = objectContainer.ext().collections().newLinkedList();
ExtObjectContainer.collections()
Method Summary
Methods inherited from interface com.db4o.types.Db4oCollection
activationDepth, deleteRemoved
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
Overview
Package
Class
Tree
Deprecated
Index
Help
db4o 6.1
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD