Example usage for org.hibernate.engine.spi SessionEventListenerManager jdbcExecuteStatementEnd

List of usage examples for org.hibernate.engine.spi SessionEventListenerManager jdbcExecuteStatementEnd

Introduction

In this page you can find the example usage for org.hibernate.engine.spi SessionEventListenerManager jdbcExecuteStatementEnd.

Prototype

public void jdbcExecuteStatementEnd();

Source Link

Usage

From source file:net.e6tech.elements.persist.hibernate.ModifiedTableGenerator.java

License:Apache License

private int executeUpdate(PreparedStatement ps, SessionEventListenerManager statsCollector)
        throws SQLException {
    try {/*from ww w . j  av  a  2  s. co m*/
        statsCollector.jdbcExecuteStatementStart();
        return ps.executeUpdate();
    } finally {
        statsCollector.jdbcExecuteStatementEnd();
    }

}

From source file:net.e6tech.elements.persist.hibernate.ModifiedTableGenerator.java

License:Apache License

private ResultSet executeQuery(PreparedStatement ps, SessionEventListenerManager statsCollector)
        throws SQLException {
    try {//from   w  w w  . j  av  a 2s  .  c o  m
        statsCollector.jdbcExecuteStatementStart();
        return ps.executeQuery();
    } finally {
        statsCollector.jdbcExecuteStatementEnd();
    }
}