fabric.store
Interface SurrogateManager

All Known Implementing Classes:
SimpleSurrogateManager

public interface SurrogateManager

A surrogate manager encapsulates the strategy for building and maintaining surrogate objects for inter-store references.

Author:
mdgeorge

Method Summary
 void createSurrogates(PrepareRequest req)
          Modify req so that all references are local.
 

Method Detail

createSurrogates

void createSurrogates(PrepareRequest req)

Modify req so that all references are local. It should do so by creating or reusing surrogate objects for all of the non-local references. Any new surrogate objects should be added to the req.creates, while any read surrogate objects should be added to req.reads.

TODO:

Parameters:
req - the collections of objects created, modified, and read by this transaction. These collections may be modified if surrogate objects are created or modified.