If I remember correctly, the reasons for not making this public were related to an early confusion with overloading and generics in jOOQ 1.x - but I might be wrong.
There's a pending feature request for adding these methods in jOOQ 3.6: https://github.com/jOOQ/jOOQ/issues/3748 In the mean time, you can either patch jOOQ to have such public methods, or generate them in your individual procedure classes by using "custom code sections": http://www.jooq.org/doc/latest/manual/code-generation/codegen-custom-code/ Hope this helps, Lukas 2015-01-22 23:00 GMT+01:00 <[email protected]>: > Suppose I have a stored procedure and jOOQ has generated the class > MyStoredProcedure from it. The class contains public static final Parameter > objects representing each parameter of the stored proc. I'd like to be able > to set the values of the parameters on an instance of MyStoredProcedure > like so: > Parameter<...> param = MyStoredProcedure.(one of the params); > MyStoredProcedure sp = new MyStoredProcedure(); > sp.setParameter(param, value); > sp.execute(); > > The generated MyStoredProcedure class inherits from AbstractRoutine, which > has a setValue(Parameter, Object) method that appears to do exactly what I > want, but it is protected. > > Is there another way to achieve this? Or would it be possible to get > access to the AbstractRoutine.setValue() method in a future release? > > Thanks > > -- > 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. > -- 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.
