|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.collections.CollectionFactory
public class CollectionFactory
Collection factory with methods to create collections with behaviour
that is optimized for db4o.
Example usage:
CollectionFactory.forObjectContainer(objectContainer).newBigSet();
Method Summary | ||
---|---|---|
static CollectionFactory |
forObjectContainer(ObjectContainer objectContainer)
returns a collection factory for an ObjectContainer |
|
|
newBigSet()
creates a new BigSet. Characteristics of BigSet: - It is optimized by using a BTree of IDs of persistent objects. - It can only hold persistent first class objects (no primitives, no strings, no objects that are not persistent) - Objects are activated upon getting them from the BigSet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CollectionFactory forObjectContainer(ObjectContainer objectContainer)
objectContainer
- - the ObjectContainer
public <E> java.util.Set<E> newBigSet()
|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |