Package com.ibatis.sqlmap.engine.scope

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


            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

        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

    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

TOP

Related Classes of com.ibatis.sqlmap.engine.scope.StatementScope

Copyright © 2018 www.massapicom. 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.