Class HibernateStatementInspector
- java.lang.Object
-
- com.mickaelb.integration.hibernate.HibernateStatementInspector
-
- All Implemented Interfaces:
Serializable,org.hibernate.resource.jdbc.spi.StatementInspector
public class HibernateStatementInspector extends Object implements org.hibernate.resource.jdbc.spi.StatementInspector
NOT Thread-Safe since it is meant to be used by Spring tests that are not multi-threaded ThreadLocal does not work because a test can span on multiple threads (ex: a test executing a HTTP request on the server)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HibernateStatementInspector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HibernateStatementStatisticsgetStatistics()Stringinspect(String sql)
-
-
-
Method Detail
-
inspect
public String inspect(String sql)
- Specified by:
inspectin interfaceorg.hibernate.resource.jdbc.spi.StatementInspector
-
getStatistics
public static HibernateStatementStatistics getStatistics()
-
-