Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.EmbeddedResourceLeakException


                           ServerRoutineInvocation invocation,
                           boolean topLevel, boolean success) {
        boolean close = topLevel;
        if ((transaction != null) && (commitMode == CommitMode.MANUAL)) {
            if (success) {
                context.warnClient(new EmbeddedResourceLeakException("Connection with setAutoCommit(false) was not closed"));
                success = false; // One warning is enough.
            }
            close = true;
        }
        if (close) {
            if (!openResultSets.isEmpty()) {
                if (success) {
                    List<String> stmts = new ArrayList<>(openResultSets.size());
                    for (JDBCResultSet resultSet : openResultSets) {
                        stmts.add(resultSet.statement.sql);
                    }
                    context.warnClient(new EmbeddedResourceLeakException("ResultSet was not closed: " + stmts));
                }
                try {
                    while (!openResultSets.isEmpty()) {
                        openResultSets.get(0).close();
                    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.EmbeddedResourceLeakException

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.