List of usage examples for org.hibernate.engine.spi SessionEventListenerManager jdbcPrepareStatementStart
public void jdbcPrepareStatementStart();
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 ww . j ava 2 s . co m*/ statsCollector.jdbcPrepareStatementStart(); return connection.prepareStatement(sql); } finally { statsCollector.jdbcPrepareStatementEnd(); } }