public class MergeOpRepoManager extends Object implements AutoCloseable
Some database backends require to open a repository just once within a transaction of a submission, this caches open repositories to satisfy that requirement.
Modifier and Type | Class and Description |
---|---|
static class |
MergeOpRepoManager.OpenBranch |
class |
MergeOpRepoManager.OpenRepo |
Modifier and Type | Method and Description |
---|---|
List<BatchUpdate> |
batchUpdates(Collection<Project.NameKey> projects) |
void |
close() |
MergeOpRepoManager.OpenRepo |
getRepo(Project.NameKey project) |
RequestId |
getSubmissionId() |
void |
setContext(ReviewDb db,
Timestamp ts,
IdentifiedUser caller,
RequestId submissionId) |
public void setContext(ReviewDb db, Timestamp ts, IdentifiedUser caller, RequestId submissionId)
public RequestId getSubmissionId()
public MergeOpRepoManager.OpenRepo getRepo(Project.NameKey project) throws NoSuchProjectException, IOException
NoSuchProjectException
IOException
public List<BatchUpdate> batchUpdates(Collection<Project.NameKey> projects) throws NoSuchProjectException, IOException
NoSuchProjectException
IOException
public void close()
close
in interface AutoCloseable