Package com.google.gerrit.server.util
Class OneOffRequestContext
- java.lang.Object
- 
- com.google.gerrit.server.util.OneOffRequestContext
 
- 
 public class OneOffRequestContext extends Object Helper to create one-off request contexts.Each call to open()opens a newReviewDb, so this class should only be used in a bounded try/finally block.The user in the request context is InternalUseror theIdentifiedUserassociated to the userId passed as parameter.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ManualRequestContextopen()ManualRequestContextopenAs(Account.Id userId)
 
- 
- 
- 
Method Detail- 
openpublic ManualRequestContext open() throws com.google.gwtorm.server.OrmException - Throws:
- com.google.gwtorm.server.OrmException
 
 - 
openAspublic ManualRequestContext openAs(Account.Id userId) throws com.google.gwtorm.server.OrmException - Throws:
- com.google.gwtorm.server.OrmException
 
 
- 
 
-