public class OneOffRequestContext
extends java.lang.Object
Each call to open()
opens a new ReviewDb
, so this class should only be used
in a bounded try/finally block.
The user in the request context is InternalUser
or the IdentifiedUser
associated to the userId passed as parameter.
Modifier and Type | Method and Description |
---|---|
ManualRequestContext |
open() |
ManualRequestContext |
openAs(Account.Id userId) |
public ManualRequestContext open() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public ManualRequestContext openAs(Account.Id userId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException