public abstract class GQLContext extends Object implements AutoCloseable
GQLServlet can be updated to handle queries serially
as mutations if need be.| Modifier | Constructor and Description |
|---|---|
protected |
GQLContext(javax.servlet.http.HttpServletRequest request,
GQLOperation operation) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Exception ex)
Implement if a failed context session ends in failure, e.g. update
failure.
|
void |
commit()
Implement if a successful request is passed, and e.g. a transaction
needs to be committed (instead of aborted).
|
GQLOperation |
getOperation() |
javax.servlet.http.HttpServletRequest |
getRequest() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected GQLContext(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull GQLOperation operation)
public javax.servlet.http.HttpServletRequest getRequest()
public GQLOperation getOperation()
public void commit()
throws Exception
Exception - If committing failed.public void abort(Exception ex) throws Exception
commit() throws exception.ex - The exception causing the abort.Exception - If the abort procedure failed.Copyright © 2015–2020 morimekta.net. All rights reserved.