public class MergeOpRepoManager
extends java.lang.Object
implements java.lang.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 |
---|---|
java.util.List<BatchUpdate> |
batchUpdates(java.util.Collection<Project.NameKey> projects) |
void |
close() |
MergeOpRepoManager.OpenRepo |
getRepo(Project.NameKey project) |
RequestId |
getSubmissionId() |
void |
setContext(ReviewDb db,
java.sql.Timestamp ts,
IdentifiedUser caller,
RequestId submissionId) |
public void setContext(ReviewDb db, java.sql.Timestamp ts, IdentifiedUser caller, RequestId submissionId)
public RequestId getSubmissionId()
public MergeOpRepoManager.OpenRepo getRepo(Project.NameKey project) throws NoSuchProjectException, java.io.IOException
NoSuchProjectException
java.io.IOException
public java.util.List<BatchUpdate> batchUpdates(java.util.Collection<Project.NameKey> projects) throws NoSuchProjectException, java.io.IOException
NoSuchProjectException
java.io.IOException
public void close()
close
in interface java.lang.AutoCloseable