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

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

Introduction

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

Prototype

public void jdbcExecuteStatementStart();

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 {// w  ww .  j  av a2s .  c  o 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   ww w  . j a  v a2  s  . com
        statsCollector.jdbcExecuteStatementStart();
        return ps.executeQuery();
    } finally {
        statsCollector.jdbcExecuteStatementEnd();
    }
}