Class ReviewDbWrapper.PatchSetAccessWrapper
- java.lang.Object
-
- com.google.gerrit.reviewdb.server.ReviewDbWrapper.PatchSetAccessWrapper
-
- All Implemented Interfaces:
PatchSetAccess
,com.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Enclosing class:
- ReviewDbWrapper
public static class ReviewDbWrapper.PatchSetAccessWrapper extends Object implements PatchSetAccess
-
-
Field Summary
Fields Modifier and Type Field Description protected PatchSetAccess
delegate
-
Constructor Summary
Constructors Modifier Constructor Description protected
PatchSetAccessWrapper(PatchSetAccess delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwtorm.server.ResultSet<PatchSet>
all()
PatchSet
atomicUpdate(PatchSet.Id key, com.google.gwtorm.server.AtomicUpdate<PatchSet> update)
void
beginTransaction(PatchSet.Id key)
com.google.gwtorm.server.ResultSet<PatchSet>
byChange(Change.Id id)
void
delete(Iterable<PatchSet> instances)
void
deleteKeys(Iterable<PatchSet.Id> keys)
PatchSet
get(PatchSet.Id id)
com.google.gwtorm.server.ResultSet<PatchSet>
get(Iterable<PatchSet.Id> keys)
com.google.common.util.concurrent.CheckedFuture<PatchSet,com.google.gwtorm.server.OrmException>
getAsync(PatchSet.Id key)
int
getRelationID()
String
getRelationName()
void
insert(Iterable<PatchSet> instances)
com.google.gwtorm.server.ResultSet<PatchSet>
iterateAllEntities()
PatchSet.Id
primaryKey(PatchSet entity)
Map<PatchSet.Id,PatchSet>
toMap(Iterable<PatchSet> c)
void
update(Iterable<PatchSet> instances)
void
upsert(Iterable<PatchSet> instances)
-
-
-
Field Detail
-
delegate
protected final PatchSetAccess delegate
-
-
Constructor Detail
-
PatchSetAccessWrapper
protected PatchSetAccessWrapper(PatchSetAccess delegate)
-
-
Method Detail
-
getRelationName
public String getRelationName()
- Specified by:
getRelationName
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
-
getRelationID
public int getRelationID()
- Specified by:
getRelationID
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
-
iterateAllEntities
public com.google.gwtorm.server.ResultSet<PatchSet> iterateAllEntities() throws com.google.gwtorm.server.OrmException
- Specified by:
iterateAllEntities
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
primaryKey
public PatchSet.Id primaryKey(PatchSet entity)
- Specified by:
primaryKey
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
-
toMap
public Map<PatchSet.Id,PatchSet> toMap(Iterable<PatchSet> c)
- Specified by:
toMap
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
-
getAsync
public com.google.common.util.concurrent.CheckedFuture<PatchSet,com.google.gwtorm.server.OrmException> getAsync(PatchSet.Id key)
- Specified by:
getAsync
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
-
get
public com.google.gwtorm.server.ResultSet<PatchSet> get(Iterable<PatchSet.Id> keys) throws com.google.gwtorm.server.OrmException
- Specified by:
get
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
insert
public void insert(Iterable<PatchSet> instances) throws com.google.gwtorm.server.OrmException
- Specified by:
insert
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
update
public void update(Iterable<PatchSet> instances) throws com.google.gwtorm.server.OrmException
- Specified by:
update
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
upsert
public void upsert(Iterable<PatchSet> instances) throws com.google.gwtorm.server.OrmException
- Specified by:
upsert
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
deleteKeys
public void deleteKeys(Iterable<PatchSet.Id> keys) throws com.google.gwtorm.server.OrmException
- Specified by:
deleteKeys
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
delete
public void delete(Iterable<PatchSet> instances) throws com.google.gwtorm.server.OrmException
- Specified by:
delete
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
beginTransaction
public void beginTransaction(PatchSet.Id key) throws com.google.gwtorm.server.OrmException
- Specified by:
beginTransaction
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
atomicUpdate
public PatchSet atomicUpdate(PatchSet.Id key, com.google.gwtorm.server.AtomicUpdate<PatchSet> update) throws com.google.gwtorm.server.OrmException
- Specified by:
atomicUpdate
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Throws:
com.google.gwtorm.server.OrmException
-
get
public PatchSet get(PatchSet.Id id) throws com.google.gwtorm.server.OrmException
- Specified by:
get
in interfacecom.google.gwtorm.server.Access<PatchSet,PatchSet.Id>
- Specified by:
get
in interfacePatchSetAccess
- Throws:
com.google.gwtorm.server.OrmException
-
byChange
public com.google.gwtorm.server.ResultSet<PatchSet> byChange(Change.Id id) throws com.google.gwtorm.server.OrmException
- Specified by:
byChange
in interfacePatchSetAccess
- Throws:
com.google.gwtorm.server.OrmException
-
all
public com.google.gwtorm.server.ResultSet<PatchSet> all() throws com.google.gwtorm.server.OrmException
- Specified by:
all
in interfacePatchSetAccess
- Throws:
com.google.gwtorm.server.OrmException
-
-