List of usage examples for org.hibernate.engine.spi SessionEventListenerManager jdbcPrepareStatementEnd
public void jdbcPrepareStatementEnd();
From source file:net.e6tech.elements.persist.hibernate.ModifiedTableGenerator.java
License:Apache License
private PreparedStatement prepareStatement(Connection connection, String sql, SqlStatementLogger statementLogger, SessionEventListenerManager statsCollector) throws SQLException { statementLogger.logStatement(sql, FormatStyle.BASIC.getFormatter()); try {//from w w w . j a v a2s .c om statsCollector.jdbcPrepareStatementStart(); return connection.prepareStatement(sql); } finally { statsCollector.jdbcPrepareStatementEnd(); } }