fabric.store
Class SimpleSurrogateManager

java.lang.Object
  extended by fabric.store.SimpleSurrogateManager
All Implemented Interfaces:
SurrogateManager

public class SimpleSurrogateManager
extends java.lang.Object
implements SurrogateManager

This is a simple surrogate policy. It keeps no state between requests, and simply creates lots of new surrogate objects.

Author:
mdgeorge

Constructor Summary
SimpleSurrogateManager(TransactionManager tm)
           
 
Method Summary
 void createSurrogates(PrepareRequest req)
          Modify req so that all references are local.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSurrogateManager

public SimpleSurrogateManager(TransactionManager tm)
Method Detail

createSurrogates

public void createSurrogates(PrepareRequest req)
Description copied from interface: SurrogateManager

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:

Specified by:
createSurrogates in interface SurrogateManager
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.