Examples of RequestScope


Examples of com.ibatis.sqlmap.engine.scope.RequestScope

      if (selectKeyStatement != null && !selectKeyStatement.isAfter()) {
        generatedKey = executeSelectKey(session, trans, ms, param);
      }

      RequestScope request = popRequest(session, ms);
      try {
        ms.executeUpdate(request, trans, param);
      } finally {
        pushRequest(request);
      }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.scope.RequestScope

    return generatedKey;
  }

  private Object executeSelectKey(SessionScope session, Transaction trans, MappedStatement ms, Object param) throws SQLException {
    Object generatedKey = null;
    RequestScope request;
    InsertStatement insert = (InsertStatement) ms;
    SelectKeyStatement selectKeyStatement = insert.getSelectKeyStatement();
    if (selectKeyStatement != null) {
      request = popRequest(session, selectKeyStatement);
      try {
View Full Code Here

Examples of com.ibatis.sqlmap.engine.scope.RequestScope

    boolean autoStart = trans == null;

    try {
      trans = autoStartTransaction(session, autoStart, trans);

      RequestScope request = popRequest(session, ms);
      try {
        rows = ms.executeUpdate(request, trans, param);
      } finally {
        pushRequest(request);
      }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.scope.RequestScope

    boolean autoStart = trans == null;

    try {
      trans = autoStartTransaction(session, autoStart, trans);

      RequestScope request = popRequest(session, ms);
      try {
        object = ms.executeQueryForObject(request, trans, paramObject, resultObject);
      } finally {
        pushRequest(request);
      }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.scope.RequestScope

    boolean autoStart = trans == null;

    try {
      trans = autoStartTransaction(session, autoStart, trans);

      RequestScope request = popRequest(session, ms);
      try {
        list = ms.executeQueryForList(request, trans, paramObject, skip, max);
      } finally {
        pushRequest(request);
      }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.scope.RequestScope

    boolean autoStart = trans == null;

    try {
      trans = autoStartTransaction(session, autoStart, trans);

      RequestScope request = popRequest(session, ms);
      try {
        ms.executeQueryWithRowHandler(request, trans, paramObject, rowHandler);
      } finally {
        pushRequest(request);
      }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.scope.RequestScope

    key.update(System.identityHashCode(this));
    return key.hashCode();
  }

  protected RequestScope popRequest(SessionScope session, MappedStatement mappedStatement) {
    RequestScope request = (RequestScope) requestPool.pop();
    session.incrementRequestStackDepth();
    request.setSession(session);
    mappedStatement.initRequest(request);
    return request;
  }
View Full Code Here

Examples of de.danet.an.util.logging.RequestScope

     * Called by the portlet container to allow the portlet to process an
     * action request.
     */
    public void processAction(ActionRequest request, ActionResponse response)
            throws PortletException, IOException {
        RequestScope scope = RequestLog.enterScope
            (this, "processAction", new Object[] { request, response });
        try {
            doProcessAction(request, response);
        } finally {
            scope.leave();
        }
    }
View Full Code Here

Examples of de.danet.an.util.logging.RequestScope

     * Helper method to serve up the view mode.
     */
    protected void doView(RenderRequest request, RenderResponse response)
            throws PortletException, IOException
    {
        RequestScope scope = RequestLog.enterScope
            (this, "doView", new Object[] { request, response });
        try {
            facesRender(request, response);
        } finally {
            scope.leave();
        }
    }
View Full Code Here

Examples of de.danet.an.util.logging.RequestScope

     * the edit mode concept to a JSF application.
     */
    protected void doEdit(RenderRequest request, RenderResponse response)
            throws PortletException, IOException
    {
        RequestScope scope = RequestLog.enterScope
            (this, "doEdit", new Object[] { request, response });
        try {
            facesRender(request, response);
        } finally {
            scope.leave();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.