public class BreezeControllerServlet extends ControllerServlet
Modifier and Type | Field and Description |
---|---|
protected Metadata |
_metadata |
protected java.lang.String |
_metadataJson |
protected org.hibernate.SessionFactory |
_sessionFactory |
Constructor and Description |
---|
BreezeControllerServlet() |
Modifier and Type | Method and Description |
---|---|
protected QueryProcessor |
createQueryProcessor() |
protected SaveWorkState |
createSaveWorkState(java.util.Map saveBundle) |
protected QueryResult |
executeQuery(java.lang.Class clazz,
EntityQuery entityQuery) |
protected QueryResult |
executeQuery(java.lang.Class clazz,
java.lang.String json,
javax.servlet.http.HttpServletResponse response) |
protected void |
executeQuery(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected QueryResult |
executeQuery(java.lang.String resourceName,
EntityQuery entityQuery) |
protected QueryResult |
executeQuery(java.lang.String resourceName,
java.lang.String json) |
protected EntityQuery |
extractEntityQuery(javax.servlet.http.HttpServletRequest request) |
protected java.util.Map |
extractSaveBundle(javax.servlet.http.HttpServletRequest request) |
protected java.lang.String |
getMetadata() |
protected java.lang.String |
getStackTrace(java.lang.Throwable e) |
protected void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init()
Create instance using the injected ServletContext
|
protected void |
saveChanges(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected SaveResult |
saveChanges(SaveWorkState saveWorkState) |
protected void |
writeQueryResponse(javax.servlet.http.HttpServletResponse response,
QueryResult queryResult) |
protected void |
writeSaveResponse(javax.servlet.http.HttpServletResponse response,
SaveResult saveResult) |
dispatch, doGet, doGetOrPost, doPost, getMethod, getMethodName, readPostData, writeError, writeError, writeResponse
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected org.hibernate.SessionFactory _sessionFactory
protected Metadata _metadata
protected java.lang.String _metadataJson
public void init()
init
in class javax.servlet.GenericServlet
protected void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
handleRequest
in class ControllerServlet
protected java.lang.String getStackTrace(java.lang.Throwable e)
protected java.lang.String getMetadata()
protected void executeQuery(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected QueryResult executeQuery(java.lang.String resourceName, java.lang.String json)
protected QueryResult executeQuery(java.lang.Class clazz, java.lang.String json, javax.servlet.http.HttpServletResponse response)
protected QueryResult executeQuery(java.lang.String resourceName, EntityQuery entityQuery)
protected QueryResult executeQuery(java.lang.Class clazz, EntityQuery entityQuery)
protected QueryProcessor createQueryProcessor()
protected void saveChanges(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected SaveWorkState createSaveWorkState(java.util.Map saveBundle)
protected SaveResult saveChanges(SaveWorkState saveWorkState)
protected EntityQuery extractEntityQuery(javax.servlet.http.HttpServletRequest request)
protected java.util.Map extractSaveBundle(javax.servlet.http.HttpServletRequest request)
protected void writeQueryResponse(javax.servlet.http.HttpServletResponse response, QueryResult queryResult)
protected void writeSaveResponse(javax.servlet.http.HttpServletResponse response, SaveResult saveResult)