2013/7/23 Вячеслав Бойко <[email protected]> > Tell me please, how can I get connection info from SelectImpl? I need a > database name for HandlerSocket.
I can see three ways to do that: 1. Create an executable SELECT statement using DSL.using(configuration).select(...) or something similar, and then use an ExecuteListener to extract connection info prior to execution [1] 2. Decouple your SELECT statement creation from its execution, using DSLContext.fetch(ResultQuery) to execute it [2]. If you do that, you no longer need to extract the connection info from SelectImpl. 3. Use reflection to access SelectImpl's configuration() method. I know, not nice... [1]: http://www.jooq.org/doc/3.1/manual/sql-execution/execute-listeners [2]: http://www.jooq.org/javadoc/latest/org/jooq/DSLContext.html#fetch%28org.jooq.ResultQuery%29<http://www.jooq.org/javadoc/latest/org/jooq/DSLContext.html#fetch(org.jooq.ResultQuery)> -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
