Juha Komulainen

Results 5 comments of Juha Komulainen

Sounds like a good idea. Currently there's no way to customize this, but this is the only place in Dalesbred's code that deals with ResultSets so it should be a...

Thanks for the suggestion. I've thought about this along the same lines, so I'm open to the idea. I have some concerns though: nobody reads documentation and I'm afraid people...

Hi! Sorry for the delayed answer. Currently there's no support for interceptors at the statement level. If you implement your own [`TransactionManager`](http://dalesbred.org/docs/api/org/dalesbred/transaction/TransactionManager.html), Dalesbred will call either [`withCurrentTransaction`](http://dalesbred.org/docs/api/org/dalesbred/transaction/TransactionManager.html#withCurrentTransaction-org.dalesbred.transaction.TransactionCallback-org.dalesbred.dialect.Dialect-) or [`withTransaction`](http://dalesbred.org/docs/api/org/dalesbred/transaction/TransactionManager.html#withTransaction-org.dalesbred.transaction.TransactionSettings-org.dalesbred.transaction.TransactionCallback-org.dalesbred.dialect.Dialect-) whenever...

OK, then you might be happy to find out that Dalesbred already [logs all queries](https://github.com/EvidentSolutions/dalesbred/blob/master/dalesbred/src/main/java/org/dalesbred/Database.java#L681). You just have to bump up the log level of `org.dalesbred.Database`-category. Dalesbred logs using `java.util.logging`...

Right, I suspected something like this. This is not prettiest solution, but you should be able to write your own [java.util.logging.Handler](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html) to get callbacks whenever Dalesbred logs the queries. You...