|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfabric.store.SimpleSurrogateManager
public class SimpleSurrogateManager
This is a simple surrogate policy. It keeps no state between requests, and simply creates lots of new surrogate objects.
| 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 |
|---|
public SimpleSurrogateManager(TransactionManager tm)
| Method Detail |
|---|
public void createSurrogates(PrepareRequest req)
SurrogateManagerModify 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:
createSurrogates in interface SurrogateManagerreq - the collections of objects created, modified, and read by this
transaction. These collections may be modified if surrogate
objects are created or modified.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||