public class ReviewDbWrapper extends java.lang.Object implements ReviewDb
Modifier and Type | Class and Description |
---|---|
static class |
ReviewDbWrapper.AccountGroupAccessWrapper |
static class |
ReviewDbWrapper.AccountGroupByIdAccessWrapper |
static class |
ReviewDbWrapper.AccountGroupByIdAudAccessWrapper |
static class |
ReviewDbWrapper.AccountGroupMemberAccessWrapper |
static class |
ReviewDbWrapper.AccountGroupMemberAuditAccessWrapper |
static class |
ReviewDbWrapper.AccountGroupNameAccessWrapper |
static class |
ReviewDbWrapper.ChangeAccessWrapper |
static class |
ReviewDbWrapper.ChangeMessageAccessWrapper |
static class |
ReviewDbWrapper.PatchLineCommentAccessWrapper |
static class |
ReviewDbWrapper.PatchSetAccessWrapper |
static class |
ReviewDbWrapper.PatchSetApprovalAccessWrapper |
Modifier and Type | Field and Description |
---|---|
protected ReviewDb |
delegate |
FIRST_ACCOUNT_ID, FIRST_CHANGE_ID, FIRST_GROUP_ID
Modifier | Constructor and Description |
---|---|
protected |
ReviewDbWrapper(ReviewDb delegate) |
Modifier and Type | Method and Description |
---|---|
com.google.gwtorm.server.Access<?,?>[] |
allRelations() |
void |
beginTransaction() |
ChangeMessageAccess |
changeMessages() |
ChangeAccess |
changes() |
void |
close() |
void |
commit() |
boolean |
inTransaction() |
int |
nextAccountGroupId()
Next unique id for a
AccountGroup . |
int |
nextAccountId()
Next unique id for a
Account . |
int |
nextChangeId()
Next unique id for a
Change . |
PatchLineCommentAccess |
patchComments() |
PatchSetApprovalAccess |
patchSetApprovals() |
PatchSetAccess |
patchSets() |
void |
pruneSchema(com.google.gwtorm.server.StatementExecutor e) |
void |
rollback() |
SchemaVersionAccess |
schemaVersion() |
ReviewDb |
unsafeGetDelegate() |
static com.google.gwtorm.jdbc.JdbcSchema |
unwrapJbdcSchema(ReviewDb db) |
void |
updateSchema(com.google.gwtorm.server.StatementExecutor e) |
protected final ReviewDb delegate
protected ReviewDbWrapper(ReviewDb delegate)
public static com.google.gwtorm.jdbc.JdbcSchema unwrapJbdcSchema(ReviewDb db)
public ReviewDb unsafeGetDelegate()
public boolean inTransaction()
public void beginTransaction()
public void commit() throws com.google.gwtorm.server.OrmException
commit
in interface com.google.gwtorm.server.Schema
com.google.gwtorm.server.OrmException
public void rollback() throws com.google.gwtorm.server.OrmException
rollback
in interface com.google.gwtorm.server.Schema
com.google.gwtorm.server.OrmException
public void updateSchema(com.google.gwtorm.server.StatementExecutor e) throws com.google.gwtorm.server.OrmException
updateSchema
in interface com.google.gwtorm.server.Schema
com.google.gwtorm.server.OrmException
public void pruneSchema(com.google.gwtorm.server.StatementExecutor e) throws com.google.gwtorm.server.OrmException
pruneSchema
in interface com.google.gwtorm.server.Schema
com.google.gwtorm.server.OrmException
public com.google.gwtorm.server.Access<?,?>[] allRelations()
allRelations
in interface com.google.gwtorm.server.Schema
public void close()
close
in interface com.google.gwtorm.server.Schema
close
in interface java.lang.AutoCloseable
public SchemaVersionAccess schemaVersion()
schemaVersion
in interface ReviewDb
public ChangeAccess changes()
public PatchSetApprovalAccess patchSetApprovals()
patchSetApprovals
in interface ReviewDb
public ChangeMessageAccess changeMessages()
changeMessages
in interface ReviewDb
public PatchSetAccess patchSets()
public PatchLineCommentAccess patchComments()
patchComments
in interface ReviewDb
public int nextAccountId() throws com.google.gwtorm.server.OrmException
ReviewDb
Account
.nextAccountId
in interface ReviewDb
com.google.gwtorm.server.OrmException
public int nextAccountGroupId() throws com.google.gwtorm.server.OrmException
ReviewDb
AccountGroup
.nextAccountGroupId
in interface ReviewDb
com.google.gwtorm.server.OrmException
public int nextChangeId() throws com.google.gwtorm.server.OrmException
ReviewDb
Change
.nextChangeId
in interface ReviewDb
com.google.gwtorm.server.OrmException