List of usage examples for org.hibernate.engine.spi SessionEventListenerManager jdbcExecuteStatementEnd
public void jdbcExecuteStatementEnd();
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(); } }