The main interface between a Java application and Compass.
Provides the basic operations with semantic mapped objects (save, delete, and
load/get). The session provides operations on both the objects levels and
Resource levels (indexed object model). The CompassSession operations are
delegated to the underlying SearchEngine, so no direct access to the
SearchEngine is needed.
Implementations will not be thread safe, Instead each thread/transaction
should obtain its own instance from a Compass.
If the CompassSession throws an exception, the transaction must be rolled
back and the session discarded. The internal state of the CompassSession
might not be consistent with the search engine if discarded.
Please see the CompassTemplate class for easier programmatic control using
the template design pattern.
author: kimchy See Also: org.compass.core.Resource See Also: org.compass.core.Compass |