Package net.sf.hibernate.connection

Examples of net.sf.hibernate.connection.ConnectionProvider.closeConnection()


            try {
                if (statement != null) statement.close();
                if (connection != null) {
                    JDBCExceptionReporter.logWarnings(connection.getWarnings());
                    connection.clearWarnings();
                    connectionProvider.closeConnection(connection);
                    connectionProvider.close();
                }
            } catch (Exception e) {
                log.error("Could not close connection", e);
            }
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.