On 12/9/2014 7:52 AM, Witold Szczerba wrote:
12. Let's say that inside WhellManager.storeWheel(Wheel wheel), after
storing all the wheels, I use the new DSLContext to check the number of
wheels in the table; we expect four of them. If there are not four of them,
I want to roll back the transaction.
You can, but that would be so strange. You do not want to mess with
transactions like this, I guess. I mean, I wouldn't, but as I said
previously, I do not know the details of your system, so maybe you are
right and you should just rollback there.
Ha---actually I just threw that in for good measure, from some JDBC
examples I had seen. I have no idea if that is the correct thing to do.
If we have two people storing cars and wheels at the same time, I
believe there are some instances where we would want to check to make
sure things are stored as we expected and that another connection wasn't
writing something conflicting. But this is hypothetical and outside my
current expertise.
Garret
--
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.