Examples of StatementScope


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

            boolean autoStart = trans == null;

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

                StatementScope statementScope = beginStatementScope(sessionScope, ms);
                try {
                    object = ms.executeQueryForObject(statementScope, trans, paramObject, resultObject);
                } finally {
                    endStatementScope(statementScope);
                }
View Full Code Here

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

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

                DEBUG.P("trans2=" + trans); //如com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction

                StatementScope statementScope = beginStatementScope(sessionScope, ms);
                try {
                    list = ms.executeQueryForList(statementScope, trans, paramObject, skip, max);

                    DEBUG.P("list=" + list); //通常为null
                } finally {
View Full Code Here

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

        boolean autoStart = trans == null;

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

            StatementScope statementScope = beginStatementScope(sessionScope, ms);
            try {
                ms.executeQueryWithRowHandler(statementScope, trans, paramObject, rowHandler);
            } finally {
                endStatementScope(statementScope);
            }
View Full Code Here

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

    protected StatementScope beginStatementScope(SessionScope sessionScope, MappedStatement mappedStatement) {
        try {//我加上的
            DEBUG.P(this, "beginStatementScope(2)");

            StatementScope statementScope = new StatementScope(sessionScope);
            sessionScope.incrementRequestStackDepth();

            DEBUG.P("sessionScope.getRequestStackDepth()=" + sessionScope.getRequestStackDepth());

            mappedStatement.initRequest(statementScope);
View Full Code Here

Examples of dtool.ast.statements.StatementScope

      }
     
      body = parse.checkResult(parseStatement_toMissing());
    }
   
    return parse.resultConclude(new StatementScope(scopeTypeId, body));
  }
View Full Code Here

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.scope.StatementScope

        oldKeyValue = PROBE.getObject(param, keyProperty);
        generatedKey = executeSelectKey(sessionScope, trans, ms, param);
        resetKeyValueOnFailure = true;
      }

      StatementScope statementScope = beginStatementScope(sessionScope, ms);
      try {
        ms.executeUpdate(statementScope, trans, param);
      } catch (SQLException e) {
        // uh-oh, the insert failed, so if we set the reset flag
        // earlier, we'll put the old value
View Full Code Here

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.scope.StatementScope

  }

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

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.scope.StatementScope

    boolean autoStart = trans == null;

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

      StatementScope statementScope = beginStatementScope(sessionScope, ms);
      try {
        rows = ms.executeUpdate(statementScope, trans, param);
      } finally {
        endStatementScope(statementScope);
      }
View Full Code Here

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.scope.StatementScope

    boolean autoStart = trans == null;

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

      StatementScope statementScope = beginStatementScope(sessionScope, ms);
      try {
        object = ms.executeQueryForObject(statementScope, trans, paramObject, resultObject);
      } finally {
        endStatementScope(statementScope);
      }
View Full Code Here

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.scope.StatementScope

    boolean autoStart = trans == null;

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

      StatementScope statementScope = beginStatementScope(sessionScope, ms);
      try {
        list = ms.executeQueryForList(statementScope, trans, paramObject, skip, max);
      } finally {
        endStatementScope(statementScope);
      }
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.