Hello,

These things are currently being changed between 3.0-RC2 and 3.0-RC3.
Relevant discussions can be seen here:

- https://groups.google.com/forum/?fromgroups=#!topic/jooq-user/GyIyuHfBWjE
- https://groups.google.com/forum/?fromgroups=#!topic/jooq-user/Y_tfF_eaxKM
- https://groups.google.com/forum/?fromgroups=#!topic/jooq-user/uxcYEC7IoDM

You shouldn't need to "close" the factory in general. Your calling
Factory.setConnection(null) seemed to have worked, because you've had
a look at its internals, but such behaviour isn't specified in the
API. The correct way to handle the Connection lifecycle is by
implementing ConnectionProvider. Feel free to join the other
discussions if you feel that there are still flaws with jOOQ 3.0's
API.

Note though, as I said, there had been some more changes between RC2
and the unpublished RC3

Cheers
Lukas

2013/4/2 Ryan How <[email protected]>:
> Haha, sorry again. That is the ExecutorConfiguration inner class. There
> doesn't seem to be a way to get the configuration so I can get /set the
> connection from there?
>
>
> On Tuesday, 2 April 2013 11:23:18 UTC+8, Ryan How wrote:
>>
>> I looked through source and it is there plain as day.
>> Executor.getConnection() and Executor.setConnection(). I might have a maven
>> issue or something. Sorry, I'll look into it.
>>
>> On Tuesday, 2 April 2013 11:17:20 UTC+8, Ryan How wrote:
>>>
>>> Greetings!
>>>
>>> I'm looking for Executor.setConnection(). The factory used to have a
>>> Factory.setConnection method, now it only appears to be in the constructor.
>>>
>>> My use case is that I am using it to "close" the factory. I do
>>> Factory.setConnection(null) to indicate that the factory can no longer be
>>> used. Just to catch out if a developer decides to keep wanting to use the
>>> factory and the underlying connection has been put back into the pool.
>>>
>>>
>>> Also, unrelated, but just a migration observation to JOOQ 3.0
>>>
>>> Tables have renamed getFields() to fields(), but References (foreign
>>> keys) are still using getFields(). It just seems inconsistent?
>>>
>>>
>>> Thanks, Ryan
>>>
>>>
>>>
> --
> 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.
>
>

-- 
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.


Reply via email to