I'm hoping the community can help me better understand type converters so
that I can more efficiently (and simply) use JOOQ.
It would be GREAT to have a document that provides an overview of all the
places where type conversion takes place and how to customize each one --
maybe there is a blog post I could pointed to?
Here's what I'm seeing:
1. In code generation using a regex to target a field.
2. In configuration.
3. In record.getValue
It seems like #3 is probably the least optimal place to have it since JOOQ
will do one conversion from the ResultSet using the fields binding and then
another from the field's binding to the specified converter.
What other places am I missing, I'm specifically interested in conversion
FROM a ResultSet.
Is there a programmatic way to changing the binding of a field as it is
added to a SELECT statement? For example, if I add a CASE statement that I
want to return a specific Enum, is my only choice to have the CASE be an
Integer or String and then use a converter when record#getValue in my
mapper?
For some reason #1 scares me. For example, I could have many fields that
are INT and I want to be represented as a Long in java, but some fields I
still want to be Integer in java. I don't want to recreated my schema in an
XML file. Also, can I specify these programmatically or do I need to do it
in XML? Would that be #2?
As a newbie the problem I'm having is that there are SO many ways to do
things in JOOQ that it is a little daunting to make choices. :)
--
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/d/optout.