Package com.google.gerrit.httpd.rpc
Interface BaseServiceImplementation.Action<T>
-
- Enclosing class:
- BaseServiceImplementation
public static interface BaseServiceImplementation.Action<T>
Arbitrary action to run with a database connection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
run(ReviewDb db)
Perform this action, returning the onSuccess value.
-
-
-
Method Detail
-
run
T run(ReviewDb db) throws com.google.gwtorm.server.OrmException, BaseServiceImplementation.Failure, NoSuchProjectException, NoSuchGroupException, InvalidQueryException, IOException
Perform this action, returning the onSuccess value.- Parameters:
db
- an open database handle to be used by this connection.- Returns:
- he value to pass to
AsyncCallback.onSuccess(Object)
. - Throws:
com.google.gwtorm.server.OrmException
- any schema based action failed.BaseServiceImplementation.Failure
- cause is given toAsyncCallback.onFailure(Throwable)
.NoSuchProjectException
NoSuchGroupException
InvalidQueryException
IOException
-
-