Package com.ibatis.common.jdbc.exception

Examples of com.ibatis.common.jdbc.exception.NestedSQLException


                DefaultRowHandler rowHandler = new DefaultRowHandler();
                executeQueryWithCallback(statementScope, trans.getConnection(), parameterObject, null, rowHandler, skipResults,
                        maxResults);
                return rowHandler.getList();
            } catch (TransactionException e) {
                throw new NestedSQLException("Error getting Connection from Transaction.  Cause: " + e, e);
            }

        } finally {//我加上的
            DEBUG.P(0, this, "executeQueryForList(...)");
        }
View Full Code Here


            RowHandler rowHandler) throws SQLException {
        try {
            executeQueryWithCallback(statementScope, trans.getConnection(), parameterObject, null, rowHandler,
                    SqlExecutor.NO_SKIPPED_RESULTS, SqlExecutor.NO_MAXIMUM_RESULTS);
        } catch (TransactionException e) {
            throw new NestedSQLException("Error getting Connection from Transaction.  Cause: " + e, e);
        }
    }
View Full Code Here

                errorContext.reset();
                sql.cleanup(statementScope);
                notifyListeners();
            } catch (SQLException e) {
                errorContext.setCause(e);
                throw new NestedSQLException(errorContext.toString(), e.getSQLState(), e.getErrorCode(), e);
            } catch (Exception e) {
                errorContext.setCause(e);
                throw new NestedSQLException(errorContext.toString(), e);
            }

        } finally {//我加上的
            DEBUG.P(0, this, "executeQueryWithCallback(...)");
        }
View Full Code Here

TOP

Related Classes of com.ibatis.common.jdbc.exception.NestedSQLException

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.