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