CollectionFactory Class

Summary

Collection factory with methods to create collections with behaviour that is optimized for db4o.

Example usage:
CollectionFactory.forObjectContainer(objectContainer).newBigSet();
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Collections
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["CollectionFactory"] class Type type-node

Syntax

public class CollectionFactory

Methods

Name Value Summary
ForObjectContainer(IObjectContainer) CollectionFactory
returns a collection factory for an ObjectContainer
static
NewBigSet<E>() ISet<E>
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.